DGtal 1.4.0
|
#include <DGtal/base/CountedPtr.h>
Public Member Functions | |
Counter (T *p=0, unsigned c=1) | |
Data Fields | |
T * | ptr |
A pointer to a (shared) dynamically allocated object of type T. | |
unsigned | count |
The number of CountedPtr pointing to this counter. | |
Internal structure for storing a smart pointer. Counts the number of references to some dynamically allocated object of type T in memory.
Definition at line 93 of file CountedPtr.h.
|
inline |
Builds a counter, i.e. a pair pointer/integer.
p | either 0 and the counter is invalid, or a pointer to some dynamically allocated object of type T. |
c | the number of CountedPtr currently pointing to this counter. |
Definition at line 103 of file CountedPtr.h.
unsigned DGtal::CountedPtr< T >::Counter::count |
The number of CountedPtr pointing to this counter.
Definition at line 107 of file CountedPtr.h.
Referenced by DGtal::CountedPtr< T >::acquire(), DGtal::CountedConstPtrOrConstPtr< T >::count(), DGtal::CountedPtr< T >::count(), DGtal::CountedPtrOrPtr< T >::count(), DGtal::CountedPtr< T >::release(), DGtal::CountedConstPtrOrConstPtr< T >::unique(), DGtal::CountedPtr< T >::unique(), and DGtal::CountedPtrOrPtr< T >::unique().
T* DGtal::CountedPtr< T >::Counter::ptr |
A pointer to a (shared) dynamically allocated object of type T.
Definition at line 105 of file CountedPtr.h.
Referenced by DGtal::CountedConstPtrOrConstPtr< T >::drop(), DGtal::CountedPtr< T >::drop(), DGtal::CountedPtrOrPtr< T >::drop(), DGtal::CountedConstPtrOrConstPtr< T >::get(), DGtal::CountedPtr< T >::get(), DGtal::CountedPtrOrPtr< T >::get(), DGtal::CountedConstPtrOrConstPtr< T >::operator!=(), DGtal::CountedPtrOrPtr< T >::operator!=(), DGtal::CountedConstPtrOrConstPtr< T >::operator*(), DGtal::CountedPtr< T >::operator*(), DGtal::CountedPtrOrPtr< T >::operator*(), DGtal::CountedConstPtrOrConstPtr< T >::operator->(), DGtal::CountedPtr< T >::operator->(), DGtal::CountedPtrOrPtr< T >::operator->(), DGtal::CountedConstPtrOrConstPtr< T >::operator==(), DGtal::CountedPtrOrPtr< T >::operator==(), and DGtal::CountedPtr< T >::release().