odtone::mih::enumeration
// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/types/base.hpp> template<typename T> class enumeration { public: // construct/copy/destruct enumeration(); enumeration(T); enumeration& operator=(T); // private member functions ODTONE_STATIC_ASSERT(boost::is_enum< T >::value, "T must be an enumeration"); // public member functions T get() const; template<typename ArchiveT> void serialize(ArchiveT &); bool operator==(T) const; bool operator!=(T) const; bool operator==(const enumeration &) const; bool operator!=(const enumeration &) const; // friend functions friend std::ostream & operator<<(std::ostream &, const enumeration &); };
ENUMERATED data type.
enumeration
private member functionsODTONE_STATIC_ASSERT(boost::is_enum< T >::value, "T must be an enumeration");
enumeration
public member functionsT get() const;
Get the ENUMERATION data type value.
Returns: |
The value of the ENUMERATION data type. |
template<typename ArchiveT> void serialize(ArchiveT & ar);
Serialize/deserialize the ENUMERATION data type.
Parameters: |
|
bool operator==(T val) const;
Check if the ENUMERATION value is equal to the argument value.
Parameters: |
|
||
Returns: |
True if they are equal or false otherwise. |
bool operator!=(T val) const;
Check if the ENUMERATION value is equal to the argument value.
Parameters: |
|
||
Returns: |
True if they are equal or false otherwise. |
bool operator==(const enumeration & e) const;
Check if the ENUMERATION is equal to another ENUMERATION.
Parameters: |
|
||
Returns: |
True if they are equal or false otherwise. |
bool operator!=(const enumeration & e) const;
Check if the ENUMERATION is equal to another ENUMERATION.
Parameters: |
|
||
Returns: |
True if they are equal or false otherwise. |
enumeration
friend functionsfriend std::ostream & operator<<(std::ostream & os, const enumeration & e);
ENUMERATION data type output.
Parameters: |
|
||||
Returns: |
ostream reference. |