Frobby 0.9.5
|
The intention of this class is to describe the different kinds of mathematical structures that Frobby supports, such as a monomial ideal or a polynomial. More...
#include <DataType.h>
Public Member Functions | |
const char * | getName () const |
Returns the name of the structure. | |
bool | isNull () const |
Returns true if this object was returned by getNullType(). | |
bool | operator== (const DataType &type) const |
bool | operator!= (const DataType &type) const |
Static Public Member Functions | |
static const DataType & | getNullType () |
Returns the one and only instance for null. | |
static const DataType & | getMonomialIdealType () |
Returns the one and only instance for monomial ideals. | |
static const DataType & | getPolynomialType () |
Returns the one and only instance for polynomials. | |
static const DataType & | getSatBinomIdealType () |
Returns the one and only instance for saturated binomial ideals. | |
static const DataType & | getMonomialIdealListType () |
Returns the one and only instance for monomial ideal lists. | |
static vector< const DataType * > | getTypes () |
Returns a vector of all types except null. | |
Private Member Functions | |
DataType (const DataType &) | |
Private to avoid copies. | |
void | operator= (const DataType &) |
Private to avoid copies. | |
DataType (const char *name) | |
Private to ensure only one instance of each kind. | |
Private Attributes | |
const char * | _name |
The intention of this class is to describe the different kinds of mathematical structures that Frobby supports, such as a monomial ideal or a polynomial.
This is useful for the IO subsystem.
There is only one instance of each kind, so pointer equality is the same as equality.
Definition at line 29 of file DataType.h.
Private to ensure only one instance of each kind.
Definition at line 20 of file DataType.cpp.
Returns the one and only instance for monomial ideal lists.
Definition at line 54 of file DataType.cpp.
Returns the one and only instance for monomial ideals.
Definition at line 45 of file DataType.cpp.
Returns the name of the structure.
Definition at line 24 of file DataType.cpp.
Returns the one and only instance for null.
Definition at line 40 of file DataType.cpp.
Returns the one and only instance for polynomials.
Definition at line 50 of file DataType.cpp.
Returns the one and only instance for saturated binomial ideals.
Definition at line 59 of file DataType.cpp.
Returns a vector of all types except null.
Definition at line 64 of file DataType.cpp.
bool DataType::isNull | ( | ) | const |
Returns true if this object was returned by getNullType().
Definition at line 28 of file DataType.cpp.
Definition at line 36 of file DataType.cpp.
Definition at line 32 of file DataType.cpp.
Definition at line 68 of file DataType.h.