62#pragma warning(disable:4251)
97 m_compactPathList(l.m_compactPathList),
98 m_isSorted(l.m_isSorted)
151 bool isSorted() {
return m_isSorted; }
152 void setSorted(
bool isSorted) { m_isSorted = isSorted; }
std::ostream & operator<<(std::ostream &os, const SoPathList &pathList)
Writes the list to the specified output stream.
int getLength() const
Returns number of pointers in list.
Base class for all nodes, paths, and engines.
Maintains a list of pointers to instances of the SoBase classes.
void copy(const SoBaseList &l)
Copies a list, keeping all reference counts correct.
void append(SoBase *ptr)
Adds a pointer to the end of the list.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
virtual ~SoPathList()
Destructor.
virtual void uniquify()
Given a sorted list, removes any path that (1) is a duplicate, or (2) goes through a node that is the...
virtual void sort()
Sorts list in place based on (1) increasing address of head node, then (2) increasing indices of chil...
virtual SbBool removePath(const SoPath &path)
Remove a path from the list and return TRUE if removed.
virtual void append(SoPath *ptr)
Adds a path to the end of the list.
SoPath * operator[](int i) const
Returns pointer with given index.
static int comparePaths(const void *p1Ptr, const void *p2Ptr)
SoPathList(const SoPathList &l)
Constructor that copies the contents of another list.
SoPathList(int size)
Constructor that pre-allocates storage for size pointers.
SoPathList & operator=(const SoPathList &l)
Copies a list, keeping all reference counts correct.
virtual int findPath(const SoPath &path)
Returns the index of the matching path in the list, or -1 if not found.
Smart pointer for any class inheriting SoRefCounter.