Home | Download | Screen shots | Discussion | Documentation | Links |
---|
Inheritance diagram for MFFloat:
Public Methods | |
MFFloat (size_t length=0, float const *values=0) throw (std::bad_alloc) | |
Construct from a float array. | |
virtual | ~MFFloat () throw () |
Destructor. | |
const float & | getElement (size_t index) const throw () |
Get element. | |
void | setElement (size_t index, float value) throw () |
Set element. | |
size_t | getLength () const throw () |
Get the length. | |
void | setLength (size_t length) throw (std::bad_alloc) |
Set the length. | |
void | addElement (float value) throw (std::bad_alloc) |
Add an element to the end of the sequence. | |
void | insertElement (size_t index, float value) throw (std::bad_alloc) |
Insert an element into the sequence. | |
void | removeElement (size_t index) throw () |
Remove an element from the sequence. | |
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 type identifier for the class. | |
Private Methods | |
virtual void | print (std::ostream &) const |
Print to an output stream. | |
Private Attributes | |
std::vector< float > | values |
|
Construct from a float array.
|
|
Destructor.
|
|
Add an element to the end of the sequence.
|
|
Virtual assignment.
Implements FieldValue. |
|
Virtual copy constructor.
Implements FieldValue. |
|
Get element.
|
|
Get the length.
|
|
Insert an element into the sequence.
|
|
Print to an output stream.
Implements FieldValue. |
|
Remove an element from the sequence.
|
|
Set element.
|
|
Set the length. If the new length is greater than the current length, the additional values are initialized to the default (0.0). If the new length is less than the current length, the array is truncated.
|
|
Get the type identifier for the class.
Implements FieldValue. |