#include <RefCountMField.h>
Inheritance diagram for H3D::RefCountMField< RefClass >:

Public Types | |
|
typedef MFieldBase< RefClass *, FieldInternals::MFNodeAutoRefVector< RefClass >, Field > | BaseFieldType |
Public Member Functions | |
| H3D_VALUE_EXCEPTION (typename BaseFieldType::size_type, InvalidIndex) | |
| Thrown if the index given to getValueByIndex() is outside the boundaries. | |
| RefCountMField () | |
| Default constructor. Creates an empty RefCountMField. | |
| RefCountMField (typename FieldInternals::MFNodeAutoRefVector< RefClass >::size_type sz) | |
| Creates an RefCountMField with space reserved for size nodes. | |
| virtual const NodeVector & | getValue (int id=0) |
| Get the value of the MField. | |
| virtual RefClass * | getValueByIndex (typename BaseFieldType::size_type i, int id=0) |
| Get the value of the MField. | |
| void | setValue (typename FieldInternals::MFNodeAutoRefVector< RefClass >::size_type i, const typename FieldInternals::MFNodeAutoRefVector< RefClass >::value_type &v, int id=0) |
| TEMPORARILY REMOVED: causes INTERNAL_COMPILER_ERROR Get the value of an element of the MField. | |
| virtual void | setValue (const AutoRefVector< RefClass > &v, int id=0) |
| Set the value of the field. | |
| virtual void | setValue (const vector< RefClass * > &v, int id=0) |
| Set the value of the field. | |
| virtual void | swap (vector< RefClass * > &v, int id=0) |
| Swaps the contents of two vectors. | |
| virtual void | erase (RefClass *a, int id=0) |
| Erase the first element equal to a. | |
| virtual string | getTypeName () |
| Returns a string name for this field type i.e. SFNode. | |
Static Public Member Functions | |
| static string | classTypeName () |
| Returns a string name for this field type i.e. SFNode. | |
Protected Member Functions | |
| virtual void | update () |
| Make the field up to date given that an event has occured. | |
| virtual RefClass * | preOnAdd (RefClass *n) |
| virtual RefClass * | preOnRemove (RefClass *n) |
| virtual void | onAdd (RefClass *n) |
| This function will be called when values of SFNode changes. | |
| virtual void | onRemove (RefClass *n) |
| This function will be called when values of SFNode changes. | |
Friends | |
| class | FieldInternals::MFNodeAutoRefVector< RefClass > |
Reference counting on the encapsulated RefCountedClass instances are upheld when changes to the values are made.
|
||||||||||
|
This function will be called when values of SFNode changes. As soon as a Node is added onAdd will be called on the added value.
Reimplemented in H3D::Contour2D::AddTheChildren, H3D::Contour2D::CheckTheChildren, H3D::TypedMFNode< NodeType >, H3D::TypedMFNodeObject< Type >, H3D::NurbsTrimmedSurface::AddContour, and H3D::NurbsTrimmedSurface::CheckContour. |
|
||||||||||
|
This function will be called when values of SFNode changes. As soon as a Node is removed onRemove will be called on the removed value.
Reimplemented in H3D::Contour2D::RemoveTheChildren, H3D::Contour2D::CheckTheChildren, H3D::NurbsTrimmedSurface::RemoveContour, and H3D::NurbsTrimmedSurface::CheckContour. |
|
||||||||||||||||
|
Set the value of the field.
|
|
||||||||||||||||
|
Set the value of the field.
|
|
||||||||||||||||||||
|
TEMPORARILY REMOVED: causes INTERNAL_COMPILER_ERROR Get the value of an element of the MField.
|
1.4.5