g4tools  5.4.0
Classes | Namespaces | Macros
value File Reference
#include "array"
#include "typedefs"
#include "num2s"
#include "b2s"
#include "value.icc"
Include dependency graph for value:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tools::value
 

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 

Macros

#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)
 

Macro Definition Documentation

◆ 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

#define 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.

tools::jpeg::is
bool is(const std::string &a_file)
Definition: jpeg:216