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. More... | |
bool | isNull () const |
Returns true if this object was returned by getNullType(). More... | |
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. More... | |
static const DataType & | getMonomialIdealType () |
Returns the one and only instance for monomial ideals. More... | |
static const DataType & | getPolynomialType () |
Returns the one and only instance for polynomials. More... | |
static const DataType & | getSatBinomIdealType () |
Returns the one and only instance for saturated binomial ideals. More... | |
static const DataType & | getMonomialIdealListType () |
Returns the one and only instance for monomial ideal lists. More... | |
static vector< const DataType * > | getTypes () |
Returns a vector of all types except null. More... | |
Private Member Functions | |
DataType (const DataType &) | |
Private to avoid copies. More... | |
void | operator= (const DataType &) |
Private to avoid copies. More... | |
DataType (const char *name) | |
Private to ensure only one instance of each kind. More... | |
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 |
Private to avoid copies.
|
private |
Private to ensure only one instance of each kind.
Definition at line 20 of file DataType.cpp.
|
static |
Returns the one and only instance for monomial ideal lists.
Definition at line 54 of file DataType.cpp.
|
static |
Returns the one and only instance for monomial ideals.
Definition at line 45 of file DataType.cpp.
const char * DataType::getName | ( | ) | const |
Returns the name of the structure.
Definition at line 24 of file DataType.cpp.
|
static |
Returns the one and only instance for null.
Definition at line 40 of file DataType.cpp.
|
static |
Returns the one and only instance for polynomials.
Definition at line 50 of file DataType.cpp.
|
static |
Returns the one and only instance for saturated binomial ideals.
Definition at line 59 of file DataType.cpp.
|
static |
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.
bool DataType::operator!= | ( | const DataType & | type | ) | const |
Definition at line 36 of file DataType.cpp.
|
private |
Private to avoid copies.
bool DataType::operator== | ( | const DataType & | type | ) | const |
Definition at line 32 of file DataType.cpp.
|
private |
Definition at line 68 of file DataType.h.