#include <nurbsGL.h>
Inheritance diagram for PLib::ObjectRefListGL:
Public Methods | |
ObjectRefListGL () | |
~ObjectRefListGL () | |
void | add (ObjectGL *obj) |
ObjectGL * | remove (ObjectGL *obj) |
void | refList (const ObjectListGL *list, int addOnce=1) |
Definition at line 418 of file nurbsGL.h.
|
The destructor.
Definition at line 259 of file nurbsGL.cpp. References PLib::ObjectListGL::reset. |
|
adds an element to the list.
Adds an element to the list.
Reimplemented from PLib::ObjectListGL. Definition at line 423 of file nurbsGL.h. References PLib::ObjectGL::ObjectGL. Referenced by refList. |
|
reference all the elements from a list.
Reference all the elements from a list. If the addOnce variable is set, it will reference the elements of the list only once. So if the reference list was already referencing one of the elements, it will not be added again. If the addOnce variable is not set, the resulting list might reference an element more than once.
Definition at line 1298 of file nurbsGL.cpp. References add, and PLib::ObjectGL::ObjectGL. |
|
finds an element and remove it from the list.
Finds an element and delete it from the list. The element will not be deleted. This is up to the calling function. Since this is a reference list, we check if the element is referencing obj. If it is, we remove it from the list. If not, we check if obj is one of the element from the list and if so we remove it.
Reimplemented from PLib::ObjectListGL. Definition at line 1203 of file nurbsGL.cpp. References PLib::ObjectGL::ObjectGL. |