Main Page   Class Hierarchy   Compound List   File List   Compound Members  

PLib::ObjectRefListGL Class Reference

A link list of ObjectRefListGL. More...

#include <nurbsGL.h>

Inheritance diagram for PLib::ObjectRefListGL:

PLib::ObjectListGL PLib::ObjectGL List of all members.

Public Methods

 ObjectRefListGL ()
 ~ObjectRefListGL ()
void add (ObjectGL *obj)
ObjectGLremove (ObjectGL *obj)
void refList (const ObjectListGL *list, int addOnce=1)

Detailed Description

A link list of ObjectRefListGL.

Author:
Philippe Lavoie
Date:
28 September 1997

Definition at line 418 of file nurbsGL.h.


Constructor & Destructor Documentation

PLib::ObjectRefListGL::~ObjectRefListGL  
 

The destructor.

Author:
Philippe Lavoie
Date:
3 June 1998

Definition at line 259 of file nurbsGL.cpp.

References PLib::ObjectListGL::reset.


Member Function Documentation

void PLib::ObjectRefListGL::add ObjectGL   obj [inline]
 

adds an element to the list.

Adds an element to the list.

Parameters:
obj  the element to add
Author:
Philippe Lavoie
Date:
30 September 1997

Reimplemented from PLib::ObjectListGL.

Definition at line 423 of file nurbsGL.h.

References PLib::ObjectGL::ObjectGL.

Referenced by refList.

void PLib::ObjectRefListGL::refList const ObjectListGL   list,
int    addOnce = 1
 

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.

Parameters:
list  the list to reference
Author:
Philippe Lavoie
Date:
30 September 1997

Definition at line 1298 of file nurbsGL.cpp.

References add, and PLib::ObjectGL::ObjectGL.

ObjectGL * PLib::ObjectRefListGL::remove ObjectGL   obj
 

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.

Parameters:
obj  the element to remove
Returns:
the element from the list or 0 if obj wasn't found.
Author:
Philippe Lavoie
Date:
30 September 1997

Reimplemented from PLib::ObjectListGL.

Definition at line 1203 of file nurbsGL.cpp.

References PLib::ObjectGL::ObjectGL.


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 13:27:01 2003 for NURBS++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002