StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
class templates: contains a map of all templates More...
#include <modelTemplate.h>
Public Member Functions | |
templates () | |
templates (std::string &) | |
~templates () | |
Create templates from file. | |
bool | parse (std::string &) |
Parses the model templates string. | |
void | addTemplate (std::string &) |
hand it a string with multiple stencles and have it parse out each one to be added to the templates | |
void | print () |
std::string & | stringify () |
std::string | getTemplate (std::string &, std::string &, std::map< std::string, std::string > &) |
returns string representation of states with all parameters filled out |
Private Attributes | |
std::map< std::string, stencil * > | temps |
returns all filled out templates for ID give |
class templates: contains a map of all templates
class templates: contains a map of all templates, each should have a different identifier.
Definition at line 66 of file modelTemplate.h.
StochHMM::templates::templates | ( | ) |
Definition at line 94 of file modelTemplate.cpp.
StochHMM::templates::templates | ( | std::string & | template_string | ) |
Definition at line 96 of file modelTemplate.cpp.
References parse().
StochHMM::templates::~templates | ( | ) |
void StochHMM::templates::addTemplate | ( | std::string & | template_string | ) |
hand it a string with multiple stencles and have it parse out each one to be added to the templates
Adds more templates when passed a template string.
Definition at line 144 of file modelTemplate.cpp.
References parse().
std::string StochHMM::templates::getTemplate | ( | std::string & | Template, |
std::string & | ID, | ||
std::map< std::string, std::string > & | UserVals | ||
) |
returns string representation of states with all parameters filled out
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 |
Definition at line 155 of file modelTemplate.cpp.
References temps.
Referenced by StochHMM::model::_processTemplateState().
bool StochHMM::templates::parse | ( | std::string & | model_temp | ) |
Parses the model templates string.
Takes the string passed to it and parses out each template to then be added to the Templates structure using stensil on each one
Definition at line 110 of file modelTemplate.cpp.
References StochHMM::stencil::parse(), and temps.
Referenced by StochHMM::model::_parseTemplates(), addTemplate(), and templates().
|
inline |
Definition at line 78 of file modelTemplate.h.
References stringify().
std::string& StochHMM::templates::stringify | ( | ) |
Referenced by print().
|
private |
returns all filled out templates for ID give
Definition at line 88 of file modelTemplate.h.
Referenced by getTemplate(), parse(), and ~templates().