Pol  Revision:3cfda13
Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type > Struct Template Reference

#include <uobject.h>

Public Types

typedef std::underlying_type< ENUM >::type enum_t
 

Public Member Functions

 AttributeFlags ()
 
void change (ENUM flag, bool value)
 
bool get (ENUM flag) const
 
void remove (ENUM flag)
 
void reset ()
 
void set (ENUM flag)
 

Private Attributes

enum_t flags_
 

Detailed Description

template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
struct Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >

Definition at line 103 of file uobject.h.

Member Typedef Documentation

template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
typedef std::underlying_type<ENUM>::type Pol::Core::AttributeFlags< ENUM, type >::enum_t

Definition at line 105 of file uobject.h.

Constructor & Destructor Documentation

template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
Pol::Core::AttributeFlags< ENUM, type >::AttributeFlags ( )
inline

Definition at line 106 of file uobject.h.

Member Function Documentation

template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
bool Pol::Core::AttributeFlags< ENUM, type >::get ( ENUM  flag) const
inline
template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
void Pol::Core::AttributeFlags< ENUM, type >::remove ( ENUM  flag)
inline
template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
void Pol::Core::AttributeFlags< ENUM, type >::reset ( )
inline

Definition at line 122 of file uobject.h.

Referenced by Pol::Mobile::Character::refresh_cached_settings().

template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
void Pol::Core::AttributeFlags< ENUM, type >::set ( ENUM  flag)
inline

Member Data Documentation

template<typename ENUM, typename std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type = 0>
enum_t Pol::Core::AttributeFlags< ENUM, type >::flags_
private

Definition at line 122 of file uobject.h.


The documentation for this struct was generated from the following file: