BWAPI
Public Member Functions | Private Attributes
SafeEnum< def, inner > Class Template Reference

#include <TypeSafeEnum.h>

Collaboration diagram for SafeEnum< def, inner >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SafeEnum ()
 SafeEnum (inner v)
inner underlying () const
bool operator== (const SafeEnum &other) const
bool operator!= (const SafeEnum &other) const
bool operator< (const SafeEnum &other) const
bool operator<= (const SafeEnum &other) const
bool operator> (const SafeEnum &other) const
bool operator>= (const SafeEnum &other) const

Private Attributes

inner mValue

Detailed Description

template<typename def, typename inner = typename def::type>
class SafeEnum< def, inner >

Definition at line 5 of file TypeSafeEnum.h.


Constructor & Destructor Documentation

template<typename def, typename inner = typename def::type>
SafeEnum< def, inner >::SafeEnum ( ) [inline]

Definition at line 8 of file TypeSafeEnum.h.

: mValue() {}
template<typename def, typename inner = typename def::type>
SafeEnum< def, inner >::SafeEnum ( inner  v) [inline]

Definition at line 9 of file TypeSafeEnum.h.

: mValue(v) {}

Member Function Documentation

template<typename def, typename inner = typename def::type>
bool SafeEnum< def, inner >::operator!= ( const SafeEnum< def, inner > &  other) const [inline]

Definition at line 14 of file TypeSafeEnum.h.

{ return mValue != other.mValue; }
template<typename def, typename inner = typename def::type>
bool SafeEnum< def, inner >::operator< ( const SafeEnum< def, inner > &  other) const [inline]

Definition at line 15 of file TypeSafeEnum.h.

{ return mValue <  other.mValue; }
template<typename def, typename inner = typename def::type>
bool SafeEnum< def, inner >::operator<= ( const SafeEnum< def, inner > &  other) const [inline]

Definition at line 16 of file TypeSafeEnum.h.

{ return mValue <= other.mValue; }
template<typename def, typename inner = typename def::type>
bool SafeEnum< def, inner >::operator== ( const SafeEnum< def, inner > &  other) const [inline]

Definition at line 13 of file TypeSafeEnum.h.

{ return mValue == other.mValue; }
template<typename def, typename inner = typename def::type>
bool SafeEnum< def, inner >::operator> ( const SafeEnum< def, inner > &  other) const [inline]

Definition at line 17 of file TypeSafeEnum.h.

{ return mValue >  other.mValue; }
template<typename def, typename inner = typename def::type>
bool SafeEnum< def, inner >::operator>= ( const SafeEnum< def, inner > &  other) const [inline]

Definition at line 18 of file TypeSafeEnum.h.

{ return mValue >= other.mValue; }
template<typename def, typename inner = typename def::type>
inner SafeEnum< def, inner >::underlying ( ) const [inline]

Member Data Documentation

template<typename def, typename inner = typename def::type>
inner SafeEnum< def, inner >::mValue [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines