Open Inventor Reference
SoFieldList Class Reference

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

#include <Inventor/SoLists.h>

Inheritance diagram for SoFieldList:
SbPList

Public Member Functions

 SoFieldList ()
 
 SoFieldList (int size)
 
 SoFieldList (const SoFieldList &l)
 
 ~SoFieldList ()
 Destructor. More...
 
void append (SoField *field)
 Adds a pointer to the end of the list. More...
 
void insert (SoField *field, int addBefore)
 Inserts given pointer in list before pointer with given index. More...
 
SoFieldoperator[] (int i) const
 Access an element of a list. More...
 
void set (int i, SoField *Field)
 Sets an element of a list. More...
 
SoFieldget (int i) const
 Internal versions of [] that do not check for bounds: More...
 
- Public Member Functions inherited from SbPList
 SbPList ()
 Constructor. More...
 
 SbPList (int initSize)
 initSize specifies an initial size for the list, which is useful as an optimization if you can estimate the length of the list before you construct it. More...
 
 SbPList (const SbPList &pl)
 Copy constructor. More...
 
 ~SbPList ()
 Destructor. More...
 
void append (void *ptr)
 Adds given pointer to end of list. More...
 
int find (const void *ptr) const
 Returns index of given pointer in list, or -1 if not found. More...
 
void insert (void *ptr, int addBefore)
 Inserts given pointer in list before pointer with given index. More...
 
void remove (int which)
 Removes pointer with given index. More...
 
int getLength () const
 Returns number of pointers in list. More...
 
void truncate (int start)
 Removes all pointers after one with given index, inclusive. More...
 
void copy (const SbPList &pl)
 Copy a list. More...
 
SbPListoperator= (const SbPList &pl)
 Assignment operator; copies list into this list. More...
 
void *& operator[] (int i) const
 Returns pointer with given index. More...
 
bool operator== (const SbPList &pl) const
 Equality and inequality operators. More...
 
bool operator!= (const SbPList &pl) const
 Equality and inequality operators. More...
 
void * get (int i) const
 Internal versions of [] that do not check for bounds: More...
 
void set (int i, void *j)
 

Detailed Description

This subclass of SbPList holds lists of pointers to instances of classes derived from SoField.

See Also
SoField

Definition at line 426 of file SoLists.h.

Constructor & Destructor Documentation

◆ SoFieldList() [1/3]

SoFieldList::SoFieldList ( )
inline

Definition at line 428 of file SoLists.h.

◆ SoFieldList() [2/3]

SoFieldList::SoFieldList ( int  size)
inline

Definition at line 429 of file SoLists.h.

◆ SoFieldList() [3/3]

SoFieldList::SoFieldList ( const SoFieldList l)
inline

Definition at line 430 of file SoLists.h.

◆ ~SoFieldList()

SoFieldList::~SoFieldList ( )
inline

Definition at line 432 of file SoLists.h.

References SbPList::truncate().

Member Function Documentation

◆ append()

void SoFieldList::append ( SoField field)
inline

Definition at line 435 of file SoLists.h.

References SbPList::append().

◆ get()

SoField* SoFieldList::get ( int  i) const
inline

Definition at line 452 of file SoLists.h.

References SbPList::get().

◆ insert()

void SoFieldList::insert ( SoField field,
int  addBefore 
)
inline

Definition at line 439 of file SoLists.h.

References SbPList::insert().

◆ operator[]()

SoField* SoFieldList::operator[] ( int  i) const
inline

Definition at line 443 of file SoLists.h.

◆ set()

void SoFieldList::set ( int  i,
SoField Field 
)
inline

Definition at line 447 of file SoLists.h.


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