PLearn 0.1
Classes | Namespaces | Defines | Typedefs | Functions
general.h File Reference
#include <unistd.h>
#include <iomanip>
#include <map>
#include <plearn/math/pl_math.h>
#include <plearn/io/pl_io_deprecated.h>
#include "ProgressBar.h"
Include dependency graph for general.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PLearn::PLearnInit

Namespaces

namespace  std
 

STL namespace.


namespace  PLearn
 

< for swap


Defines

#define DATAFILE_HEADERLENGTH   64
 Size of header (in bytes) for native PLearn data files (.pmat and .pvec)

Typedefs

typedef int(* PLearn::compare_function )(const void *, const void *)

Functions

float * std::copy (float *first, float *last, float *dest)
 efficient specialisations of std::copy for built-in types
double * std::copy (double *first, double *last, double *dest)
boolstd::copy (bool *first, bool *last, bool *dest)
char * std::copy (char *first, char *last, char *dest)
unsigned char * std::copy (unsigned char *first, unsigned char *last, unsigned char *dest)
short * std::copy (short *first, short *last, short *dest)
unsigned short * std::copy (unsigned short *first, unsigned short *last, unsigned short *dest)
intstd::copy (int *first, int *last, int *dest)
unsigned intstd::copy (unsigned int *first, unsigned int *last, unsigned int *dest)
long * std::copy (long *first, long *last, long *dest)
unsigned long * std::copy (unsigned long *first, unsigned long *last, unsigned long *dest)
template<class In , class Out >
Out PLearn::copy_cast (In first, In last, Out res)
 Like std::copy, but with an explicit cast to the destination type.
template<class T >
void PLearn::clear_1 (T &x)
 clearing an element (that's called by clear_n...) Default implementation for clearing any type
void PLearn::clear_1 (char &x)
void PLearn::clear_1 (unsigned char &x)
void PLearn::clear_1 (signed char &x)
void PLearn::clear_1 (short &x)
void PLearn::clear_1 (unsigned short &x)
void PLearn::clear_1 (int &x)
void PLearn::clear_1 (unsigned int &x)
void PLearn::clear_1 (long &x)
void PLearn::clear_1 (unsigned long &x)
void PLearn::clear_1 (float &x)
void PLearn::clear_1 (double &x)
void PLearn::clear_1 (bool &x)
template<class For >
void PLearn::clear_n (For begin, int n)
 clears n elements starting at iterator position begin
void PLearn::clear_n (float *begin, int n)
 efficient specialisation for built-in types
void PLearn::clear_n (double *begin, int n)
void PLearn::clear_n (bool *begin, int n)
void PLearn::clear_n (char *begin, int n)
void PLearn::clear_n (unsigned char *begin, int n)
void PLearn::clear_n (short *begin, int n)
void PLearn::clear_n (unsigned short *begin, int n)
void PLearn::clear_n (int *begin, int n)
void PLearn::clear_n (unsigned int *begin, int n)
void PLearn::clear_n (long *begin, int n)
void PLearn::clear_n (unsigned long *begin, int n)
template<class T >
void PLearn::pl_swap (T &a, T &b)
 Swap two variables.
char * PLearn::strcopy (char *s)
 make a copy of a C string and return it
void PLearn::pretty_print_number (char *buffer, real number)
 print a number without unnecessary trailing zero's, into buffer
bool PLearn::isMapKeysAreInt (map< real, int > &m)
 check that all keys of the map are int values
string PLearn::hostname ()
string PLearn::prgname (const string &setname)
int PLearn::sizeInBytes (int x)
int PLearn::sizeInBytes (float x)
int PLearn::sizeInBytes (double x)
int PLearn::sizeInBytes (long x)
int PLearn::sizeInBytes (char x)
int PLearn::sizeInBytes (string x)
template<class T >
int PLearn::sizeInBytes (T *x)
template<class T1 , class T2 >
int PLearn::sizeInBytes (pair< T1, T2 > x)

Detailed Description

Definition in file general.h.


Define Documentation

#define DATAFILE_HEADERLENGTH   64
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines