Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Protected Types | Protected Attributes | List of all members
TEveRefBackPtr Class Reference

Base-class for reference-counted objects with reverse references to TEveElement objects.

Definition at line 187 of file TEveUtil.h.

Public Member Functions

 TEveRefBackPtr ()
 Default constructor. More...
 
 TEveRefBackPtr (const TEveRefBackPtr &)
 Copy constructor. More...
 
virtual ~TEveRefBackPtr ()
 Destructor. Noop, should complain if back-ref list is not empty. More...
 
virtual void DecRefCount (TEveElement *re)
 Decrease reference count and remove re from the list of back-references. More...
 
virtual void IncRefCount (TEveElement *re)
 Increase reference count and add re to the list of back-references. More...
 
TEveRefBackPtroperator= (const TEveRefBackPtr &)
 Assignment operator. More...
 
virtual void StampBackPtrElements (UChar_t stamps)
 Add given stamps to elements in the list of reverse references. More...
 
- Public Member Functions inherited from TEveRefCnt
 TEveRefCnt ()
 
 TEveRefCnt (const TEveRefCnt &)
 
virtual ~TEveRefCnt ()
 
void DecRefCount ()
 
void IncRefCount ()
 
virtual void OnZeroRefCount ()
 
TEveRefCntoperator= (const TEveRefCnt &)
 

Protected Types

typedef RefMap_t::iterator RefMap_i
 
typedef std::map< TEveElement *, Int_tRefMap_t
 

Protected Attributes

RefMap_t fBackRefs
 
- Protected Attributes inherited from TEveRefCnt
Int_t fRefCount
 

#include <TEveUtil.h>

Inheritance diagram for TEveRefBackPtr:
[legend]

Member Typedef Documentation

◆ RefMap_i

typedef RefMap_t::iterator TEveRefBackPtr::RefMap_i
protected

Definition at line 191 of file TEveUtil.h.

◆ RefMap_t

typedef std::map<TEveElement*, Int_t> TEveRefBackPtr::RefMap_t
protected

Definition at line 190 of file TEveUtil.h.

Constructor & Destructor Documentation

◆ TEveRefBackPtr() [1/2]

TEveRefBackPtr::TEveRefBackPtr ( )

Default constructor.

Definition at line 544 of file TEveUtil.cxx.

◆ ~TEveRefBackPtr()

TEveRefBackPtr::~TEveRefBackPtr ( )
virtual

Destructor. Noop, should complain if back-ref list is not empty.

Definition at line 553 of file TEveUtil.cxx.

◆ TEveRefBackPtr() [2/2]

TEveRefBackPtr::TEveRefBackPtr ( const TEveRefBackPtr )

Copy constructor.

New copy starts with zero reference count and empty back-reference list.

Definition at line 562 of file TEveUtil.cxx.

Member Function Documentation

◆ DecRefCount()

void TEveRefBackPtr::DecRefCount ( TEveElement re)
virtual

Decrease reference count and remove re from the list of back-references.

Definition at line 590 of file TEveUtil.cxx.

◆ IncRefCount()

void TEveRefBackPtr::IncRefCount ( TEveElement re)
virtual

Increase reference count and add re to the list of back-references.

Definition at line 581 of file TEveUtil.cxx.

◆ operator=()

TEveRefBackPtr & TEveRefBackPtr::operator= ( const TEveRefBackPtr )

Assignment operator.

Reference count and back-reference information is not assigned as these object hold pointers to a specific object.

Definition at line 573 of file TEveUtil.cxx.

◆ StampBackPtrElements()

void TEveRefBackPtr::StampBackPtrElements ( UChar_t  stamps)
virtual

Add given stamps to elements in the list of reverse references.

Definition at line 608 of file TEveUtil.cxx.

Member Data Documentation

◆ fBackRefs

RefMap_t TEveRefBackPtr::fBackRefs
protected

Definition at line 193 of file TEveUtil.h.


The documentation for this class was generated from the following files: