class
GraphicIdList
: public
Resource
(Return to index)
Type:
Instantiable
Base Classes:
public
Resource
Derived Classes
Include file:
DrawServ/gridlist.h
Public:
void
Append
(
GraphicId
*)
append
GraphicId
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.
UList
*
Elem
(
Iterator
)
return
UList
(
UList
) pointed to by
Iterator
(
Iterator
).
void
First
(
Iterator
&)
set iterator to point to first
GraphicId
in list.
GraphicId
*
GetGraphicId
(
Iterator
)
get
GraphicId
pointed to by iterator.
GraphicIdList
()
GraphicId
*
Id
(
UList
*)
return
GraphicId
pointed to by
UList
(
UList
).
boolean
Includes
(
GraphicId
*)
check if list includes
GraphicId
by pointer-comparison.
void
InsertAfter
(
Iterator
,
GraphicId
*)
insert
GraphicId
after position pointed to by iterator.
void
InsertBefore
(
Iterator
,
GraphicId
*)
insert
GraphicId
before position pointed to by iterator.
boolean
IsEmpty
()
true if no
GraphicId
objects in list.
void
Last
(
Iterator
&)
set iterator to point to last
GraphicId
in list.
void
Next
(
Iterator
&)
set iterator to point to next
GraphicId
in list.
int
Number
()
number of
GraphicId
objects in list.
void
Prepend
(
GraphicId
*)
append
GraphicId
to front of list.
void
Prev
(
Iterator
&)
set iterator to point to previous
GraphicId
in list.
void
Remove
(
GraphicId
*)
remove
GraphicId
from list, returning responsibility for freeing the associated memory.
void
SetGraphicId
(
GraphicId
*,
Iterator
&)
set
GraphicId
pointed to by iterator.
void
add_grid
(
GraphicId
*)
add
GraphicId
to list
virtual
~GraphicIdList
()
Protected:
void
Remove
(
Iterator
&)
remove
GraphicId
pointed to by iterator from the list, returning responsibility for freeing the associated memory. This requires saving a pointer to the
GraphicId
before calling this method.
unsigned int
_count
UList
*
_ulist
Friend methods:
friend class
DrawServ
friend class
LinkSelection
(more documentation)