libcrn
3.9.5
A document image processing library
|
Modules | |
Exceptions | |
Strings | |
Namespaces | |
crn | |
crn::traits | |
Classes | |
class | crn::Savable |
complex base abstract class More... | |
struct | crn::TypeInfo< T > |
A class containing informations on a type. More... | |
class | crn::ScalarRange< S > |
A class that represents scalar values in [[b, e[[. More... | |
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... | |
Typedefs | |
template<typename T > | |
using | crn::SumType = typename TypeInfo< T >::SumType |
template<typename T > | |
using | crn::DiffType = typename TypeInfo< T >::DiffType |
template<typename T > | |
using | crn::DecimalType = typename TypeInfo< T >::DecimalType |
Functions | |
template<typename P , typename std::enable_if< traits::IsDereferenceable< P >::value, int >::type = 0> | |
std::pointer_traits< P > ::element_type & | crn::Dereference (const P &p) |
template<typename P , typename std::enable_if<!traits::IsDereferenceable< P >::value, int >::type = 0> | |
P & | crn::Dereference (P &p) |
template<typename T , typename std::enable_if< std::is_constructible< T, int >::value, int >::type = 0> | |
T | crn::Zero (const T &) |
Returns an object of the same type that represents 0. More... | |
template<class T > | |
auto | crn::Size (const T &cont) noexcept(noexcept(cont.size())) -> decltype(cont.size()) |
Returns the size of a container. More... | |
template<typename T > | |
ScalarRange< T > | crn::Range (T b, T e) |
Creates a range [[b, e[[. More... | |
template<typename T > | |
auto | crn::Range (const T &cont) -> ScalarRange< decltype(Size(cont))> |
Creates a range [[0, cont.size()[[. More... | |
template<typename T > | |
ScalarRange< int64_t > | crn::ReverseRange (const T &cont) |
Creates a range ]]cont.size(), 0]]. More... | |
#define CRN_BEGIN_CLASS_CONSTRUCTOR | ( | classname | ) |
Defines a class constructor.
Defines a class constructor. Add this to a class definition file.
[in] | classname | the name of the current class |
Definition at line 185 of file CRNObject.h.
#define CRN_DECLARE_CLASS_CONSTRUCTOR | ( | classname | ) |
Declares a class constructor.
Declares a class constructor. Add this to a class declaration.
[in] | classname | the name of the current class |
Definition at line 173 of file CRNObject.h.
#define CRN_END_CLASS_CONSTRUCTOR | ( | classname | ) |
Defines a class constructor.
Defines a class constructor. Add this to a class definition file.
[in] | classname | the name of the current class |
Definition at line 198 of file CRNObject.h.
#define CRN_SERIALIZATION_CONSTRUCTOR | ( | classname | ) | public: classname(crn::xml::Element &el) { Deserialize(el); } |
Defines a default constructor from xml element.
[in] | classname | the class in which the constructor is added |
Definition at line 165 of file CRNObject.h.
using crn::DecimalType = typedef typename TypeInfo<T>::DecimalType |
using crn::DiffType = typedef typename TypeInfo<T>::DiffType |
using crn::SumType = typedef typename TypeInfo<T>::SumType |
std::pointer_traits<P>::element_type& crn::Dereference | ( | const P & | p | ) |
P& crn::Dereference | ( | P & | p | ) |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |