Program Listing for File state_map_row.hpp

Return to documentation for file (rcppsw/patterns/fsm/state_map_row.hpp)

#pragma once

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "rcppsw/rcppsw.hpp"
#include "rcppsw/patterns/fsm/state.hpp"

/*******************************************************************************
 * Namespaces/Decls
 ******************************************************************************/
namespace rcppsw::patterns::fsm {

/*******************************************************************************
 * Class Definitions
 ******************************************************************************/
class state_map_row {
 public:
  explicit state_map_row(rcppsw::patterns::fsm::state* state)
      : m_state(state) {}

  rcppsw::patterns::fsm::state* state(void) const { return m_state; }

 private:
  /* clang-format off */
  rpfsm::state* m_state;
  /* clang-format on */
};

} /* namespace rcppsw::patterns::fsm */