|
PLearn 0.1
|
#include <AutoSDBVMatrix.h>

Public Member Functions | |
| NumToStringMapping () | |
| NumToStringMapping (string filename_, const string &dft_val_="") | |
| void | read (istream &in) const |
| void | load (string filename_="") |
| void | load () const |
| const string & | operator[] (real x) const |
Public Attributes | |
| string | filename |
| string | dft_val |
| hash_map< real, string > | mapping |
| bool | loaded |
Definition at line 99 of file AutoSDBVMatrix.h.
| PLearn::NumToStringMapping::NumToStringMapping | ( | ) | [inline] |
Definition at line 108 of file AutoSDBVMatrix.h.
:loaded(false) {}
| PLearn::NumToStringMapping::NumToStringMapping | ( | string | filename_, |
| const string & | dft_val_ = "" |
||
| ) | [inline] |
| void PLearn::NumToStringMapping::load | ( | string | filename_ = "" | ) | [inline] |
Definition at line 129 of file AutoSDBVMatrix.h.
References PLearn::read().

| void PLearn::NumToStringMapping::load | ( | ) | const [inline] |
Definition at line 137 of file AutoSDBVMatrix.h.
References PLearn::read().

| const string& PLearn::NumToStringMapping::operator[] | ( | real | x | ) | const [inline] |
| void PLearn::NumToStringMapping::read | ( | istream & | in | ) | const [inline] |
Definition at line 116 of file AutoSDBVMatrix.h.
References PLearn::read().
{
while(in)
{
string s;
PLearn::read(in, s);
real val;
PLearn::read(in, val);
if(in) mapping[val]= s;
}
loaded= true;
}

Definition at line 104 of file AutoSDBVMatrix.h.
Definition at line 103 of file AutoSDBVMatrix.h.
bool PLearn::NumToStringMapping::loaded [mutable] |
Definition at line 106 of file AutoSDBVMatrix.h.
hash_map<real, string> PLearn::NumToStringMapping::mapping [mutable] |
Definition at line 105 of file AutoSDBVMatrix.h.
1.7.4