#include <enumeration.h>

Public Member Functions | |
| const std::string & | GetName () const |
| |
| bool | operator== (const Enumeration &rhs) const |
| Equality test for an enumeration. | |
| bool | operator!= (const Enumeration &rhs) const |
| Inequality test for an enumeration. | |
| bool | operator== (const std::string &rhs) const |
| Overloaded string compare operator for the enumeration. | |
| bool | operator!= (const std::string &rhs) const |
| Overloaded inequality test for this enumeration's string value. | |
| bool | operator< (const std::string &rhs) const |
| Overloaded less than test for this enumeration's string value. | |
| bool | operator> (const std::string &rhs) const |
| Overloaded greater than test for this enumeration's string value. | |
| bool | operator< (const Enumeration &rhs) const |
| Overloaded less than operator. | |
Protected Member Functions | |
| virtual | ~Enumeration () |
| Private virtual desctructor to get rid of compile warning. | |
| Enumeration (const std::string &name) | |
| Construct the enumeration. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Enumeration &e) |
| Helper method to print enumerations to an output stream. | |
It allows one to also enumerate an enumeration thus looking up values in a list fashion.
| virtual dtUtil::Enumeration::~Enumeration | ( | ) | [inline, protected, virtual] |
Private virtual desctructor to get rid of compile warning.
| dtUtil::Enumeration::Enumeration | ( | const std::string & | name | ) | [inline, protected] |
Construct the enumeration.
| const std::string& dtUtil::Enumeration::GetName | ( | ) | const [inline] |
| bool dtUtil::Enumeration::operator== | ( | const Enumeration & | rhs | ) | const [inline] |
Equality test for an enumeration.
Since enumeration objects are static, and only references to enumerations may be stored by the user, it is safe and efficient to compare enumeration objects based on their memory address.
| bool dtUtil::Enumeration::operator!= | ( | const Enumeration & | rhs | ) | const [inline] |
Inequality test for an enumeration.
| bool dtUtil::Enumeration::operator== | ( | const std::string & | rhs | ) | const [inline] |
Overloaded string compare operator for the enumeration.
This will compare the string to this enumerations getName() value.
| rhs |
| bool dtUtil::Enumeration::operator!= | ( | const std::string & | rhs | ) | const [inline] |
Overloaded inequality test for this enumeration's string value.
| bool dtUtil::Enumeration::operator< | ( | const std::string & | rhs | ) | const [inline] |
Overloaded less than test for this enumeration's string value.
| bool dtUtil::Enumeration::operator> | ( | const std::string & | rhs | ) | const [inline] |
Overloaded greater than test for this enumeration's string value.
| bool dtUtil::Enumeration::operator< | ( | const Enumeration & | rhs | ) | const [inline] |
Overloaded less than operator.
This checks the memory addresses of the two enumerations.
| rhs | The second enumeration to compare to this one. |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Enumeration & | e | |||
| ) | [friend] |
Helper method to print enumerations to an output stream.