51#ifndef SO_FIELD_LIST_H
52#define SO_FIELD_LIST_H
54#include <Inventor/SbPList.h>
108 {
return (
static_cast<SoField*
> ( (*
static_cast<const SbPList *
>(
this)) [i] ) ); }
114 { SbPList::set( i, Field); }
118 {
return static_cast<SoField*
>(SbPList::get(i)); }
List of generic (void *) pointers.
void append(void *ptr)
Adds given pointer to end of list.
void insert(void *ptr, int addBefore)
Inserts given pointer in list before pointer with given index.
Base class for all fields.
Maintains a list of pointers to fields.
virtual ~SoFieldList()
Destructor.
void insert(SoField *field, int addBefore)
Inserts given pointer in list before pointer with given index.
SoFieldList()
Constructor.
SoFieldList(int size)
Constructor that pre-allocates storage for size pointers.
void set(int i, SoField *Field)
Sets an element of a list.
void append(SoField *field)
Adds a pointer to the end of the list.
SoFieldList(const SoFieldList &l)
Constructor that copies the contents of another list.
SoField * operator[](int i) const
Returns pointer with given index.