|
Structural deformable models
|
#include <iostream>#include <sstream>#include <string>#include <ctype.h>#include <assert.h>#include <sys/time.h>#include "common.h"

Go to the source code of this file.
Macros | |
| #define | MAKE_STRING(msg) ( ((std::ostringstream&)(std::ostringstream() << msg)).str() ) |
| #define | MAKE_CSTRING(msg) ( ((std::ostringstream&)(std::ostringstream() << msg)).str().c_str() ) |
| #define | COMMENT_CHAR '#' |
Functions | |
| std::istream & | comment (std::istream &s) |
| unsigned long | getMilliSeconds () |
| template<class T > | |
| std::string | toString (T v) |
| template<class T > | |
| T & | fromString (const std::string &str, T &v) |
| std::string & | replaceAll (std::string &txt, char src, char tar) |
| int | matlabCall (const std::string &cmd) |
| const char * | getTemp () |
| const std::string & | __set_fnmatchpattern (const std::string &pattern) |
| int | __fixed_fnmatch (const struct dirent *dent) |
| template<class T > | |
| int | findFiles (const std::string &fmask, T iter) |
| #define MAKE_CSTRING | ( | msg | ) | ( ((std::ostringstream&)(std::ostringstream() << msg)).str().c_str() ) |
| #define MAKE_STRING | ( | msg | ) | ( ((std::ostringstream&)(std::ostringstream() << msg)).str() ) |
| int __fixed_fnmatch | ( | const struct dirent * | dent | ) |
Definition at line 12 of file ffind.cpp.
References __fnmatchpattern.
Referenced by __set_fnmatchpattern(), FFind::find(), FFind::findFiles(), and fromString().
| const std::string& __set_fnmatchpattern | ( | const std::string & | pattern | ) |
Definition at line 15 of file utils.cpp.
References __fixed_fnmatch(), and __fnmatchpattern.
Referenced by FFind::find(), and fromString().
|
inline |
| int findFiles | ( | const std::string & | fmask, |
| T | iter | ||
| ) |
Definition at line 88 of file utils.h.
Referenced by fromString().
| T& fromString | ( | const std::string & | str, |
| T & | v | ||
| ) |
Definition at line 67 of file utils.h.
References __fixed_fnmatch(), __set_fnmatchpattern(), findFiles(), getTemp(), matlabCall(), and replaceAll().
Referenced by Brain::doCommand(), MStructure::getRefModelIDs(), MStructure::loadRefProp(), SubStructure::read(), MStructure::read(), and SearcherParams::read().
|
inline |
| const char* getTemp | ( | ) |
Definition at line 25 of file utils.cpp.
Referenced by fromString().
| int matlabCall | ( | const std::string & | cmd | ) |
| std::string& replaceAll | ( | std::string & | txt, |
| char | src, | ||
| char | tar | ||
| ) |
Definition at line 32 of file utils.cpp.
Referenced by fromString().
| std::string toString | ( | T | v | ) |
Definition at line 60 of file utils.h.
Referenced by MStructure::buildAllStats(), Brain::doCommand(), MStructure::getRefModel(), MStructure::setRefModel(), MStructure::showStats(), and Brain::triggerTest().
1.8.11