#include <Enum.h>
Inheritance diagram for Enum< E >:

Public Methods | |
| Enum (std::string const &token) | |
| Enum () | |
| Enum (int value) | |
| Enum (EnumLink const &e) | |
| EnumLink const & | operator= (EnumLink const &e) |
| copy | |
| EnumLink const & | operator= (int value) |
| Directly assign by integer index. | |
| EnumLink const & | operator= (std::string const &token) |
| Directly assign by token. | |
| std::string | __repr__ () const |
| Return a string representation (for SWIG/Python). | |
| virtual void | serialize (Archive &) |
| Serialize to or from a data archive. | |
| virtual void | parseXML (const char *cdata) |
| For internal use by the XML parser. | |
| virtual std::string | typeString () const |
| Return a type label. | |
| virtual std::string | asString () const |
| Return a string representation. | |
| void | cycle (int n=1) |
| Cyclically advance the index (default is by one). | |
| void | cycleBack (int n=1) |
| Cyclically reduce the index (default is by one). | |
| void | set (std::string const &token) |
| Set this enum by token. | |
| void | set (int value) |
| Set this enum by integer index. | |
| int | getValue () const |
| Get the integer index of this enum. | |
| std::string | getToken () const |
| EnumLink | next (int n=1) const |
| Return a new Enum for the next item in the Enumeration (cyclic). | |
| EnumLink | prev (int n=1) const |
| Return a new Enum for to the previous item in the Enumeration (cyclic). | |
| EnumLink | last () const |
| Return the last item in the Enumeration. | |
| EnumLink | first () const |
| Return the first item in the Enumeration. | |
| Enumeration const & | getEnumeration () const |
| Return a reference to the associated Enumeration. | |
| operator int () const | |
| Coerce this enum to its integer index. | |
| operator std::string () const | |
| Coerce this enum to its token. | |
| bool | operator> (std::string const &token) const |
| Compare with the value of another Enumeration element. | |
| bool | operator> (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator> (EnumLink const &x) const |
| Compare with the value of another Enumeration element. | |
| bool | operator< (std::string const &token) const |
| Compare with the value of another Enumeration element. | |
| bool | operator< (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator< (EnumLink const &x) const |
| Compare with the value of another Enumeration element. | |
| bool | operator>= (std::string const &token) const |
| Compare with the value of another Enumeration element. | |
| bool | operator>= (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator>= (EnumLink const &x) const |
| Compare with the value of another Enumeration element. | |
| bool | operator<= (std::string const &token) const |
| Compare with the value of another Enumeration element. | |
| bool | operator<= (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator<= (EnumLink const &x) const |
| Compare with the value of another EnumLinkeration element. | |
| bool | operator== (std::string const &token) const |
| Compare with the value of another Enumeration element. | |
| bool | operator== (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator== (EnumLink const &x) const |
| Compare with the value of another EnumLinkeration element. | |
| bool | operator!= (std::string const &token) const |
| Compare with the value of another Enumeration element. | |
| bool | operator!= (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator!= (EnumLink const &x) const |
| Compare with the value of another EnumLinkeration element. | |
| virtual void | convertXML () |
| Convert XML data to internal format prior to serialization. | |
Protected Methods | |
| int | __size () const |
| Get the number of items in the associated Enumeration. | |
| int | getIndex () const |
| Get the enumeration index of the enum. | |
| EnumLink | makeEnum (int idx) const |
| Construct a new EnumLink bound to the current Enumeration. | |
Protected Attributes | |
| int | _idx |
| the index of the enum | |
Use this class to create Enum instances that are bound to an Enumeration during static construction. This early binding to the variable type has the advantage that the Enumeration associated with an Enum<> member variable can be accessed without instantiating the parent class. This feature is used by the ObjectInterface to enhance the introspection capabilities of SimData. An additional advantage is that Enum<> members do not have to be explicitly bound in the class ctor (which is somewhat error prone).
|
||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
Return a string representation (for SWIG/Python).
Reimplemented from EnumLink. |
|
|
Get the number of items in the associated Enumeration.
|
|
|
Return a string representation.
Implements BaseType. |
|
|
Convert XML data to internal format prior to serialization. This method is currently only called by the XML parser for Object classes. If another BaseType class requires this method, a call must be added to the appropriate XML handler in the parser. |
|
|
Cyclically advance the index (default is by one).
|
|
|
Cyclically reduce the index (default is by one).
|
|
|
Return the first item in the Enumeration.
|
|
|
Return a reference to the associated Enumeration.
|
|
|
Get the enumeration index of the enum.
|
|
|
|
|
|
Get the integer index of this enum.
|
|
|
Return the last item in the Enumeration.
|
|
|
Construct a new EnumLink bound to the current Enumeration.
|
|
|
Return a new Enum for the next item in the Enumeration (cyclic).
|
|
|
Coerce this enum to its integer index.
|
|
|
Coerce this enum to its token.
|
|
|
Compare with the value of another EnumLinkeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another EnumLinkeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
||||||||||
|
Directly assign by token.
Reimplemented from EnumLink. |
|
||||||||||
|
Directly assign by integer index.
Reimplemented from EnumLink. |
|
||||||||||
|
copy
Reimplemented from EnumLink. |
|
|
Compare with the value of another EnumLinkeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
Compare with the value of another Enumeration element.
|
|
|
For internal use by the XML parser.
Reimplemented from BaseType. |
|
|
Return a new Enum for to the previous item in the Enumeration (cyclic).
|
|
|
Serialize to or from a data archive.
Reimplemented from BaseType. |
|
|
Set this enum by integer index.
|
|
|
Set this enum by token.
|
|
|
Return a type label.
Implements BaseType. |
|
|
the index of the enum
|
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18. |