#include <OSGMField.h>
Inheritance diagram for osg::MField< FieldTypeT, fieldNameSpace >:


Public Types | |
| typedef MFieldVector< FieldTypeT > | StorageType |
| Storage type. | |
| typedef StorageType::iterator | iterator |
| Storage iterator. | |
| typedef StorageType::const_iterator | const_iterator |
| Const Storage iterator. | |
| typedef StorageType::reference | reference |
| Value reference. | |
| typedef StorageType::const_reference | const_reference |
| Const value reference. | |
| typedef osgIF< fieldNameSpace==1, FieldDataTraits1< FieldTypeT >, FieldDataTraits2< FieldTypeT > >::_IRet | MF1Trait |
| typedef osgIF< fieldNameSpace==0, FieldDataTraits< FieldTypeT >, MF1Trait >::_IRet | MFieldTraits |
| typedef MField< FieldTypeT, fieldNameSpace > | Self |
| typedef FieldTypeT | StoredType |
| typedef MFieldTraits::ArgumentType | ArgumentType |
Public Methods | |
Constructors | |
| MField (void) | |
| MField (const MField &obj) | |
| MField (const UInt32 size) | |
Destructor | |
| virtual | ~MField (void) |
Get | |
| reference | getValue (const UInt32 index) |
| const_reference | getValue (const UInt32 index) const |
| virtual UInt32 | getSize (void) const |
| Returns the size of the field, allway 1 for single fields. | |
| StorageType & | getValues (void) |
| Return a reference to the value store. | |
| const StorageType & | getValues (void) const |
| Return a const reference to the value store. | |
| virtual const FieldType & | getType (void) const |
| Returns the type of the field. | |
| virtual bool | isEmpty (void) const |
| Returns the type of the field. | |
Set | |
| virtual void | setAbstrValue (const Field &obj) |
| Copies the values from a given field iff the two fieldtypes are the same. | |
| void | setValues (const StorageType &value) |
| Copies the values from a given value store. | |
| void | setValues (const Self &obj) |
| Copies the values from a given field. | |
| void | setValue (ArgumentType value, const UInt32 index) |
| Copies the values from a given field iff the two fieldtypes are the same. | |
| void | addValue (ArgumentType value) |
| Copies the values from a given field iff the two fieldtypes are the same. | |
STL Interface | |
| iterator | begin (void) |
| Return an iterator to the first element. | |
| iterator | end (void) |
| Return an iterator to the end of the store. | |
| const_iterator | begin (void) const |
| Return a const iterator to the first element. | |
| const_iterator | end (void) const |
| Return a const iterator to the end of the store. | |
| reference | front (void) |
| Returns an interator to the first element. | |
| const_reference | front (void) const |
| Returns a const interator to the first element. | |
| reference | back (void) |
| Returns an interator to the last element. | |
| const_reference | back (void) const |
| Returns a const interator to the last element. | |
| void | clear (void) |
| Clears the value store. | |
| iterator | insert (iterator pos, ArgumentType value) |
| Inserts value at the given pos. | |
| iterator | erase (iterator pos) |
| Removes values from the given pos. | |
| iterator | find (ArgumentType value) |
| Returns an iterator to the given value if found otherwise end(). | |
| const_iterator | find (ArgumentType value) const |
| Returns a const iterator to the given value if found otherwise end(). | |
| void | push_back (ArgumentType value) |
| push back value | |
| void | resize (size_t newsize, FieldTypeT t=FieldTypeT()) |
| resizes the container to given size. Depends on the underlying stll container implementation | |
| void | reserve (size_t newsize) |
| allocates memory for the given number of elements. Depends on the underlying stl container implementation | |
| UInt32 | size (void) const |
| Returns the size of the field. | |
| bool | empty (void) const |
| Returns true if the field does not hold any value. | |
Index Operator | |
| reference | operator[] (UInt32 index) |
| Returns a reference to the value at the given index. | |
| const_reference | operator[] (UInt32 index) const |
| Returns a const reference to the value at the given index. | |
Assignment | |
| void | operator= (const MField &source) |
String IO | |
| virtual void | pushValueByStr (const Char8 *str) |
| Sets the field value from a given string. | |
| virtual string & | getValueByStr (string &str) const |
| Dump the field to a given string. | |
| virtual string & | getValueByStr (string &str, StringConversionStateBase &state) const |
| Sets the field value from a given string. | |
MT Sync | |
| void | syncWith (Self &source) |
Binary Interface | |
| UInt32 | getBinSize (void) |
| void | copyToBin (BinaryDataHandler &pMem) |
| void | copyFromBin (BinaryDataHandler &pMem) |
Dump | |
| virtual void | dump (void) const |
| Dump property contents to stderr, should be changed to use a log stream instead. | |
Static Public Methods | |
Class Get | |
| const FieldType & | getClassType (void) |
Protected Types | |
| typedef Field | Inherited |
| Parent type. | |
Static Protected Methods | |
| Field * | create (void) |
| Create method used by the factory to create an instance. | |
Protected Attributes | |
| StorageType | _values |
| Value store. | |
Static Protected Attributes | |
| const FieldType | _fieldType |
Friends | |
| class | FieldContainer |
|
|||||
|
Storage type.
|
|
|||||
|
Storage iterator.
|
|
|||||
|
Const Storage iterator.
|
|
|||||
|
Value reference.
|
|
|||||
|
Const value reference.
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
Parent type.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Returns the size of the field, allway 1 for single fields.
Implements osg::Field. |
|
||||||||||
|
Return a reference to the value store.
|
|
||||||||||
|
Return a const reference to the value store.
|
|
||||||||||
|
Returns the type of the field.
Implements osg::Field. |
|
||||||||||
|
Returns the type of the field.
Implements osg::Field. |
|
||||||||||
|
Copies the values from a given field iff the two fieldtypes are the same.
Implements osg::Field. |
|
||||||||||
|
Copies the values from a given value store.
|
|
||||||||||
|
Copies the values from a given field.
|
|
||||||||||||||||
|
Copies the values from a given field iff the two fieldtypes are the same.
|
|
||||||||||
|
Copies the values from a given field iff the two fieldtypes are the same.
|
|
||||||||||
|
Return an iterator to the first element.
|
|
||||||||||
|
Return an iterator to the end of the store.
|
|
||||||||||
|
Return a const iterator to the first element.
|
|
||||||||||
|
Return a const iterator to the end of the store.
|
|
||||||||||
|
Returns an interator to the first element.
|
|
||||||||||
|
Returns a const interator to the first element.
|
|
||||||||||
|
Returns an interator to the last element.
|
|
||||||||||
|
Returns a const interator to the last element.
|
|
||||||||||
|
Clears the value store.
|
|
||||||||||||||||
|
Inserts value at the given pos.
|
|
||||||||||
|
Removes values from the given pos.
|
|
||||||||||
|
Returns an iterator to the given value if found otherwise end().
|
|
||||||||||
|
Returns a const iterator to the given value if found otherwise end().
|
|
||||||||||
|
push back value
|
|
||||||||||||||||
|
resizes the container to given size. Depends on the underlying stll container implementation
|
|
||||||||||
|
allocates memory for the given number of elements. Depends on the underlying stl container implementation
|
|
||||||||||
|
Returns the size of the field.
|
|
||||||||||
|
Returns true if the field does not hold any value.
|
|
||||||||||
|
Returns a reference to the value at the given index.
|
|
||||||||||
|
Returns a const reference to the value at the given index.
|
|
||||||||||
|
|
|
||||||||||
|
Sets the field value from a given string.
Implements osg::Field. |
|
||||||||||
|
Dump the field to a given string.
Implements osg::Field. |
|
||||||||||||||||
|
Sets the field value from a given string.
Implements osg::Field. |
|
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
Dump property contents to stderr, should be changed to use a log stream instead.
Implements osg::Field. |
|
||||||||||
|
Create method used by the factory to create an instance.
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
Value store.
|
1.2.16