|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
--------------------------------------------------------------
ALL SURFACE ELEMENT CLASS
class SurfaceElementC {
Parent Classes:
Variables:
- SurfaceC & surface;
-
surface to which these elements belong
- DListC elems;
-
List of surface elements
- int num_elem;
-
Number of surface elements
Methods:
- SurfaceElementC(SurfaceC & s)
-
constructor
SurfaceElementC(const SurfaceC& s);
constructor
- SurfaceElementC(const SurfaceElementC & e)
-
copy constructor
- const SurfaceElementC & operator=(const SurfaceElementC & e)
-
- ~SurfaceElementC()
-
destructor
- int Num()
-
Number of surface elements
- DListC<ElementC> & List()
-
Access to list of surface elements
- void Print()
-
print surface elements
- void Delete()
-
delete contents
- void Copy(const SurfaceElementC & elem)
-
copy contents as big object
- void Valid()
-
Set surface flag for valid element list -INVALID FOR MULTIPLE ELEM LISTS
- int IsValid()
-
Is this element list valid
- void UpdateElem()
-
update element list
- 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.
- const RefCounterC & operator=(const RefCounterC & rC)
-
- BooleanT ToBeDeletedUpdate(const RefCounterC & rC)
-
This function is the condition and the assigment together.
It returns TRUE if the content should be deleted before
assigning of the new object. The function automatically solves
the reference counter of this object as well as the other object
reference counter 'rC'.
- void ReportInvalidObject(char * Msg = 0)
-
This function reports an error to the user if a problem is detected
in the refrence counting mechanism.
- 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:Adrian Hilton, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|