10 #include <mix/units.h>
12 #include <mix/Types.h>
14 #include <mix/TextRepres.hpp>
28 AnyValue (AtomType at = INT_4,
unsigned count = 1,
29 CategoryId catid = UC_NONE);
32 AnyValue (
double val, CategoryId catid = UC_NONE);
33 AnyValue (
int val, CategoryId catid = UC_NONE);
34 #ifdef CompilerIs64bitReady
35 AnyValue (
long long val, CategoryId catid = UC_NONE);
54 void new_def (AtomType at,
unsigned count = 1,
55 CategoryId catid = UC_NONE);
80 void attach (
void* val_ptr);
112 char get_char (
unsigned i = 0)
const;
113 Char2 get_unicode (
unsigned i = 0)
const;
114 double get_float (
unsigned i = 0)
const;
115 int get_int (
unsigned i = 0)
const;
116 #ifdef CompilerIs64bitReady
117 long long get_int8 (
unsigned i = 0)
const;
118 long long get_key (
unsigned i = 0)
const{
124 operator char ()
const;
125 operator float ()
const;
126 operator double ()
const;
127 operator short ()
const;
128 operator int ()
const;
129 operator long ()
const;
130 #ifdef CompilerIs64bitReady
131 operator long long ()
const;
135 BlobRef get_blob_ref ()
const;
138 void get_int1 (
char* val)
const;
139 void get_int2 (
short* val)
const;
140 void get_int4 (
int* val)
const;
141 #ifdef CompilerIs64bitReady
142 void get_int8 (
long long* val)
const;
143 void get_key (
long long* val)
const{
147 void get_real4 (
float* val)
const;
148 void get_real8 (
double* val)
const;
149 void get_char (
char* val)
const;
150 void get_unicode (Char2* val)
const;
153 char* get_alloc_int1 ()
const;
154 short* get_alloc_int2 ()
const;
155 int* get_alloc_int4 ()
const;
156 #ifdef CompilerIs64bitReady
157 long long* get_alloc_int8 ()
const;
158 long long* get_alloc_key ()
const{
159 return get_alloc_int8();
162 float* get_alloc_real4 ()
const;
163 double* get_alloc_real8 ()
const;
164 char* get_alloc_char ()
const;
165 Char2* get_alloc_unicode ()
const;
174 void set_char (
char val,
unsigned i = 0);
175 void set_unicode (Char2 val,
unsigned i = 0);
176 void set_float (
double val,
unsigned i = 0);
177 void set_int (
int val,
unsigned i = 0);
178 #ifdef CompilerIs64bitReady
179 void set_int8 (
long long val,
unsigned i = 0);
180 void set_key (
long long val,
unsigned i = 0){
186 void set_blob_ref (BlobRef val);
189 void set_int1 (
const char* val);
190 void set_int2 (
const short* val);
191 void set_int4 (
const int* val);
192 #ifdef CompilerIs64bitReady
193 void set_int8 (
const long long* val);
194 void set_key (
const long long* val){
198 void set_real4 (
const float* val);
199 void set_real8 (
const double* val);
201 void set_char (
const char* val);
202 void set_unicode (
const Char2* val);
248 virtual char*
check_string (
const char* s,
int* pDim = NULL)
const;
279 const char* szPre = NULL,
280 const char* szPost = NULL)
const;
293 #ifdef CompilerIs64bitReady
406 AnyValue::operator char ()
const
412 AnyValue::operator double ()
const
418 AnyValue::operator float ()
const
424 AnyValue::operator long ()
const
430 AnyValue::operator int ()
const
436 AnyValue::operator short ()
const
441 #ifdef CompilerIs64bitReady
443 AnyValue::operator
long long ()
const
void changes()
Definition: AnyValue.hpp:349
bool is_empty_value() const
bool is_changed() const
Definition: AnyValue.hpp:341
unsigned get_dim() const
Definition: AnyValue.hpp:374
CategoryId get_categ() const
Definition: AnyValue.hpp:382
void definition(bool f)
Definition: AnyValue.hpp:391
bool operator!=(const AnyValue &av) const
virtual char * check_string(const char *s, int *pDim=NULL) const
Definition: AnyValue.hpp:23
void reset_changes()
Definition: AnyValue.hpp:358
static Compar compare(const AnyValue &av1, const AnyValue &av2)
virtual void serialize(OutputStream &ost) const
AnyValue(AtomType at=INT_4, unsigned count=1, CategoryId catid=UC_NONE)
void detach()
Definition: AnyValue.hpp:331
Definition: Serial.hpp:69
AnyValue & operator=(const AnyValue &av)
virtual void deserialize(InputStream &ist)
void new_def(AtomType at, unsigned count=1, CategoryId catid=UC_NONE)
virtual char * from_string(const char *s)
AtomType get_type() const
Definition: AnyValue.hpp:366
virtual bool operator==(const AnyValue &av) const
void attach(void *val_ptr)
Definition: TextRepres.hpp:19
virtual char * to_string() const
void print_self(FILE *stream=NULL, const char *szPre=NULL, const char *szPost=NULL) const
Definition: Serial.hpp:131