Libical API Documentation 3.1
|
C++ template classes for managing C++ pointers returned by VComponent::get_..._component, VComponent::get_..._property, ICalProperty::get_..._value. More...
Go to the source code of this file.
Data Structures | |
class | ICPointerHolder< T > |
C++ template classes for managing C++ pointers returned by VComponent::get_..._component, VComponent::get_..._property, ICalProperty::get_..._value.
As stated previously, imp still belongs to the original component. To avoid freeing the wrapped "imp", caller must set the "imp" to null before deleting the pointer.
The template class relieves the burden of memory management when used as a stack based object. The class holds a pointer to the C++ Wrapper. The destructor set the imp to null before deleting the pointer.
Each C++ Wrapper instantiates a template class in its corresponding .h file.
Usage example: VComponentTmpPtr p;// VComponentTmpPtr is an instantiation of this template for (p=component.get_first_component; p!= 0; p=component.get_next_component) {
SPDX-FileCopyrightText: 2001, Critical Path
SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0