#include <basic_alltype.h>
Public Member Functions | |
basic_alltype () | |
basic_alltype (bool __x) | |
basic_alltype (int __x) | |
basic_alltype (unsigned int __x) | |
basic_alltype (double __x) | |
basic_alltype (interval __x) | |
basic_alltype (const char *__cp) | |
basic_alltype (const std::string &__x) | |
basic_alltype (const std::vector< bool > &__x) | |
basic_alltype (const std::vector< int > &__x) | |
basic_alltype (const std::vector< unsigned int > &__x) | |
basic_alltype (const std::vector< double > &__x) | |
basic_alltype (const std::vector< interval > &__x) | |
basic_alltype (const std::vector< std::string > &__x) | |
basic_alltype (const linalg::matrix< double > &__x) | |
basic_alltype (const linalg::matrix< int > &__x) | |
basic_alltype (const linalg::matrix< interval > &__x) | |
basic_alltype (const linalg::matrix< std::string > &__x) | |
~basic_alltype () | |
basic_alltype (const basic_alltype &__a) | |
basic_alltype & | operator= (bool __x) |
basic_alltype & | operator= (int __x) |
basic_alltype & | operator= (unsigned int __x) |
basic_alltype & | operator= (double __x) |
basic_alltype & | operator= (interval __x) |
basic_alltype & | operator= (const std::string &__x) |
basic_alltype & | operator= (const char *__x) |
basic_alltype & | operator= (const std::vector< bool > &__x) |
basic_alltype & | operator= (const std::vector< int > &__x) |
basic_alltype & | operator= (const std::vector< unsigned int > &__x) |
basic_alltype & | operator= (const std::vector< double > &__x) |
basic_alltype & | operator= (const std::vector< interval > &__x) |
basic_alltype & | operator= (const std::vector< std::string > &__x) |
basic_alltype & | operator= (const linalg::matrix< double > &__x) |
basic_alltype & | operator= (const linalg::matrix< int > &__x) |
basic_alltype & | operator= (const linalg::matrix< interval > &__x) |
basic_alltype & | operator= (const linalg::matrix< std::string > &__x) |
basic_alltype & | operator= (const basic_alltype &__a) |
basic_alltype & | clear () |
basic_alltype & | set_m (linalg::matrix< double > *__m) |
basic_alltype & | set_nm (linalg::matrix< int > *__m) |
basic_alltype & | set_im (linalg::matrix< interval > *__m) |
basic_alltype & | set_sm (linalg::matrix< std::string > *__m) |
bool | nb () const BASIC_ALLTYPE_THROW |
int | nn () const BASIC_ALLTYPE_THROW |
unsigned int | nu () const BASIC_ALLTYPE_THROW |
double | nd () const BASIC_ALLTYPE_THROW |
interval | ni () const BASIC_ALLTYPE_THROW |
std::string & | s () const BASIC_ALLTYPE_THROW |
std::vector< bool > & | b () const BASIC_ALLTYPE_THROW |
std::vector< int > & | n () const BASIC_ALLTYPE_THROW |
std::vector< unsigned int > & | u () const BASIC_ALLTYPE_THROW |
std::vector< double > & | d () const BASIC_ALLTYPE_THROW |
std::vector< interval > & | i () const BASIC_ALLTYPE_THROW |
std::vector< std::string > & | sv () const BASIC_ALLTYPE_THROW |
linalg::matrix< double > & | m () const BASIC_ALLTYPE_THROW |
linalg::matrix< int > & | nm () const BASIC_ALLTYPE_THROW |
linalg::matrix< interval > & | im () const BASIC_ALLTYPE_THROW |
linalg::matrix< std::string > & | sm () const BASIC_ALLTYPE_THROW |
bool | is_allocated () const |
bool | is_scalar () const |
bool | is_vector () const |
bool | is_empty_vector () const |
bool | is_matrix () const |
bool | empty () const |
int | contents_type () const |
std::string | type_name () const |
const char * | type_cstr () const |
bool | operator== (const basic_alltype &b) const |
bool | operator!= (const basic_alltype &b) const |
Definition at line 133 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | ) | [inline] |
Standard Constructor yielding an empty basic_alltype
Definition at line 274 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | bool | __x | ) | [inline] |
Constructor storing the bool __x
Definition at line 276 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | int | __x | ) | [inline] |
Constructor storing the int __x
Definition at line 279 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | unsigned int | __x | ) | [inline] |
Constructor storing the unsigned int __x
Definition at line 282 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | double | __x | ) | [inline] |
Constructor storing the double __x
Definition at line 285 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | interval | __x | ) | [inline] |
Constructor storing the interval __x
Definition at line 288 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const char * | __cp | ) | [inline] |
Constructor storing the string __cp
Definition at line 291 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::string & | __x | ) | [inline] |
Constructor storing the string __x
Definition at line 294 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::vector< bool > & | __x | ) | [inline] |
Constructor storing the vector<bool> __x
Definition at line 297 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::vector< int > & | __x | ) | [inline] |
Constructor storing the vector<int> __x
Definition at line 300 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::vector< unsigned int > & | __x | ) | [inline] |
Constructor storing the vector<unsigned int> __x
Definition at line 303 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::vector< double > & | __x | ) | [inline] |
Constructor storing the vector<double> __x
Definition at line 306 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::vector< interval > & | __x | ) | [inline] |
Constructor storing the vector<interval> __x
Definition at line 310 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const std::vector< std::string > & | __x | ) | [inline] |
Constructor storing the vector<string> __x
Definition at line 314 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const linalg::matrix< double > & | __x | ) | [inline] |
Constructor storing the matrix<double> __x
Definition at line 318 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const linalg::matrix< int > & | __x | ) | [inline] |
Constructor storing the matrix<int> __x
Definition at line 322 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const linalg::matrix< interval > & | __x | ) | [inline] |
Constructor storing the matrix<interval> __x
Definition at line 326 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const linalg::matrix< std::string > & | __x | ) | [inline] |
Constructor storing the matrix<string> __x
Definition at line 330 of file basic_alltype.h.
coco::basic_alltype::~basic_alltype | ( | ) | [inline] |
Standard Destructor
Definition at line 335 of file basic_alltype.h.
coco::basic_alltype::basic_alltype | ( | const basic_alltype & | __a | ) | [inline] |
Standard Copy Constructor
Definition at line 339 of file basic_alltype.h.
std::vector<bool>& coco::basic_alltype::b | ( | ) | const [inline] |
retrieve a vector<bool> from the basic_alltype
Definition at line 549 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::clear | ( | ) | [inline] |
Reset the basic_alltype to an empty value
Definition at line 465 of file basic_alltype.h.
int coco::basic_alltype::contents_type | ( | ) | const [inline] |
Return the type of the value contained in the storage, an int which can be compared with the ALLTYPE_
... values.
Definition at line 649 of file basic_alltype.h.
std::vector<double>& coco::basic_alltype::d | ( | ) | const [inline] |
retrieve a vector<double> from the basic_alltype
Definition at line 597 of file basic_alltype.h.
bool coco::basic_alltype::empty | ( | ) | const [inline] |
Check, whether the basic_alltype is empty.
Definition at line 646 of file basic_alltype.h.
std::vector<interval>& coco::basic_alltype::i | ( | ) | const [inline] |
retrieve a vector<interval> from the basic_alltype
Definition at line 601 of file basic_alltype.h.
linalg::matrix<interval>& coco::basic_alltype::im | ( | ) | const [inline] |
retrieve a matrix<interval> from the basic_alltype
Definition at line 615 of file basic_alltype.h.
bool coco::basic_alltype::is_allocated | ( | ) | const [inline] |
Check, whether the basic_alltype contains a complex type, i.e. one which has to be allocated (not bool, int, unsigned int, double, or interval).
Definition at line 624 of file basic_alltype.h.
bool coco::basic_alltype::is_empty_vector | ( | ) | const [inline] |
Check, whether the basic_alltype contains a size 0 vector type.
Definition at line 633 of file basic_alltype.h.
bool coco::basic_alltype::is_matrix | ( | ) | const [inline] |
Check, whether the basic_alltype contains a matrix type.
Definition at line 644 of file basic_alltype.h.
bool coco::basic_alltype::is_scalar | ( | ) | const [inline] |
Check, whether the basic_alltype contains a scalar type, i.e. neither a vector nor a matrix.
Definition at line 627 of file basic_alltype.h.
bool coco::basic_alltype::is_vector | ( | ) | const [inline] |
Check, whether the basic_alltype contains a vector type.
Definition at line 630 of file basic_alltype.h.
linalg::matrix<double>& coco::basic_alltype::m | ( | ) | const [inline] |
retrieve a matrix<double> from the basic_alltype
Definition at line 609 of file basic_alltype.h.
std::vector<int>& coco::basic_alltype::n | ( | ) | const [inline] |
retrieve a vector<int> from the basic_alltype
Definition at line 553 of file basic_alltype.h.
bool coco::basic_alltype::nb | ( | ) | const [inline] |
retrieve a bool from the basic_alltype
Definition at line 519 of file basic_alltype.h.
double coco::basic_alltype::nd | ( | ) | const [inline] |
retrieve a double from the basic_alltype
Definition at line 540 of file basic_alltype.h.
interval coco::basic_alltype::ni | ( | ) | const [inline] |
retrieve an interval from the basic_alltype
Definition at line 543 of file basic_alltype.h.
linalg::matrix<int>& coco::basic_alltype::nm | ( | ) | const [inline] |
retrieve a matrix<int> from the basic_alltype
Definition at line 612 of file basic_alltype.h.
int coco::basic_alltype::nn | ( | ) | const [inline] |
retrieve an int from the basic_alltype
Definition at line 522 of file basic_alltype.h.
unsigned int coco::basic_alltype::nu | ( | ) | const [inline] |
retrieve an unsigned int from the basic_alltype
Definition at line 531 of file basic_alltype.h.
bool coco::basic_alltype::operator!= | ( | const basic_alltype & | b | ) | const |
Standard comparison operator
Definition at line 173 of file basic_alltype.cc.
basic_alltype& coco::basic_alltype::operator= | ( | const basic_alltype & | __a | ) | [inline] |
Standard Assignment Operator
Definition at line 457 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const linalg::matrix< std::string > & | __x | ) | [inline] |
Assignment Operator, assigning the matrix<string> value __x
Definition at line 450 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const linalg::matrix< interval > & | __x | ) | [inline] |
Assignment Operator, assigning the matrix<interval> value __x
Definition at line 443 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const linalg::matrix< int > & | __x | ) | [inline] |
Assignment Operator, assigning the matrix<int> value __x
Definition at line 436 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const linalg::matrix< double > & | __x | ) | [inline] |
Assignment Operator, assigning the matrix<double> value __x
Definition at line 429 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::vector< std::string > & | __x | ) | [inline] |
Assignment Operator, assigning the vector<string> value __x
Definition at line 422 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::vector< interval > & | __x | ) | [inline] |
Assignment Operator, assigning the vector<interval> value __x
Definition at line 415 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::vector< double > & | __x | ) | [inline] |
Assignment Operator, assigning the vector<double> value __x
Definition at line 408 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::vector< unsigned int > & | __x | ) | [inline] |
Assignment Operator, assigning the vector<unsigned int> value __x
Definition at line 401 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::vector< int > & | __x | ) | [inline] |
Assignment Operator, assigning the vector<int> value __x
Definition at line 394 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::vector< bool > & | __x | ) | [inline] |
Assignment Operator, assigning the vector<bool> value __x
Definition at line 387 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const char * | __x | ) | [inline] |
Assignment Operator, assigning the string value __x
Definition at line 380 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | const std::string & | __x | ) | [inline] |
Assignment Operator, assigning the string value __x
Definition at line 373 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | interval | __x | ) | [inline] |
Assignment Operator, assigning the interval value __x
Definition at line 367 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | double | __x | ) | [inline] |
Assignment Operator, assigning the double value __x
Definition at line 361 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | unsigned int | __x | ) | [inline] |
Assignment Operator, assigning the unsigned int value __x
Definition at line 355 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | int | __x | ) | [inline] |
Assignment Operator, assigning the int value __x
Definition at line 349 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::operator= | ( | bool | __x | ) | [inline] |
Assignment Operator, assigning the bool value __x
Definition at line 343 of file basic_alltype.h.
bool coco::basic_alltype::operator== | ( | const basic_alltype & | b | ) | const |
Standard comparison operator
Definition at line 111 of file basic_alltype.cc.
std::string& coco::basic_alltype::s | ( | ) | const [inline] |
retrieve a string from the basic_alltype
Definition at line 546 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::set_im | ( | linalg::matrix< interval > * | __m | ) | [inline] |
This method assigns a matrix<double>* to the basic alltype. This method must not be used unless __m
was allocated by new matrix<interval>.
Definition at line 498 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::set_m | ( | linalg::matrix< double > * | __m | ) | [inline] |
This method assigns a matrix<double>* to the basic alltype. This method must not be used unless __m
was allocated by new matrix<double>.
Definition at line 476 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::set_nm | ( | linalg::matrix< int > * | __m | ) | [inline] |
This method assigns a matrix<double>* to the basic alltype. This method must not be used unless __m
was allocated by new matrix<int>.
Definition at line 487 of file basic_alltype.h.
basic_alltype& coco::basic_alltype::set_sm | ( | linalg::matrix< std::string > * | __m | ) | [inline] |
This method assigns a matrix<double>* to the basic alltype. This method must not be used unless __m
was allocated by new matrix<string>.
Definition at line 509 of file basic_alltype.h.
linalg::matrix<std::string>& coco::basic_alltype::sm | ( | ) | const [inline] |
retrieve a matrix<string> from the basic_alltype
Definition at line 618 of file basic_alltype.h.
std::vector<std::string>& coco::basic_alltype::sv | ( | ) | const [inline] |
retrieve a vector<string> from the basic_alltype
Definition at line 605 of file basic_alltype.h.
const char* coco::basic_alltype::type_cstr | ( | ) | const [inline] |
Return the type of the value contained in the storage as a C-string
Definition at line 654 of file basic_alltype.h.
std::string coco::basic_alltype::type_name | ( | ) | const [inline] |
Return the type of the value contained in the storage as a C++-string
Definition at line 651 of file basic_alltype.h.
std::vector<unsigned int>& coco::basic_alltype::u | ( | ) | const [inline] |
retrieve a vector<unsigned int> from the basic_alltype
Definition at line 575 of file basic_alltype.h.
std::vector<bool>* coco::basic_alltype::b |
Definition at line 147 of file basic_alltype.h.
std::vector<double>* coco::basic_alltype::d |
Definition at line 150 of file basic_alltype.h.
std::vector<interval>* coco::basic_alltype::i |
Definition at line 151 of file basic_alltype.h.
Definition at line 155 of file basic_alltype.h.
linalg::matrix<double>* coco::basic_alltype::m |
Definition at line 153 of file basic_alltype.h.
std::vector<int>* coco::basic_alltype::n |
Definition at line 148 of file basic_alltype.h.
Definition at line 141 of file basic_alltype.h.
double coco::basic_alltype::nd |
Definition at line 144 of file basic_alltype.h.
Definition at line 145 of file basic_alltype.h.
Definition at line 154 of file basic_alltype.h.
Definition at line 142 of file basic_alltype.h.
unsigned int coco::basic_alltype::nu |
Definition at line 143 of file basic_alltype.h.
std::string* coco::basic_alltype::s |
Definition at line 146 of file basic_alltype.h.
linalg::matrix<std::string>* coco::basic_alltype::sm |
Definition at line 156 of file basic_alltype.h.
std::vector<std::string>* coco::basic_alltype::sv |
Definition at line 152 of file basic_alltype.h.
std::vector<unsigned int>* coco::basic_alltype::u |
Definition at line 149 of file basic_alltype.h.