state_machine_cpp
state_machine_cpp::State::Id Struct Reference

#include <state_id.h>

Inheritance diagram for state_machine_cpp::State::Id:
Collaboration diagram for state_machine_cpp::State::Id:

Public Member Functions

 Id (const char *t_name) noexcept
 
 Id (const Id &)=delete
 
 Id (Id &&)=delete
 
Idoperator= (const Id &)=delete
 
Idoperator= (Id &&)=delete
 
const std::string & name () const
 
State::Instance operator[] (unsigned int t_layer) const
 
- Public Member Functions inherited from state_machine_cpp::Util::comparable< State::Id >
bool operator== (const State::Id &t_rhs) const
 
bool operator!= (const State::Id &t_rhs) const
 

Public Attributes

const std::string m_name
 
const std::size_t m_hash
 

Protected Member Functions

bool equals_to (const Id &t_rhs) const override
 

Friends

class hash< State::Id >
 

Detailed Description

Examples
example_ForLoop_main.cpp.

Definition at line 23 of file state_id.h.

Constructor & Destructor Documentation

◆ Id() [1/3]

state_machine_cpp::State::Id::Id ( const char *  t_name)
explicitnoexcept

◆ Id() [2/3]

state_machine_cpp::State::Id::Id ( const Id )
delete

◆ Id() [3/3]

state_machine_cpp::State::Id::Id ( Id &&  )
delete

Member Function Documentation

◆ equals_to()

bool state_machine_cpp::State::Id::equals_to ( const Id t_rhs) const
inlineoverrideprotectedvirtual

Implements state_machine_cpp::Util::comparable< State::Id >.

Definition at line 46 of file state_id.h.

◆ name()

const std::string & state_machine_cpp::State::Id::name ( ) const
inline

Definition at line 42 of file state_id.h.

◆ operator=() [1/2]

Id& state_machine_cpp::State::Id::operator= ( const Id )
delete

◆ operator=() [2/2]

Id& state_machine_cpp::State::Id::operator= ( Id &&  )
delete

◆ operator[]()

State::Instance state_machine_cpp::State::Id::operator[] ( unsigned int  t_layer) const

Friends And Related Function Documentation

◆ hash< State::Id >

friend class hash< State::Id >
friend

Definition at line 27 of file state_id.h.

Member Data Documentation

◆ m_hash

const std::size_t state_machine_cpp::State::Id::m_hash

Definition at line 25 of file state_id.h.

◆ m_name

const std::string state_machine_cpp::State::Id::m_name

Definition at line 24 of file state_id.h.


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