VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::Enum_set< Enum_type > Class Template Reference

Convenient set of enum values. More...

#include <enum_set.h>

Public Member Functions

template<typename... Enum_types>
 Enum_set (Enum_types...values)
 Construct the set based on arbitrary set of values. More...
 
void Set (Enum_type value, bool present=true)
 Set enum value presence to true or false. More...
 
void Reset ()
 Reset state to empty. More...
 
bool Is_set (Enum_type value) const
 Check if enum value is present or not. More...
 
bool operator== (const Enum_set &other) const
 Equality operator. More...
 

Detailed Description

template<typename Enum_type>
class ugcs::vsm::Enum_set< Enum_type >

Convenient set of enum values.

Enum_type should have field named LAST as a last enum item which is used to know the size of the enum.

Constructor & Destructor Documentation

template<typename Enum_type>
template<typename... Enum_types>
ugcs::vsm::Enum_set< Enum_type >::Enum_set ( Enum_types...  values)
inline

Construct the set based on arbitrary set of values.

Member Function Documentation

template<typename Enum_type>
bool ugcs::vsm::Enum_set< Enum_type >::Is_set ( Enum_type  value) const
inline

Check if enum value is present or not.

template<typename Enum_type>
bool ugcs::vsm::Enum_set< Enum_type >::operator== ( const Enum_set< Enum_type > &  other) const
inline

Equality operator.

template<typename Enum_type>
void ugcs::vsm::Enum_set< Enum_type >::Reset ( )
inline

Reset state to empty.

template<typename Enum_type>
void ugcs::vsm::Enum_set< Enum_type >::Set ( Enum_type  value,
bool  present = true 
)
inline

Set enum value presence to true or false.


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