GCC Middle and Back End API Reference
ana::state_machine::state Class Reference

#include <sm.h>

Public Member Functions

 state (const char *name, unsigned id)
 
virtual ~state ()
 
const char * get_name () const
 
virtual void dump_to_pp (pretty_printer *pp) const
 
virtual std::unique_ptr< json::valueto_json () const
 
unsigned get_id () const
 

Private Attributes

const char * m_name
 
unsigned m_id
 

Constructor & Destructor Documentation

◆ state()

ana::state_machine::state::state ( const char * name,
unsigned id )
inline

◆ ~state()

virtual ana::state_machine::state::~state ( )
inlinevirtual

Member Function Documentation

◆ dump_to_pp()

virtual void ana::state_machine::state::dump_to_pp ( pretty_printer * pp) const
virtual

◆ get_id()

unsigned ana::state_machine::state::get_id ( ) const
inline

References m_id.

◆ get_name()

const char * ana::state_machine::state::get_name ( ) const
inline

References m_name.

◆ to_json()

virtual std::unique_ptr< json::value > ana::state_machine::state::to_json ( ) const
virtual

Field Documentation

◆ m_id

unsigned ana::state_machine::state::m_id
private

Referenced by get_id().

◆ m_name

const char* ana::state_machine::state::m_name
private

Referenced by get_name().


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