An invertible map that maps transitions to ids.
More...
#include <transition_map.h>
An invertible map that maps transitions to ids.
| meta::parser::transition_map::transition_map |
( |
const std::string & |
prefix | ) |
|
Loads a transition map from a prefix.
- Parameters
-
| prefix | The folder to load the map from |
| const transition & meta::parser::transition_map::at |
( |
trans_id |
id | ) |
const |
- Parameters
-
- Returns
- the transition corresponding to that id
| trans_id meta::parser::transition_map::at |
( |
const transition & |
trans | ) |
const |
- Parameters
-
| trans | The transition to look up |
- Returns
- the trans_id associated with that transition
| trans_id meta::parser::transition_map::operator[] |
( |
const transition & |
trans | ) |
|
Adds a transition to the map, if it doesn't already exist.
- Parameters
-
| trans | The transition to look up |
| the | trans_id associated with that transition. |
| void meta::parser::transition_map::save |
( |
const std::string & |
prefix | ) |
const |
Saves the map to a file stored in the folder indicated by prefix.
- Parameters
-
| prefix | The folder to save the map to |
| uint64_t meta::parser::transition_map::size |
( |
| ) |
const |
- Returns
- the number of transitions in the map.
The documentation for this class was generated from the following files:
- /home/chase/projects/meta/include/parser/transition_map.h
- /home/chase/projects/meta/src/parser/transition_map.cpp