Mlpack::util::saverestoreutility -
SaveRestoreUtility ()
~SaveRestoreUtility ()
template<typename T > T & LoadParameter (T &t, const std::string &name)
LoadParameter loads a parameter from the parameters map. template<typename T > std::vector< T > & LoadParameter (std::vector< T > &v, const std::string &name)
LoadParameter loads a parameter from the parameters map. char LoadParameter (char c, const std::string &name)
LoadParameter loads a character from the parameters map. std::string LoadParameter (std::string &str, const std::string &name)
LoadParameter loads a string from the parameters map. arma::mat & LoadParameter (arma::mat &matrix, const std::string &name)
LoadParameter loads an arma::mat from the parameters map. template<> arma::vec & LoadParameter (arma::vec &t, const std::string &name)
Specialization for arma::vec. bool ReadFile (const std::string &filename)
ReadFile reads an XML tree from a file. template<typename T > void SaveParameter (const T &t, const std::string &name)
SaveParameter saves a parameter to the parameters map. template<typename T > void SaveParameter (const std::vector< T > &v, const std::string &name)
SaveParameter saves a parameter to the parameters map. void SaveParameter (const char c, const std::string &name)
SaveParameter saves a character to the parameters map. void SaveParameter (const arma::mat &mat, const std::string &name)
SaveParameter saves an arma::mat to the parameters map. template<> void SaveParameter (const arma::vec &t, const std::string &name)
Specialization for arma::vec. bool WriteFile (const std::string &filename)
WriteFile writes the XML tree to a file.
void RecurseOnNodes (xmlNode *n)
RecurseOnNodes performs a depth first search of the XML tree.
std::map< std::string,
std::string > parameters"
parameters contains a list of names and parameters in string form.
Definition at line 42 of file save_restore_utility.hpp.
Definition at line 56 of file save_restore_utility.hpp.
Definition at line 57 of file save_restore_utility.hpp.
References parameters.
LoadParameter loads a parameter from the parameters map.
LoadParameter loads a parameter from the parameters map.
LoadParameter loads a character from the parameters map.
LoadParameter loads a string from the parameters map.
LoadParameter loads an arma::mat from the parameters map.
Specialization for arma::vec.
ReadFile reads an XML tree from a file.
RecurseOnNodes performs a depth first search of the XML tree.
SaveParameter saves a parameter to the parameters map.
SaveParameter saves a parameter to the parameters map.
SaveParameter saves a character to the parameters map.
SaveParameter saves an arma::mat to the parameters map.
Specialization for arma::vec.
WriteFile writes the XML tree to a file.
parameters contains a list of names and parameters in string form.
Definition at line 48 of file save_restore_utility.hpp.
Referenced by ~SaveRestoreUtility().
Generated automatically by Doxygen for MLPACK from the source code.