The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::BoolEnum Class Reference

The class responsible for handling State<bool> instances and converts bool instances into actual EnumTValueType instances to satisfy exisiting function signatures. More...

#include <State.hpp>

Public Types

enum class  BoolValue : unsigned int { __FIRST , FALSE = __FIRST , TRUE , __LAST }
 

Public Member Functions

 BoolEnum (const bool val)
 
 BoolEnum (const BoolValue &val)
 
 BoolEnum (const BoolEnum &other)
 
 BoolEnum (BoolEnum &&other)
 
BoolEnumoperator= (const BoolEnum &other)
 
BoolEnumoperator= (BoolEnum &&other)
 
 operator uint32_t () const
 
 operator BoolValue () const
 

Detailed Description

The class responsible for handling State<bool> instances and converts bool instances into actual EnumTValueType instances to satisfy exisiting function signatures.

Definition at line 25 of file State.hpp.

Member Enumeration Documentation

◆ BoolValue

enum class sparta::BoolEnum::BoolValue : unsigned int
strong

Definition at line 34 of file State.hpp.

Constructor & Destructor Documentation

◆ BoolEnum() [1/4]

sparta::BoolEnum::BoolEnum ( const bool  val)
inline

Definition at line 48 of file State.hpp.

◆ BoolEnum() [2/4]

sparta::BoolEnum::BoolEnum ( const BoolValue val)
inline

Definition at line 55 of file State.hpp.

◆ BoolEnum() [3/4]

sparta::BoolEnum::BoolEnum ( const BoolEnum other)
inline

Definition at line 59 of file State.hpp.

◆ BoolEnum() [4/4]

sparta::BoolEnum::BoolEnum ( BoolEnum &&  other)
inline

Definition at line 63 of file State.hpp.

Member Function Documentation

◆ operator BoolValue()

sparta::BoolEnum::operator BoolValue ( ) const
inline

Definition at line 86 of file State.hpp.

◆ operator uint32_t()

sparta::BoolEnum::operator uint32_t ( ) const
inline

Definition at line 80 of file State.hpp.

◆ operator=() [1/2]

BoolEnum & sparta::BoolEnum::operator= ( BoolEnum &&  other)
inline

Definition at line 73 of file State.hpp.

◆ operator=() [2/2]

BoolEnum & sparta::BoolEnum::operator= ( const BoolEnum other)
inline

Definition at line 67 of file State.hpp.


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