PLearn 0.1
|
Go to the source code of this file.
Namespaces | |
namespace | PLearn |
< for swap | |
Functions | |
void | PLearn::writeHeader (ostream &out, const string &classname, int version=0) |
These functions are there to help you write and read object headers and footers for the persistance mechanism. | |
void | PLearn::writeFooter (ostream &out, const string &classname) |
writes "</ClassName>\n" | |
int | PLearn::readHeader (PStream &in, const string &classname) |
consumes "<ClassName:version>\n and returns version" | |
void | PLearn::readFooter (PStream &in, const string &classname) |
consumes "</ClassName>\n" | |
void | PLearn::writeFieldName (ostream &out, const string &fieldname) |
writes "fieldname: " | |
bool | PLearn::readFieldName (istream &in, const string &fieldname, bool force=false) |
consumes "fieldname: " if possible, and return true if it does however if force=true and fieldname is not found then call error. | |
void | PLearn::fwrite_int (FILE *f, const int *ptr, int n, bool is_file_bigendian=true) |
Writes binary data to the file in the specified representation (little or big endian) regardeless of the endianness used on the current architecture. | |
void | PLearn::fwrite_float (FILE *f, const float *ptr, int n, bool is_file_bigendian) |
void | PLearn::fwrite_float (FILE *f, const double *ptr, int n, bool is_file_bigendian=true) |
writes double array to float file | |
void | PLearn::fwrite_double (FILE *f, const double *ptr, int n, bool is_file_bigendian) |
void | PLearn::fwrite_double (FILE *f, const float *ptr, int n, bool is_file_bigendian=true) |
writes float array to double file | |
void | PLearn::fread_int (FILE *f, int *ptr, int n, bool is_file_bigendian=true) |
Reads binary data from a file assuming it is in the specified representation (either little or big endian) If necessary the representation is translated to the endianness on the current architecture. | |
void | PLearn::fread_float (FILE *f, float *ptr, int n, bool is_file_bigendian) |
void | PLearn::fread_float (FILE *f, double *ptr, int n, bool is_file_bigendian=true) |
reads disk floats into double array | |
void | PLearn::fread_double (FILE *f, double *ptr, int n, bool is_file_bigendian) |
void | PLearn::fread_double (FILE *f, float *ptr, int n, bool is_file_bigendian=true) |
reads disk doubles into float array | |
void | PLearn::fread_short (FILE *f, unsigned short *ptr, int n, bool is_file_bigendian) |
void | PLearn::write_int (ostream &out, const int *ptr, int n, bool is_file_bigendian) |
Writes binary data to the file in the specified representation (little or big endian) regardeless of the endianness used on the current architecture. | |
void | PLearn::write_short (ostream &out, const short *ptr, int n, bool is_file_bigendian) |
void | PLearn::write_double (ostream &out, const double *ptr, int n, bool is_file_bigendian) |
void | PLearn::write_float (ostream &out, const float *ptr, int n, bool is_file_bigendian) |
void | PLearn::read_int (istream &in, int *ptr, int n, bool is_file_bigendian) |
Reads binary data from a file assuming it is in the specified representation (either little or big endian) If necessary the representation is translated to the endianness on the current architecture. | |
void | PLearn::read_short (istream &in, short *ptr, int n, bool is_file_bigendian) |
void | PLearn::read_float (istream &in, float *ptr, int n, bool is_file_bigendian) |
void | PLearn::read_double (istream &in, double *ptr, int n, bool is_file_bigendian) |
Definition in file pl_io_deprecated.cc.