MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Attributes | List of all members
TReference Class Reference

Base class to reference all Shape objects. More...

#include <TReference.hxx>

Inheritance diagram for TReference:
Nucleus Shape Brick Cylinder Node Plane Sphere Hexagon Tube

Public Member Functions

 TReference ()
 Default constructor. Number of references is set to 0. More...
 
virtual ~TReference ()
 Destructor. More...
 
void AddReference (unsigned n=1)
 Add n references to an object. More...
 
unsigned DelReference (unsigned n=1)
 Remove n references to an object. More...
 
unsigned Reference ()
 returns the Number of references to an object More...
 

Private Attributes

unsigned fNbReferences
 Number of references to an object. More...
 

Detailed Description

Base class to reference all Shape objects.

They are counted ; when created =0, if become =0 then object could be removed

Author
WEC
Version
1.0

Constructor & Destructor Documentation

TReference::TReference ( )
inline

Default constructor. Number of references is set to 0.

virtual TReference::~TReference ( )
inlinevirtual

Destructor.

Member Function Documentation

void TReference::AddReference ( unsigned  n = 1)
inline

Add n references to an object.

unsigned TReference::DelReference ( unsigned  n = 1)
inline

Remove n references to an object.

unsigned TReference::Reference ( )
inline

returns the Number of references to an object

Member Data Documentation

unsigned TReference::fNbReferences
private

Number of references to an object.


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

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014