cafe::Collection< T >::array_holder Class Reference

#include <Collection.hpp>

List of all members.


Detailed Description

template<class T>
class cafe::Collection< T >::array_holder

Class to help ith reference counting pointer.

Public only because can't get root cint to deal with this class if private.

Definition at line 257 of file Collection.hpp.

Public Member Functions

 array_holder (TObjArray *obj, bool owned)
 ~array_holder (void)
TObjArray * operator-> ()
 operator TObjArray * ()
 operator bool ()
void inc (void)
void dec (void)
void decAndDeleteIf (void)
bool ownersLeft (void)
bool isOwned (void)

Private Attributes

TObjArray * _array
int _count
bool _owned


Constructor & Destructor Documentation

template<class T>
cafe::Collection< T >::array_holder::array_holder TObjArray *  obj,
bool  owned
[inline]
 

Definition at line 259 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_array, cafe::Collection< T >::array_holder::_count, and cafe::Collection< T >::array_holder::_owned.

template<class T>
cafe::Collection< T >::array_holder::~array_holder void   )  [inline]
 

Definition at line 262 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_array, and cafe::Collection< T >::array_holder::_owned.


Member Function Documentation

template<class T>
void cafe::Collection< T >::array_holder::dec void   )  [inline]
 

Definition at line 275 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_count.

Referenced by cafe::Collection< T >::array_holder::decAndDeleteIf().

template<class T>
void cafe::Collection< T >::array_holder::decAndDeleteIf void   )  [inline]
 

Definition at line 278 of file Collection.hpp.

References cafe::Collection< T >::array_holder::dec(), and cafe::Collection< T >::array_holder::ownersLeft().

Referenced by cafe::Collection< T >::make_us_owner_of_data(), cafe::Collection< T >::operator=(), and cafe::Collection< T >::~Collection().

template<class T>
void cafe::Collection< T >::array_holder::inc void   )  [inline]
 

Definition at line 272 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_count.

Referenced by cafe::Collection< T >::Collection(), and cafe::Collection< T >::operator=().

template<class T>
bool cafe::Collection< T >::array_holder::isOwned void   )  [inline]
 

Definition at line 287 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_owned.

Referenced by cafe::Collection< T >::make_us_owner_of_data().

template<class T>
cafe::Collection< T >::array_holder::operator bool  )  [inline]
 

Definition at line 270 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_array.

template<class T>
cafe::Collection< T >::array_holder::operator TObjArray *  )  [inline]
 

Definition at line 269 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_array.

template<class T>
TObjArray* cafe::Collection< T >::array_holder::operator->  )  [inline]
 

Definition at line 268 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_array.

template<class T>
bool cafe::Collection< T >::array_holder::ownersLeft void   )  [inline]
 

Definition at line 284 of file Collection.hpp.

References cafe::Collection< T >::array_holder::_count.

Referenced by cafe::Collection< T >::array_holder::decAndDeleteIf().


Member Data Documentation

template<class T>
TObjArray* cafe::Collection< T >::array_holder::_array [private]
 

Definition at line 291 of file Collection.hpp.

Referenced by cafe::Collection< T >::array_holder::array_holder(), cafe::Collection< T >::array_holder::operator bool(), cafe::Collection< T >::array_holder::operator TObjArray *(), cafe::Collection< T >::array_holder::operator->(), and cafe::Collection< T >::array_holder::~array_holder().

template<class T>
int cafe::Collection< T >::array_holder::_count [private]
 

Definition at line 292 of file Collection.hpp.

Referenced by cafe::Collection< T >::array_holder::array_holder(), cafe::Collection< T >::array_holder::dec(), cafe::Collection< T >::array_holder::inc(), and cafe::Collection< T >::array_holder::ownersLeft().

template<class T>
bool cafe::Collection< T >::array_holder::_owned [private]
 

Definition at line 293 of file Collection.hpp.

Referenced by cafe::Collection< T >::array_holder::array_holder(), cafe::Collection< T >::array_holder::isOwned(), and cafe::Collection< T >::array_holder::~array_holder().


The documentation for this class was generated from the following file:
Generated on Thu Apr 3 04:14:27 2008 for CAF by doxygen 1.3.4