Open Inventor Reference
SoPathList Class Reference

Maintains a list of pointers to paths. More...

#include <Inventor/SoLists.h>

Inheritance diagram for SoPathList:
SoBaseList SbPList

List of all members.

Public Member Functions

 SoPathList ()
 SoPathList (int size)
 SoPathList (const SoPathList &l)
 ~SoPathList ()
 Destructor.
void append (SoPath *ptr)
 Adds a path to the end of the list.
SoPathListoperator= (const SoPathList &l)
 Copies a list, keeping all reference counts correct.
SoPathoperator[] (int i) const
 Access an element of a list.
int findPath (const SoPath &path)
 Returns the index of the matching path in the list, or -1 if not found.
void sort ()
 Sorts list in place based on (1) increasing address of head node, then (2) increasing indices of children.
void uniquify ()
 Given a sorted list, removes any path that (1) is a duplicate, or (2) goes through a node that is the tail of another path.

Detailed Description

This subclass of SoBaseList holds lists of pointers to SoPaths. It updates reference counts to paths in the list whenever adding or removing pointers.

See Also
SoPath

Definition at line 212 of file SoLists.h.


Constructor & Destructor Documentation

SoPathList::SoPathList ( ) [inline]

Definition at line 214 of file SoLists.h.

SoPathList::SoPathList ( int  size) [inline]

Definition at line 215 of file SoLists.h.

SoPathList::SoPathList ( const SoPathList l) [inline]

Definition at line 216 of file SoLists.h.

SoPathList::~SoPathList ( ) [inline]

Definition at line 218 of file SoLists.h.


Member Function Documentation

void SoPathList::append ( SoPath ptr) [inline]

Definition at line 221 of file SoLists.h.

int SoPathList::findPath ( const SoPath path)
SoPathList& SoPathList::operator= ( const SoPathList l) [inline]

Definition at line 225 of file SoLists.h.

References SoBaseList::copy().

SoPath* SoPathList::operator[] ( int  i) const [inline]

Reimplemented from SoBaseList.

Definition at line 228 of file SoLists.h.

void SoPathList::sort ( )
void SoPathList::uniquify ( )

The documentation for this class was generated from the following file: