| Home | Download | Screen shots | Discussion | Documentation |
|---|
Inheritance diagram for openvrml::field_value:

Public Types | |
| enum | type_id { invalid_type_id, sfbool_id, sfcolor_id, sffloat_id, sfimage_id, sfint32_id, sfnode_id, sfrotation_id, sfstring_id, sftime_id, sfvec2f_id, sfvec3f_id, mfcolor_id, mffloat_id, mfint32_id, mfnode_id, mfrotation_id, mfstring_id, mftime_id, mfvec2f_id, mfvec3f_id } |
| Used to identify field_value types. More... | |
Public Member Functions | |
| virtual | ~field_value ()=0 throw () |
| Destroy. | |
| virtual std::auto_ptr< field_value > | clone () const=0 throw (std::bad_alloc) |
| Virtual copy constructor. | |
| virtual field_value & | assign (const field_value &value)=0 throw (std::bad_cast, std::bad_alloc) |
| Virtual assignment. | |
| virtual type_id | type () const=0 throw () |
| Get the field type. | |
Static Public Member Functions | |
| std::auto_ptr< field_value > | create (type_id type) throw (std::bad_alloc) |
Create a default instance of the type specified by type. | |
Protected Member Functions | |
| field_value () throw () | |
| Constructor. | |
| field_value (const field_value &value) throw () | |
| Copy constructor. | |
| field_value & | operator= (const field_value &value) throw () |
| Assignment operator. | |
Private Member Functions | |
| virtual void | print (std::ostream &out) const=0 |
| Print to an output stream. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const field_value &value) |
| Stream output. | |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &out, const field_value::type_id type_id) |
| Stream output. | |
| std::istream & | operator>> (std::istream &in, field_value::type_id &type_id) |
| Stream input. | |
|
|
Used to identify field_value types.
These tags are typically used to designate an expected type or to avoid a
|
|
|
Copy constructor.
|
|
|
Virtual assignment.
Implemented in openvrml::sfbool, openvrml::sfcolor, openvrml::sffloat, openvrml::sfimage, openvrml::sfint32, openvrml::sfnode, openvrml::sfrotation, openvrml::sfstring, openvrml::sftime, openvrml::sfvec2f, openvrml::sfvec3f, openvrml::mfcolor, openvrml::mffloat, openvrml::mfint32, openvrml::mfnode, openvrml::mfrotation, openvrml::mfstring, openvrml::mftime, openvrml::mfvec2f, and openvrml::mfvec3f. |
|
|
Virtual copy constructor.
Implemented in openvrml::sfbool, openvrml::sfcolor, openvrml::sffloat, openvrml::sfimage, openvrml::sfint32, openvrml::sfnode, openvrml::sfrotation, openvrml::sfstring, openvrml::sftime, openvrml::sfvec2f, openvrml::sfvec3f, openvrml::mfcolor, openvrml::mffloat, openvrml::mfint32, openvrml::mfnode, openvrml::mfrotation, openvrml::mfstring, openvrml::mftime, openvrml::mfvec2f, and openvrml::mfvec3f. |
|
|
Create a default instance of the type specified by
|
|
|
Assignment operator.
|
|
|
Print to an output stream.
Implemented in openvrml::sfbool, openvrml::sfcolor, openvrml::sffloat, openvrml::sfimage, openvrml::sfint32, openvrml::sfnode, openvrml::sfrotation, openvrml::sfstring, openvrml::sftime, openvrml::sfvec2f, openvrml::sfvec3f, openvrml::mfcolor, openvrml::mffloat, openvrml::mfint32, openvrml::mfnode, openvrml::mfrotation, openvrml::mfstring, openvrml::mftime, openvrml::mfvec2f, and openvrml::mfvec3f. |
|
|
Get the field type.
Implemented in openvrml::sfbool, openvrml::sfcolor, openvrml::sffloat, openvrml::sfimage, openvrml::sfint32, openvrml::sfnode, openvrml::sfrotation, openvrml::sfstring, openvrml::sftime, openvrml::sfvec2f, openvrml::sfvec3f, openvrml::mfcolor, openvrml::mffloat, openvrml::mfint32, openvrml::mfnode, openvrml::mfrotation, openvrml::mfstring, openvrml::mftime, openvrml::mfvec2f, and openvrml::mfvec3f. |
|
||||||||||||
|
Stream output.
If
|
|
||||||||||||
|
Stream output.
|
|
||||||||||||
|
Stream input.
|