SoFieldList Class Reference
[Fields]

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

#include <Inventor/lists/SoFieldList.h>

Inheritance diagram for SoFieldList:
SbPList

List of all members.

Public Member Functions

 SoFieldList ()
 SoFieldList (int size)
 SoFieldList (const SoFieldList &l)
virtual ~SoFieldList ()
void append (SoField *field)
void insert (SoField *field, int addBefore)
SoFieldoperator[] (int i) const
void set (int i, SoField *Field)

Detailed Description

Maintains a list of pointers to fields.

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

SEE ALSO

SoField


Constructor & Destructor Documentation

SoFieldList::SoFieldList (  )  [inline]

Constructor.

SoFieldList::SoFieldList ( int  size  )  [inline]

Constructor that pre-allocates storage for size pointers.

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

Constructor that copies the contents of another list.

virtual SoFieldList::~SoFieldList (  )  [inline, virtual]

Destructor.


Member Function Documentation

void SoFieldList::append ( SoField field  )  [inline]

Adds a pointer to the end of the list.

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

Inserts given pointer in list before pointer with given index.

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

Returns pointer with given index. If requested index does not exists, list is grown to return a valid pointer.

Reimplemented from SbPList.

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

Sets an element of a list.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/