class
DrawLinkList
: public
Observable
,
Observer
(Return to index)
Type:
Instantiable
Base Classes:
public
Observable
,
Observer
Derived Classes
Include file:
DrawServ/drawlinklist.h
Public:
void
Append
(
DrawLink
*)
append
DrawLink
to end of list.
boolean
Done
(
Iterator
)
return true if iterator is pointing off the end of the list. works for forward and backward traversals.
DrawLinkList
()
UList
*
Elem
(
Iterator
)
return
UList
(
UList
) pointed to by
Iterator
(
Iterator
).
void
First
(
Iterator
&)
set iterator to point to first
DrawLink
in list.
DrawLink
*
GetDrawLink
(
Iterator
)
get
DrawLink
pointed to by iterator.
boolean
Includes
(
DrawLink
*)
check if list includes
DrawLink
by pointer-comparison.
void
InsertAfter
(
Iterator
,
DrawLink
*)
insert
DrawLink
after position pointed to by iterator.
void
InsertBefore
(
Iterator
,
DrawLink
*)
insert
DrawLink
before position pointed to by iterator.
boolean
IsEmpty
()
true if no
DrawLink
objects in list.
void
Last
(
Iterator
&)
set iterator to point to last
DrawLink
in list.
DrawLink
*
Link
(
UList
*)
return
DrawLink
pointed to by
UList
(
UList
).
void
Next
(
Iterator
&)
set iterator to point to next
DrawLink
in list.
int
Number
()
number of
DrawLink
objects in list.
void
Prepend
(
DrawLink
*)
append
DrawLink
to front of list.
void
Prev
(
Iterator
&)
set iterator to point to previous
DrawLink
in list.
void
Remove
(
DrawLink
*)
remove
DrawLink
from list, returning responsibility for freeing the associated memory.
void
SetDrawLink
(
DrawLink
*,
Iterator
&)
set
DrawLink
pointed to by iterator.
void
add_drawlink
(
DrawLink
*)
add
DrawLink
to list
DrawLink
*
find_drawlink
(
GraphicId
*)
find
DrawLink
to the selector of this graphic
virtual void
update
(
Observable
* obs)
invoked when
DrawLink
is updated
virtual
~DrawLinkList
()
Protected:
void
Remove
(
Iterator
&)
remove
DrawLink
pointed to by iterator from the list, returning responsibility for freeing the associated memory. This requires saving a pointer to the
DrawLink
before calling this method.
unsigned int
_count
UList
*
_ulist
(more documentation)