| 
    PLearn 0.1 
   | 
 
#include <TmpFilenames.h>


Public Member Functions | |
| TmpFilenames (int nfiles=0, const string directory="/tmp/", const string prefix="") | |
| TmpFilenames (const TmpFilenames &other) | |
| void | operator= (const TmpFilenames &other) | 
| string | addFilename (const string directory="/tmp/", const string prefix="") | 
| Creates a new file and appends its name to the TmpFilenames.   | |
| char * | newFile (const string directory="/tmp/", const string prefix="") | 
| DEPRECATED : please use above method instead (addFilename)   | |
Definition at line 60 of file TmpFilenames.h.
| PLearn::TmpFilenames::TmpFilenames | ( | int | nfiles = 0,  | 
        
| const string | directory = "/tmp/",  | 
        ||
| const string | prefix = ""  | 
        ||
| ) | 
Definition at line 51 of file TmpFilenames.cc.
{
    for(int k=0; k<nfiles; k++)
        addFilename(directory, prefix);
}
| PLearn::TmpFilenames::TmpFilenames | ( | const TmpFilenames & | other | ) | 
Definition at line 57 of file TmpFilenames.cc.
{ operator=(other); }
| string PLearn::TmpFilenames::addFilename | ( | const string | directory = "/tmp/",  | 
        
| const string | prefix = ""  | 
        ||
| ) | 
Creates a new file and appends its name to the TmpFilenames.
Definition at line 69 of file TmpFilenames.cc.
References PLearn::newFilename().
Referenced by PLearn::displayVarGraph(), PLearn::fullyRebalance2Classes(), PLearn::matlabR11eigs(), PLearn::OldDisplayVarGraph(), PLearn::Learner::test(), and PLearn::EmbeddedSequentialLearner::train().
{
    string newfilename = newFilename(directory,prefix);
    append(newfilename);
    return newfilename;
}


| char * PLearn::TmpFilenames::newFile | ( | const string | directory = "/tmp/",  | 
        
| const string | prefix = ""  | 
        ||
| ) | 
DEPRECATED : please use above method instead (addFilename)
Definition at line 76 of file TmpFilenames.cc.
References PLERROR.
{
    PLERROR("TmpFilenames::newFile : DEPRECATED method.  Use addFilename instead.");
    char* dummy = 0; return dummy;  // for return compatibility
}
| void PLearn::TmpFilenames::operator= | ( | const TmpFilenames & | other | ) | 
Definition at line 60 of file TmpFilenames.cc.
References PLearn::TVec< T >::size().
{
    resize(other.size());
    for(int k=0; k<size(); k++)
    {
        operator[](k) = other[k];
    }
}

 1.7.4