|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class RefCounterC is a reference counter which should be always
inherited if a class contains pointers to allocated memory and the
memory is shared by several objects. All constructors, a destructor,
and an assigment operator must be modified in such class. The destructor
is not virtual, therefore the class should be inherited as private
or protected.
The RefCounterC class allocates its own memory separately from
a memory of object.
Parent Classes:
Derived Classes:
Variables:
Methods:
- BooleanT ToBeDeleted() const
-
Returns TRUE if the content should be deleted.
- RCCountT Count() const
-
Returns the number of refrences to this object.
NB. The following definition is now obsolete,
The value 0 means there is no other reference to this object.
- BooleanT IsSingleReference()
-
Tests is there is only one reference to this object.
- LabelT Label() const
-
Returns the label of this reference counter.
The member function
is useful mainly to recognize objects during debugging.
The value of the label is uniquely defined pointer.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|