26 int addItem(
const std::string& name,
const T* value,
bool det_average =
false,
const int* dim0 = NULL,
const int* dim1 = NULL)
28 std::pair<items_map_t::iterator, bool> insert_ret;
29 insert_ret =
m_items.insert(items_map_t::value_type(name, item_t(value, det_average, dim0, dim1)));
30 if (!insert_ret.second)
40 const item_t*
findItem(
const std::string& item_name,
bool det_average)
42 items_map_t::const_iterator iter;
44 if ( (iter !=
m_items.end()) && (iter->second.det_average == det_average) )
46 return &(iter->second);
55 int getItem(
const std::string& item_name,
long* spec_array,
int nspec, T* lVal,
DAEstatus& status);
57 int getArrayItem(
const std::string& item_name,
long* spec_array,
int nspec, T* larray,
DAEstatus& status);
int getArrayItemSize(const std::string &item_name, int *dims_array, int &ndims, DAEstatus &status)
std::map< std::string, item_t > items_map_t
item_t(const T *v, bool da, const int *d0, const int *d1)
int getArrayItem(const std::string &item_name, long *spec_array, int nspec, T *larray, DAEstatus &status)
const item_t * findItem(const std::string &item_name, bool det_average)
int getItem(const std::string &item_name, T &value, DAEstatus &status)
unsigned long * m_spec_array
int addItem(const std::string &name, const T *value, bool det_average=false, const int *dim0=NULL, const int *dim1=NULL)