Main Page | Class Hierarchy | Class List | Directories | File List | Class 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 Member Functions

 ~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


Constructor & Destructor Documentation

PLib::ObjectRefListGL::~ObjectRefListGL  ) 
 

The destructor.

Author:
Philippe Lavoie
Date:
3 June 1998


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.

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

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.


The documentation for this class was generated from the following files:
Generated on Sun Jan 23 05:51:38 2005 for NURBS++ by  doxygen 1.4.0