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

Public Methods | |
| EnumLink (Enumeration const &E) | |
| EnumLink (Enumeration const &E, int value) | |
| EnumLink (Enumeration const &E, std::string const &token) | |
| 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. | |
| EnumLink (EnumLink const &e) | |
| copy constructor | |
| 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 |
| std::string | __repr__ () const |
| Return a string representation (for SWIG/Python). | |
| 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. | |
| EnumLink const & | operator= (int value) |
| Directly assign by integer index. | |
| EnumLink const & | operator= (std::string const &token) |
| Directly assign by token. | |
| EnumLink const & | operator= (EnumLink const &e) |
| copy | |
| bool | operator> (std::string const &token) 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>= (std::string const &token) 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== (std::string const &token) 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< (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator>= (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator<= (int value) const |
| Compare with the value of another Enumeration element. | |
| bool | operator== (int value) 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< (EnumLink const &x) 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<= (EnumLink const &x) const |
| Compare with the value of another EnumLinkeration element. | |
| bool | operator== (EnumLink const &x) const |
| Compare with the value of another EnumLinkeration 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. | |
| EnumLink () | |
| The default constructor creates an unbound EnumLink. | |
| int | getIndex () const |
| Get the enumeration index of the enum. | |
| EnumLink (int idx, Enumeration const &E) | |
| Construct a new EnumLink bound to a given Enumeration. | |
| EnumLink | makeEnum (int idx) const |
| Construct a new EnumLink bound to the current Enumeration. | |
Protected Attributes | |
| int | _idx |
| the index of the enum | |
Friends | |
| class | Enumeration |
This class is used internally to return Enum instances from an Enumeration, which is unable to directly create templated Enum instances. EnumLinks can also be used to create Enums on the fly by specifying an existing Enumeration in the constructor. EnumLink's and Enum templates can be used interchangeably.
|
|
The default constructor creates an unbound EnumLink.
|
|
||||||||||||
|
Construct a new EnumLink bound to a given Enumeration.
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
copy constructor
|
|
|
Return a string representation (for SWIG/Python).
Reimplemented in Enum< E >, Enum< InterpolatedData< float >::Method >, and Enum< InterpolatedData< T >::Method >. |
|
|
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.
|
|
|
copy
Reimplemented in Enum< E >, Enum< InterpolatedData< float >::Method >, and Enum< InterpolatedData< T >::Method >. |
|
|
Directly assign by token.
Reimplemented in Enum< E >, Enum< InterpolatedData< float >::Method >, and Enum< InterpolatedData< T >::Method >. |
|
|
Directly assign by integer index.
Reimplemented in Enum< E >, Enum< InterpolatedData< float >::Method >, and Enum< InterpolatedData< T >::Method >. |
|
|
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. |