Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::enum_type< IntType, EnumType > Class Template Reference

#include <enum_type.hpp>

Public Member Functions

 enum_type (EnumType t)
 
 enum_type (IntType t)
 
 enum_type ()
 
 operator IntType () const
 
 operator EnumType () const
 
 operator std::string () const
 
enum_typeoperator= (IntType i)
 
enum_typeoperator= (EnumType i)
 
bool operator< (EnumType i) const
 
bool operator> (EnumType i) const
 
bool operator< (const enum_type &e) const
 
bool operator> (const enum_type &e) const
 
bool operator<= (const enum_type &e) const
 
bool operator>= (const enum_type &e) const
 

Public Attributes

EnumType value
 

Friends

bool operator== (const enum_type &e, IntType i)
 
bool operator== (const enum_type &e, EnumType i)
 
bool operator== (const enum_type &e, const enum_type &i)
 
bool operator== (IntType i, const enum_type &e)
 
bool operator== (EnumType i, const enum_type &e)
 
bool operator!= (const enum_type &e, IntType i)
 
bool operator!= (const enum_type &e, EnumType i)
 
bool operator!= (const enum_type &e, const enum_type &i)
 

Detailed Description

template<typename IntType, typename EnumType>
class fc::enum_type< IntType, EnumType >

Definition at line 22 of file raw_fwd.hpp.

Constructor & Destructor Documentation

◆ enum_type() [1/3]

template<typename IntType , typename EnumType >
fc::enum_type< IntType, EnumType >::enum_type ( EnumType t)
inlineexplicit

Definition at line 12 of file enum_type.hpp.

13 :value(t){}
EnumType value
Definition enum_type.hpp:46

◆ enum_type() [2/3]

template<typename IntType , typename EnumType >
fc::enum_type< IntType, EnumType >::enum_type ( IntType t)
inlineexplicit

Definition at line 15 of file enum_type.hpp.

16 :value( (EnumType)t ){}

◆ enum_type() [3/3]

template<typename IntType , typename EnumType >
fc::enum_type< IntType, EnumType >::enum_type ( )
inline

Definition at line 18 of file enum_type.hpp.

18{}

Member Function Documentation

◆ operator EnumType()

template<typename IntType , typename EnumType >
fc::enum_type< IntType, EnumType >::operator EnumType ( ) const
inline

Definition at line 21 of file enum_type.hpp.

21{ return value; }

◆ operator IntType()

template<typename IntType , typename EnumType >
fc::enum_type< IntType, EnumType >::operator IntType ( ) const
inlineexplicit

Definition at line 20 of file enum_type.hpp.

20{ return static_cast<IntType>(value); }

◆ operator std::string()

template<typename IntType , typename EnumType >
fc::enum_type< IntType, EnumType >::operator std::string ( ) const
inline

Definition at line 22 of file enum_type.hpp.

defines visit functions for T Unless this is specialized, visit() will not be defined for T.
Definition reflect.hpp:33

◆ operator<() [1/2]

template<typename IntType , typename EnumType >
bool fc::enum_type< IntType, EnumType >::operator< ( const enum_type< IntType, EnumType > & e) const
inline

Definition at line 29 of file enum_type.hpp.

29{ return value < e.value;}

◆ operator<() [2/2]

template<typename IntType , typename EnumType >
bool fc::enum_type< IntType, EnumType >::operator< ( EnumType i) const
inline

Definition at line 26 of file enum_type.hpp.

26{ return value < i; }

◆ operator<=()

template<typename IntType , typename EnumType >
bool fc::enum_type< IntType, EnumType >::operator<= ( const enum_type< IntType, EnumType > & e) const
inline

Definition at line 32 of file enum_type.hpp.

32{ return value <= e.value;}

◆ operator=() [1/2]

template<typename IntType , typename EnumType >
enum_type & fc::enum_type< IntType, EnumType >::operator= ( EnumType i)
inline

Definition at line 25 of file enum_type.hpp.

25{ value = i; return *this;}

◆ operator=() [2/2]

template<typename IntType , typename EnumType >
enum_type & fc::enum_type< IntType, EnumType >::operator= ( IntType i)
inline

Definition at line 24 of file enum_type.hpp.

24{ value = (EnumType)i; return *this;}

◆ operator>() [1/2]

template<typename IntType , typename EnumType >
bool fc::enum_type< IntType, EnumType >::operator> ( const enum_type< IntType, EnumType > & e) const
inline

Definition at line 30 of file enum_type.hpp.

30{ return value > e.value;}

◆ operator>() [2/2]

template<typename IntType , typename EnumType >
bool fc::enum_type< IntType, EnumType >::operator> ( EnumType i) const
inline

Definition at line 27 of file enum_type.hpp.

27{ return value > i; }

◆ operator>=()

template<typename IntType , typename EnumType >
bool fc::enum_type< IntType, EnumType >::operator>= ( const enum_type< IntType, EnumType > & e) const
inline

Definition at line 33 of file enum_type.hpp.

33{ return value >= e.value;}

Friends And Related Symbol Documentation

◆ operator!= [1/3]

template<typename IntType , typename EnumType >
bool operator!= ( const enum_type< IntType, EnumType > & e,
const enum_type< IntType, EnumType > & i )
friend

Definition at line 44 of file enum_type.hpp.

44{ return e.value != i.value; }

◆ operator!= [2/3]

template<typename IntType , typename EnumType >
bool operator!= ( const enum_type< IntType, EnumType > & e,
EnumType i )
friend

Definition at line 43 of file enum_type.hpp.

43{ return e.value != i; }

◆ operator!= [3/3]

template<typename IntType , typename EnumType >
bool operator!= ( const enum_type< IntType, EnumType > & e,
IntType i )
friend

Definition at line 42 of file enum_type.hpp.

42{ return e.value != (EnumType)i;}

◆ operator== [1/5]

template<typename IntType , typename EnumType >
bool operator== ( const enum_type< IntType, EnumType > & e,
const enum_type< IntType, EnumType > & i )
friend

Definition at line 38 of file enum_type.hpp.

38{ return e.value == i.value; }

◆ operator== [2/5]

template<typename IntType , typename EnumType >
bool operator== ( const enum_type< IntType, EnumType > & e,
EnumType i )
friend

Definition at line 36 of file enum_type.hpp.

36{ return e.value == i; }

◆ operator== [3/5]

template<typename IntType , typename EnumType >
bool operator== ( const enum_type< IntType, EnumType > & e,
IntType i )
friend

Definition at line 35 of file enum_type.hpp.

35{ return e.value == (EnumType)i;}

◆ operator== [4/5]

template<typename IntType , typename EnumType >
bool operator== ( EnumType i,
const enum_type< IntType, EnumType > & e )
friend

Definition at line 40 of file enum_type.hpp.

40{ return e.value == i; }

◆ operator== [5/5]

template<typename IntType , typename EnumType >
bool operator== ( IntType i,
const enum_type< IntType, EnumType > & e )
friend

Definition at line 39 of file enum_type.hpp.

39{ return e.value == (EnumType)i; }

Member Data Documentation

◆ value

template<typename IntType , typename EnumType >
EnumType fc::enum_type< IntType, EnumType >::value

Definition at line 46 of file enum_type.hpp.


The documentation for this class was generated from the following files: