StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
class stencil: contains individial model template and keeps track of coordinates for replacement More...
#include <modelTemplate.h>
Public Member Functions | |
stencil () | |
stencil (std::string &) | |
bool | parse (std::string &) |
Construct stencil from string. | |
std::string | getTemplate (std::string &, std::string &, std::map< std::string, std::string > &) |
Returns a string with template filled out. | |
std::string | CheckParameter (std::string &) |
Returns the template with all user and identifiers filled out. | |
void | print () |
std::string | stringify () |
Prints template string. |
Private Attributes | |
std::string | states |
Returns template string. | |
std::set< std::string > | UserParameterKeys |
Template string. |
class stencil: contains individial model template and keeps track of coordinates for replacement
Definition at line 43 of file modelTemplate.h.
StochHMM::stencil::stencil | ( | ) |
Definition at line 31 of file modelTemplate.cpp.
StochHMM::stencil::stencil | ( | std::string & | txt | ) |
std::string StochHMM::stencil::CheckParameter | ( | std::string & | ) |
Returns the template with all user and identifiers filled out.
std::string StochHMM::stencil::getTemplate | ( | std::string & | Template, |
std::string & | ID, | ||
std::map< std::string, std::string > & | UserValues | ||
) |
Returns a string with template filled out.
Takes the template map and fills it out according to the specific Template you are looking at and the ID number that you want to use
Template | Name of template you want to return |
ID | The number iterated in this return |
map_template | map string of strings filled out in other subroutines |
Find all userParameters and replace
Check the coordinates and replace with proper coordinats The name should be only the tagName without brackets But the start should be the position of first bracket and stop should be the position of the last bracket
Definition at line 63 of file modelTemplate.cpp.
References states.
bool StochHMM::stencil::parse | ( | std::string & | txt | ) |
Construct stencil from string.
Takes a template string and finds all user defined variables (userParameters). Adds these to a set of strings
Find all userParameters Marks
Definition at line 39 of file modelTemplate.cpp.
References states, and UserParameterKeys.
Referenced by StochHMM::templates::parse(), and stencil().
|
inline |
Definition at line 55 of file modelTemplate.h.
References stringify().
|
inline |
Prints template string.
Definition at line 56 of file modelTemplate.h.
References states.
Referenced by print().
|
private |
Returns template string.
Definition at line 56 of file modelTemplate.h.
Referenced by getTemplate(), parse(), and stringify().
|
private |