PLearn 0.1
Public Member Functions
PLearn::TmpFilenames Class Reference

#include <TmpFilenames.h>

Inheritance diagram for PLearn::TmpFilenames:
Inheritance graph
[legend]
Collaboration diagram for PLearn::TmpFilenames:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Definition at line 60 of file TmpFilenames.h.


Constructor & Destructor Documentation

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); }

Member Function Documentation

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;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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];
    }
}

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines