libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions
CRNObject.h File Reference
#include <CRN.h>
+ Include dependency graph for CRNObject.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  crn::Object
 
struct  crn::IsPOSet< T >
 
struct  crn::IsMetric< T >
 
struct  crn::IsMetric< Object >
 
struct  crn::IsMetric< UObject >
 
struct  crn::IsMetric< SObject >
 
struct  crn::IsMagma< T >
 
struct  crn::IsGroup< T >
 
struct  crn::IsRing< T >
 
struct  crn::IsVectorOverR< T >
 
struct  crn::IsAlgebra< T >
 
struct  crn::IsField< T >
 
struct  crn::IsSerializable< T >
 
struct  crn::IsSerializable< Object >
 
struct  crn::IsClonable< T >
 
struct  crn::IsClonable< Object >
 
struct  crn::IsSavable< T >
 

Namespaces

 crn
 
 crn::xml
 

Macros

#define CRN_SERIALIZATION_CONSTRUCTOR(classname)   public: classname(crn::xml::Element &el) { Deserialize(el); }
 Defines a default constructor from xml element. More...
 
#define CRN_DECLARE_CLASS_CONSTRUCTOR(classname)
 Declares a class constructor. More...
 
#define CRN_BEGIN_CLASS_CONSTRUCTOR(classname)
 Defines a class constructor. More...
 
#define CRN_END_CLASS_CONSTRUCTOR(classname)
 Defines a class constructor. More...
 

Functions

UObject crn::Clone (const Object &obj)
 Clones an object if possible. More...
 
UObject crn::Clone (const UCObject &obj)
 
UObject crn::Clone (const SCObject &obj)
 
std::unique_ptr< Intcrn::Clone (int i)
 
std::unique_ptr< Realcrn::Clone (double d)
 
std::unique_ptr< Prop3crn::Clone (bool b)
 
template<typename T , typename U >
std::unique_ptr< T > crn::CloneAs (const U &obj)
 
void crn::Deserialize (Object &obj, xml::Element &el)
 Reads an object from XML if possible. More...
 
void crn::Deserialize (const UObject &obj, xml::Element &el)
 
void crn::Deserialize (const SObject &obj, xml::Element &el)
 
xml::Element crn::Serialize (const Object &obj, xml::Element &parent)
 Writes an object to XML if possible. More...
 
xml::Element crn::Serialize (const UCObject &obj, xml::Element &parent)
 
xml::Element crn::Serialize (const SCObject &obj, xml::Element &parent)
 
double crn::Distance (const Object &o1, const Object &o2)
 Distance between two objects. More...
 
double crn::Distance (const UCObject &o1, const UCObject &o2)
 Distance between two objects. More...
 
double crn::Distance (const SCObject &o1, const SCObject &o2)
 Distance between two objects. More...