AlgebraicTraitsBase Class Reference

#include <AlgebraicTraits.h>

Inheritance diagram for AlgebraicTraitsBase:

Inheritance graph
[legend]
List of all members.

Public Types

enum  AlgebraicTypes
enum  

Static Public Member Functions

static const char * name ()

Public Attributes

enum AlgebraicTraitsBase:: { ... }  AlgebraicType

Detailed Description

Is the base class for the AlgebraicTraits class and contains typedefs for basic algebraic structure properties. Its sole purpose is to provide the type definition of the AlgebraicType enumerated constant and to provide a default implementation for the "getAlgebraicType" and "name" methods just in case the library user forgets to implement those for a specialization of the AlgebraicTraits templated class.

Definition at line 26 of file AlgebraicTraits.h.


Member Enumeration Documentation

enum AlgebraicTraitsBase::AlgebraicTypes

Constants that characterize basic algebraic structures. Values in this enum are ordered according to their generality

Definition at line 35 of file AlgebraicTraits.h.

anonymous enum

This constant from the AlgebricTraits<T> class should represent the type of the algebraic structure formed by the elements that have the type "T". (e.g. AlgebraicTraits<int>::type should return the value AlgebraicTraitsBase::integral_domain and AlgebraicTraits<double>::type should return the value AlgebraicTraitsBase::field)

Definition at line 52 of file AlgebraicTraits.h.


Member Function Documentation

static const char* AlgebraicTraitsBase::name (  )  [inline, static]

This method from the AlgebricTraits<T> class should return a symbolic name for the type "T" (e.g. AlgebraicTraits<Polynomial>::name() could return the string "Polynomial" ). This method is used when we want to serialize an object to an XML file and we need to know the name of the type it represents.

Reimplemented in AlgebraicTraits< T >, AlgebraicTraits< Complex< T, AlgebraicTraits< T > > >, AlgebraicTraits< LongInt< BITS, MAY_OVERFLOW > >, AlgebraicTraits< Rational< IntType > >, AlgebraicTraits< Polynomial< ScalarType, AlgebraicTraits< ScalarType > > >, AlgebraicTraits< RationalFunction< ScalarType, AlgebraicTraits< ScalarType > > >, and AlgebraicTraits< int >.

Definition at line 60 of file AlgebraicTraits.h.


Member Data Documentation

enum { ... } AlgebraicTraitsBase::AlgebraicType

This constant from the AlgebricTraits<T> class should represent the type of the algebraic structure formed by the elements that have the type "T". (e.g. AlgebraicTraits<int>::type should return the value AlgebraicTraitsBase::integral_domain and AlgebraicTraits<double>::type should return the value AlgebraicTraitsBase::field)

Reimplemented in AlgebraicTraits< T >.


The documentation for this class was generated from the following file:
Math-Objects Library Docs  Generated by: doxygen