PLearn 0.1
Namespaces | Functions
diff.h File Reference
#include <plearn/base/OptionBase.h>
#include <plearn/base/tostring.h>
#include <plearn/io/openString.h>
#include <plearn/io/PStream.h>
#include <plearn/math/pl_math.h>
#include <plearn/math/TVec_decl.h>
#include <map>
#include <string>
Include dependency graph for diff.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

void PLearn::addDiffPrefix (PLearnDiff *diffs, const string &prefix, int n)
 Just call diffs->addDiffPrefix(prefix, n).
void PLearn::setSaveDiffs (PLearnDiff *diffs, bool save_diffs, bool *save_diffs_backup=0)
 Just call diffs->setSaveDiffs(save_diffs, save_diffs_backup).
int PLearn::diff (PLearnDiff *diffs, const string &refer, const string &other, const string &name)
 Just call diffs->diff(refer, other, name); This function is used so that it can be forward-declared.
real PLearn::get_absolute_tolerance (PLearnDiff *diffs)
 Return the absolute tolerance of a PLearnDiff.
real PLearn::get_relative_tolerance (PLearnDiff *diffs)
 Return the relative tolerance of a PLearnDiff.
int PLearn::diff (PP< Object > refer, PP< Object > other, PLearnDiff *diffs=0)
 Useful function to compare two objects.
template<class ObjectType , class OptionType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, OptionType > *opt, PLearnDiff *diffs)
 Default diff function: compare the two strings.
template<class ObjectType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, double > *opt, PLearnDiff *diffs)
 diff for double.
template<class ObjectType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, float > *opt, PLearnDiff *diffs)
 diff for float.
template<class ObjectType , class VecElementType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, TVec< VecElementType > > *opt, PLearnDiff *diffs)
 diff for TVec<>.
template<class ObjectType , class MatElementType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, TMat< MatElementType > > *opt, PLearnDiff *diffs)
 diff for TMat<>.
template<class ObjectType , class MapKeyType , class MapElementType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, map< MapKeyType, MapElementType > > *opt, PLearnDiff *diffs)
 diff for map.
template<class ObjectType , class PointedType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, PP< PointedType > > *opt, PLearnDiff *diffs)
 diff for PP<PointedType>.
template<class ObjectType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, VMat > *opt, PLearnDiff *diffs)
 diff for VMat.
template<class ObjectType >
int PLearn::diff (const string &refer, const string &other, const Option< ObjectType, Var > *opt, PLearnDiff *diffs)
 diff for Var.
void PLearn::addDiffPrefix (const string &prefix, PLearnDiff *diffs, int n)
 Add 'prefix' in front of the last 'n' difference names in 'diffs'.

Detailed Description

Definition in file diff.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines