#include "array"
#include "typedefs"
#include "num2s"
#include "b2s"
#include "value.icc"
Go to the source code of this file.
|
| tools |
| inlined C code : ///////////////////////////////////
|
|
|
#define | tools_value |
|
#define | TOOLS_VALUE_CSTOR(a_what, a_m_what, a_type) |
|
#define | TOOLS_VALUE_CSTORA(a_what, a_m_what, a_type) |
|
#define | TOOLS_VALUE_SET(a_what, a_m_what, a_type) |
|
#define | TOOLS_VALUE_SET2(a_what, a_m_what, a_type) |
|
#define | TOOLS_VALUE_GET(a_what, a_get_what, a_m_what) |
|
#define | TOOLS_ARRAY_VEC(a_what, a_get_what, a_m_what) |
|
◆ TOOLS_ARRAY_VEC
#define TOOLS_ARRAY_VEC |
( |
|
a_what, |
|
|
|
a_get_what, |
|
|
|
a_m_what |
|
) |
| |
Value: const std::vector<a_what>& a_get_what() const {return u.a_m_what->vector();}\
std::vector<a_what>& a_get_what() {return u.a_m_what->vector();}
Definition at line 988 of file value.
◆ tools_value
Definition at line 5 of file value.
◆ TOOLS_VALUE_CSTOR
#define TOOLS_VALUE_CSTOR |
( |
|
a_what, |
|
|
|
a_m_what, |
|
|
|
a_type |
|
) |
| |
Value: value(const std::vector<a_what>& a_v):m_label(0),m_itag(0){\
m_type = a_type;\
std::vector<unsigned int>
is(1);\
is[0] = (unsigned int)a_v.size();\
u.a_m_what =
new array<a_what>(
is);\
u.a_m_what->fill(a_v);\
}
Definition at line 220 of file value.
◆ TOOLS_VALUE_CSTORA
#define TOOLS_VALUE_CSTORA |
( |
|
a_what, |
|
|
|
a_m_what, |
|
|
|
a_type |
|
) |
| |
Value: value(const array<a_what>& a_a):m_label(0),m_itag(0){\
m_type = a_type;\
u.a_m_what = new array<a_what>(a_a);\
}
Definition at line 253 of file value.
◆ TOOLS_VALUE_GET
#define TOOLS_VALUE_GET |
( |
|
a_what, |
|
|
|
a_get_what, |
|
|
|
a_m_what |
|
) |
| |
Value: const std::vector<a_what>& a_get_what(std::vector<unsigned int>& a_orders) const {\
a_orders = u.a_m_what->orders();\
return u.a_m_what->vector();\
}
Definition at line 647 of file value.
◆ TOOLS_VALUE_SET
#define TOOLS_VALUE_SET |
( |
|
a_what, |
|
|
|
a_m_what, |
|
|
|
a_type |
|
) |
| |
Value: void set(const std::vector<unsigned int>& a_orders,const std::vector<a_what>& a_v){\
reset();\
m_type = a_type;\
u.a_m_what = new array<a_what>(a_orders);\
u.a_m_what->fill(a_v);\
}
Definition at line 599 of file value.
◆ TOOLS_VALUE_SET2
#define TOOLS_VALUE_SET2 |
( |
|
a_what, |
|
|
|
a_m_what, |
|
|
|
a_type |
|
) |
| |
Value: void set(const std::vector<a_what>& a_v){\
reset();\
m_type = a_type;\
std::vector<unsigned int>
is(1);\
is[0] = (unsigned int)a_v.size();\
u.a_m_what =
new array<a_what>(
is);\
u.a_m_what->fill(a_v);\
}
Definition at line 622 of file value.