Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

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

Class to help ith reference counting pointer. More...

#include <Collection.hpp>

List of all members.

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


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 251 of file Collection.hpp.


Constructor & Destructor Documentation

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

Definition at line 253 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 256 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 269 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 272 of file Collection.hpp.

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

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

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

Definition at line 266 of file Collection.hpp.

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

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

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

Definition at line 281 of file Collection.hpp.

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

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

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

Definition at line 264 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 263 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 262 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 278 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 285 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 286 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 287 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 Tue Mar 28 10:13:10 2006 for CAF by doxygen 1.3.4