Home | Download | Screen shots | Discussion | Documentation | Links |
---|
Inheritance diagram for MFNode:
Public Methods | |
MFNode (size_t length=0, const NodePtr *nodes=0) throw (std::bad_alloc) | |
Construct from an array of Node pointers. | |
virtual | ~MFNode () throw () |
Destructor. | |
const NodePtr & | getElement (size_t index) const throw () |
Get element. | |
void | setElement (size_t index, const NodePtr &node) throw () |
Set element. | |
size_t | getLength () const throw () |
Get the length. | |
void | setLength (size_t length) throw (std::bad_alloc) |
Set the length. | |
bool | exists (const Node &node) const |
Determine if a node exists in this MFNode. | |
bool | addNode (const NodePtr &node) |
Add a node. | |
bool | removeNode (const Node &node) |
Remove a node. | |
void | addElement (const NodePtr &node) throw (std::bad_alloc) |
Add an element to the end of the sequence. | |
void | insertElement (size_t index, const NodePtr &node) throw (std::bad_alloc) |
Insert an element into the sequence. | |
void | removeElement (size_t index) throw () |
Remove an element from the sequence. | |
void | clear () throw () |
Remove all elements. | |
virtual std::auto_ptr< FieldValue > | clone () const throw (std::bad_alloc) |
Virtual copy constructor. | |
virtual FieldValue & | assign (const FieldValue &value) throw (std::bad_cast, std::bad_alloc) |
Virtual assignment. | |
virtual Type | type () const throw () |
Get the FieldValue::Type associated with this class. | |
Private Methods | |
virtual void | print (std::ostream &) const |
Print to an output stream. | |
Private Attributes | |
std::vector< NodePtr > | nodes |
|
Construct from an array of Node pointers.
|
|
Destructor.
|
|
Add an element to the end of the sequence.
|
|
Add a node.
Add
|
|
Virtual assignment.
Implements FieldValue. |
|
Remove all elements.
|
|
Virtual copy constructor.
Implements FieldValue. |
|
Determine if a node exists in this MFNode.
|
|
Get element.
|
|
Get the length.
|
|
Insert an element into the sequence.
|
|
Print to an output stream. Any null elements in the MFNode will not get printed; VRML97 syntax does not accommodate NULL in an MFNode.
Implements FieldValue. |
|
Remove an element from the sequence.
|
|
Remove a node. Remove node from the array, if it exists here. This method will not remove NULLs.
|
|
Set element.
|
|
Set the length. Set the length of the node array. If the new length is less than the current length, the array is truncated. If the length is greater than the current length, the new positions at the end of the array are filled with null NodePtrs.
|
|
Get the FieldValue::Type associated with this class.
Implements FieldValue. |