basic_alltype.h File Reference

#include <string>
#include <vector>
#include <climits>
#include <coconut_config.h>
#include <interval.h>
#include <linalg.h>
#include <api_exception.h>

Include dependency graph for basic_alltype.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class  coco::basic_alltype
 The basic alltype which can hold any of a number of basic types. More...

Namespaces

namespace  coco
 the main namespace of the COCONUT API

Defines

#define BASIC_ALLTYPE_CHECK   1
#define ALLTYPE_INTERVAL   -5
#define ALLTYPE_DOUBLE   -4
#define ALLTYPE_UINT   -3
#define ALLTYPE_INT   -2
#define ALLTYPE_BOOL   -1
#define ALLTYPE_EMPTY   0
#define ALLTYPE_ALLOCED_B   1
#define ALLTYPE_ALLOCED_N   2
#define ALLTYPE_ALLOCED_U   3
#define ALLTYPE_ALLOCED_D   4
#define ALLTYPE_ALLOCED_I   5
#define ALLTYPE_ALLOCED_C   6
#define ALLTYPE_ALLOCED_S   7
#define ALLTYPE_ALLOCED_M   8
#define ALLTYPE_ALLOCED_NM   9
#define ALLTYPE_ALLOCED_IM   10
#define ALLTYPE_ALLOCED_SM   11
#define ALLTYPE_ANY   99
#define BASIC_ALLTYPE_NAMES
#define BASIC_ALLTYPE_ASSERT(A)
#define BASIC_ALLTYPE_ASSERT2(A, B)
#define BASIC_ALLTYPE_THROW   throw(api_exception)
#define BASIC_ALLTYPE_FIX_EMPTY_VECTOR(CT, T)

Functions

const basic_alltype & coco::basic_alltype_empty ()
std::ostream & coco::operator<< (std::ostream &os, const basic_alltype &b)


Detailed Description

Definition in file basic_alltype.h.


Define Documentation

#define ALLTYPE_ALLOCED_B   1

a vector<bool> is stored

Definition at line 59 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_C   6

a vector<string> is stored

Definition at line 64 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_D   4

a vector<double> is stored

Definition at line 62 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_I   5

a vector<interval> is stored

Definition at line 63 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_IM   10

a matrix<interval> is stored

Definition at line 70 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_M   8

a matrix<double> is stored

Definition at line 68 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_N   2

a vector<int> is stored

Definition at line 60 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_NM   9

a matrix<int> is stored

Definition at line 69 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_S   7

a string is stored

Definition at line 66 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_SM   11

a matrix<string> is stored

Definition at line 71 of file basic_alltype.h.

#define ALLTYPE_ALLOCED_U   3

a vector<unsigned int> is stored

Definition at line 61 of file basic_alltype.h.

#define ALLTYPE_ANY   99

an unspecified type is stored

Definition at line 73 of file basic_alltype.h.

#define ALLTYPE_BOOL   -1

a bool is stored

Definition at line 55 of file basic_alltype.h.

#define ALLTYPE_DOUBLE   -4

a double is stored

Definition at line 52 of file basic_alltype.h.

#define ALLTYPE_EMPTY   0

the basic_alltype is empty

Definition at line 57 of file basic_alltype.h.

#define ALLTYPE_INT   -2

an int is stored

Definition at line 54 of file basic_alltype.h.

#define ALLTYPE_INTERVAL   -5

an interval is stored

Definition at line 51 of file basic_alltype.h.

#define ALLTYPE_UINT   -3

an unsigned int is stored

Definition at line 53 of file basic_alltype.h.

#define BASIC_ALLTYPE_NAMES

Value:

{ \
      "interval", "double", "unsigned int", "int", "bool", "empty", \
      "bool vector", "int vector", "unsigned int vector", "double vector", \
      "interval vector", "string vector", "string", "double matrix", \
      "int matrix", "interval matrix", "string matrix" }

Definition at line 75 of file basic_alltype.h.

#define BASIC_ALLTYPE_THROW   throw(api_exception)

Definition at line 105 of file basic_alltype.h.


Generated on Tue Feb 9 14:46:11 2010 for COCONUT API by  doxygen 1.5.8