Arageli::factory< T > Struct Template Reference

Common implementation of factory for the specific type. More...

#include <factory.hpp>

List of all members.

Static Public Member Functions

static const T & unit ()
 единичный элемент
static const T & unit (const T &x)
 единичный элемент
static const T & opposite_unit ()
 противоположный к единичному элементу (-1)
static const T & opposite_unit (const T &x)
 противоположный к единичному элементу (-1)
static const T & null ()
 нулевой элемент
static const T & null (const T &x)
 нулевой элемент

Static Public Attributes

static const bool is_specialized = true


Detailed Description

template<typename T>
struct Arageli::factory< T >

Common implementation of factory for the specific type.

This default implementaion uses literals 1, 0 and -1 to construct unit, null and opposite_unit respectively.

Definition at line 40 of file factory.hpp.


Member Function Documentation

template<typename T>
static const T& Arageli::factory< T >::null ( const T &  x  )  [inline, static]

нулевой элемент

Definition at line 74 of file factory.hpp.

template<typename T>
static const T& Arageli::factory< T >::null (  )  [inline, static]

нулевой элемент

Definition at line 67 of file factory.hpp.

template<typename T>
static const T& Arageli::factory< T >::opposite_unit ( const T &  x  )  [inline, static]

противоположный к единичному элементу (-1)

Definition at line 63 of file factory.hpp.

template<typename T>
static const T& Arageli::factory< T >::opposite_unit (  )  [inline, static]

противоположный к единичному элементу (-1)

Definition at line 56 of file factory.hpp.

template<typename T>
static const T& Arageli::factory< T >::unit ( const T &  x  )  [inline, static]

единичный элемент

Definition at line 52 of file factory.hpp.

template<typename T>
static const T& Arageli::factory< T >::unit (  )  [inline, static]

единичный элемент

Definition at line 45 of file factory.hpp.


Member Data Documentation

template<typename T>
const bool Arageli::factory< T >::is_specialized = true [static]

Definition at line 42 of file factory.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 31 17:38:23 2006 for Arageli by  doxygen 1.4.7