|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Parent Classes:
public ListC<class DataC>
Variables:
Methods:
- SubPolygon2dC(const Polygon2dC & pol)
-
Creates a shadow copy of the polygon 'pol'.
- ListC<Line2dPPC> Triangulate()
-
Triangulates the polygon. Returns the result set of diagonals.
- ListC<const Point2dC *> Copy() const
-
a physical copy of the list
- const ListC<const Point2dC *> & operator=(const ListC<const Point2dC *> & list)
-
an assigment of a list, the old one is destroyed
- const ListC<const Point2dC *> & List() const
-
access to the constat object
- ListC<const Point2dC *> & List()
-
access to the object
- ListPtrC<const Point2dC *> First() const
-
- ListPtrC<const Point2dC *> Last() const
-
- ListPtrC<const Point2dC *> Nth(IndexT i) const
-
return the pointer to the i-th element of the list,
the First() element is the Nth(0)
---------- elementary changes in the list -------------
- ListPtrC<const Point2dC *> InsFirstD(const const Point2dC * & data)
-
insert a new data as the first element of the list,
return the pointer to the new element
- ListPtrC<const Point2dC *> InsLastD(const const Point2dC * & data)
-
insert a new data as the last element of the list,
return the pointer to the new element
- ListC<const Point2dC *> & DeleteFirst()
-
remove the first element from the list, destroy it,
return the new list
- ListC<const Point2dC *> & DeleteLast()
-
remove the last element from the list, destroy it,
return the new list
- const Point2dC * GetFirst()
-
unlink the first element from the list,
return its content and destroy it
- const Point2dC * GetLast()
-
unlink the last element form the list,
return its content and destroy it
- ListPtrC<const Point2dC *> MoveAsFirst(ListPtrC<const Point2dC *> & ptr)
-
- ListPtrC<const Point2dC *> MoveAsLast(ListPtrC<const Point2dC *> & ptr)
-
- ListPtrC<const Point2dC *> MoveHeadAft(ListPtrC<const Point2dC *> & elm)
-
- ListPtrC<const Point2dC *> MoveHeadBef(ListPtrC<const Point2dC *> & elm)
-
- ListC<const Point2dC *> & Empty()
-
delete all elements from the list
--------- access to data ------------------------------
- const Point2dC * & operator[](IndexT i)
-
return the content of the i-th element of the list,
the First() element is [0]
- const const Point2dC * & operator[](IndexT i) const
-
return the content of the i-th element of the list,
the First() element is [0]
- const Point2dC * FirstGet()
-
return the content of the first element
the element is destroyed
- const Point2dC * LastGet()
-
return the content of the first element
the element is destroyed
---------- derived lists ------------------------------
- const ListC<const Point2dC *> & operator+=(ListC<const Point2dC *> & list)
-
concatenate the 'list' to 'this' list
- ListC<const Point2dC *> operator+(const ListC<const Point2dC *> & list) const
-
create a copy of the 'this' list and the 'list' and
concatenate both new lists
- ListC<const Point2dC *> Head(ListPtrC<const Point2dC *> & ptr)
-
split the list into 2 parts,
the list will be contain the second part (the tail) including 'ptr'
return the first part (the head)
- ListC<const Point2dC *> Tail(ListPtrC<const Point2dC *> & ptr)
-
split the list into 2 parts,
the list will be contain the first part (the head)
return the second part including 'ptr' (the tail)
more complex operations on lists
- ListC<const Point2dC *> & Cut(double ratio)
-
remove 'ratio' % of elements from the begin and the end of the list
return the new list
- const BaseListC & operator=(const BaseListC & list)
-
an assigment of a list, the old one is destroyed
- BooleanT operator==(const BaseListC & list) const
-
Do both lists represent the same list?
- BooleanT operator!=(const BaseListC & list) const
-
Are lists independent two lists?
- BooleanT IsEmpty() const
-
Is the list empty?
---------- pointers -----------------------------------
- BaseListPtrC First() const
-
return the pointer to the first element of the list
- BaseListPtrC Last() const
-
return the pointer to the last element of the list
---------- elementary changes in the list -------------
- const BaseListPtrC & InsFirst(const BaseListPtrC & elm)
-
insert a new element at the beginning of the list,
return the pointer to the new element
- const BaseListPtrC & InsLast(const BaseListPtrC & elm)
-
insert a new element at the end of the list,
return the pointer to the new element
- BaseListPtrC & MoveAsFirst(BaseListPtrC & elm)
-
move the list element, which 'elm' points to, into the list
as the first element,
return 'elm'
- BaseListPtrC & MoveAsLast(BaseListPtrC & elm)
-
move the list element, which 'elm' points to, into the list
as the last element,
return 'elm'
- BaseListPtrC & MoveHeadAft(BaseListPtrC & elm)
-
- BaseListPtrC & MoveHeadBef(BaseListPtrC & elm)
-
- BaseListPtrC UnLinkFirst()
-
unlink the First element from a list
- BaseListPtrC UnLinkLast()
-
unlink Last element from a list
- BaseListC PointerList()
-
construct a list of pointers to elements in the list
- const BaseListC & Concat(BaseListC & list2)
-
append list2 to list1 (list2 will be empty )
return pointer to the list1 */
- const BaseListC & operator+=(BaseListC & list)
-
concatenate the 'list' to 'this' list
- BaseListC & Reverse()
-
reverse the list *
- long int Size() const
-
length of a list; does not check the long int counter overflow.
- BaseListC Tail(BaseListPtrC & elm)
-
split a list into two parts,
return the tail list including elm
- BaseListC & FixBackwardLinks()
-
------------- MORE COMPLEX LIST OPERATIONS ---------------------
- BaseListPtrC Apply(const BaseListPtrC & start,BooleanT (*)(FuncArgList) ApplyElm)
-
applies "ApplyElm" to "start" and all its succesors
until "ApplyElm" is hold or the list end is reached;
returns the element of the list that satisfied "ApplyElm"
- BaseListPtrC FindFirst(BooleanT (*)(FuncArgList) ApplyElm)
-
find the first element of a list for which "BooleanT test(ListElmC *)"
is hold; return NULL if no such element exists
- BaseListPtrC FindNext(const BaseListPtrC & first,BooleanT (*)(FuncArgList) ApplyElm)
-
find next element in a list
for which BooleanT test(ListElmC *) is hold;
return NULL if no such element exists
- BaseListC MapplyL(const BaseListPtrC & start,BaseListPtrC (*)(FuncArgList) Construct)
-
apply "Construct" to a portion of a list starting with "start",
link results to the new list;
"Construct" can return empty BaseListPtrC
- void DebugHeadPrint() const
-
print information about the head of the list into the 'cerrAMMA'
- 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
|