g4tools  5.4.0
Classes | Namespaces | Macros
ntuple File Reference
#include "store"
#include <tools/vfind>
#include <tools/vmanip>
#include <tools/ntuple_binding>
#include <tools/ntuple_booking>
#include <tools/sout>
#include <tools/scast>
#include <tools/forit>
#include <tools/stype>
#include <tools/mnmx>
#include <tools/vdata>
Include dependency graph for ntuple:

Go to the source code of this file.

Classes

class  tools::hdf5::ntuple
 
class  tools::hdf5::ntuple::icol
 
class  tools::hdf5::ntuple::column_ref< T >
 
class  tools::hdf5::ntuple::column< T >
 
class  tools::hdf5::ntuple::std_vector_column_ref< T >
 
class  tools::hdf5::ntuple::std_vector_column< T >
 
class  tools::hdf5::ntuple::column_string_ref
 
class  tools::hdf5::ntuple::column_string
 

Namespaces

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

Macros

#define tools_hdf5_ntuple
 
#define TOOLS_HDF5_NTUPLE_VLEN
 
#define TOOLS_HDF5_NTUPLE_STRING
 
#define TOOLS_HDF5_NTUPLE_READ_CREATE_COL(a__type)
 
#define TOOLS_HDF5_NTUPLE_READ_CREATE_VEC_COL(a__vec_type, a__type)
 
#define TOOLS_HDF5_NTUPLE_CREATE_COL(a__type)
 
#define TOOLS_HDF5_NTUPLE_CREATE_VEC_COL(a__type)
 
#define TOOLS_HDF5_NTUPLE_READ_BINDING_CREATE_COL(a__type)
 
#define TOOLS_HDF5_NTUPLE_READ_BINDING_CREATE_VEC_COL(a__vec_type, a__type)
 

Macro Definition Documentation

◆ tools_hdf5_ntuple

#define tools_hdf5_ntuple

Definition at line 5 of file ntuple.

◆ TOOLS_HDF5_NTUPLE_CREATE_COL

#define TOOLS_HDF5_NTUPLE_CREATE_COL (   a__type)
Value:
if((*it).cls_id()==tools::_cid(a__type())) {\
a__type* user = (a__type*)(*it).user_obj();\
if(user) {\
if(!create_column_ref<a__type>((*it).name(),a_basket_size,*user)) {\
m_out << "tools::hdf5::ntuple :"\
<< " can't create column_ref " << tools::sout((*it).name()) << "."\
<< std::endl;\
tools::safe_clear<icol>(m_cols);\
return;\
}\
} else {\
if(!create_column<a__type>((*it).name(),a_basket_size)) {\
m_out << "tools::hdf5::ntuple :"\
<< " can't create column " << tools::sout((*it).name()) << "."\
<< std::endl;\
tools::safe_clear<icol>(m_cols);\
return;\
}\
}\
}

◆ TOOLS_HDF5_NTUPLE_CREATE_VEC_COL

#define TOOLS_HDF5_NTUPLE_CREATE_VEC_COL (   a__type)
Value:
if((*it).cls_id()==tools::_cid_std_vector<a__type>()) {\
std::vector<a__type>* vec = (std::vector<a__type>*)(*it).user_obj();\
if(!vec) {\
m_out << "tools::hdf5::ntuple :"\
<< " for std::vector column " << tools::sout((*it).name())\
<< ", the user vector pointer is null."\
<< std::endl;\
tools::safe_clear<icol>(m_cols);\
return;\
}\
if(!create_std_column_ref<a__type>((*it).name(),a_basket_size,*vec)) {\
m_out << "tools::hdf5::ntuple :"\
<< " can't create std::vector column " << tools::sout((*it).name()) << "."\
<< std::endl;\
tools::safe_clear<icol>(m_cols);\
return;\
}\
}

◆ TOOLS_HDF5_NTUPLE_READ_BINDING_CREATE_COL

#define TOOLS_HDF5_NTUPLE_READ_BINDING_CREATE_COL (   a__type)
Value:
if((*it)->form()==tools::stype(a__type())) {\
a__type* user_var = a_bd.find_variable<a__type>((*it)->name());\
if(user_var) {\
column_ref<a__type>* col = new column_ref<a__type>(*this,*(*it),false,(*it)->name(),0,*user_var);\
if(!col) {tools::safe_clear<icol>(m_cols);return false;}\
m_cols.push_back(col);\
} else {\
column<a__type>* col = new column<a__type>(*this,*(*it),false,(*it)->name(),0);\
if(!col) {tools::safe_clear<icol>(m_cols);return false;}\
m_cols.push_back(col);\
}\
}

◆ TOOLS_HDF5_NTUPLE_READ_BINDING_CREATE_VEC_COL

#define TOOLS_HDF5_NTUPLE_READ_BINDING_CREATE_VEC_COL (   a__vec_type,
  a__type 
)
Value:
if((*it)->form()==s_vector_##a__vec_type()) {\
std::vector<a__type>* user_var = a_bd.find_variable< std::vector<a__type> >((*it)->name());\
if(user_var) {\
std_vector_column_ref<a__type>* col = \
new std_vector_column_ref<a__type>(*this,*(*it),false,(*it)->name(),0,*user_var);\
if(!col) {tools::safe_clear<icol>(m_cols);return false;}\
m_cols.push_back(col);\
} else {\
std_vector_column<a__type>* col = new std_vector_column<a__type>(*this,*(*it),false,(*it)->name(),0);\
if(!col) {tools::safe_clear<icol>(m_cols);return false;}\
m_cols.push_back(col);\
}\
}

◆ TOOLS_HDF5_NTUPLE_READ_CREATE_COL

#define TOOLS_HDF5_NTUPLE_READ_CREATE_COL (   a__type)
Value:
if((*it)->form()==tools::stype(a__type())) {\
column<a__type>* col = new column<a__type>(*this,*(*it),false,(*it)->name(),0);\
if(!col) {tools::safe_clear<icol>(m_cols);return;}\
m_cols.push_back(col);\
}

◆ TOOLS_HDF5_NTUPLE_READ_CREATE_VEC_COL

#define TOOLS_HDF5_NTUPLE_READ_CREATE_VEC_COL (   a__vec_type,
  a__type 
)
Value:
if((*it)->form()==s_vector_##a__vec_type()) {\
std_vector_column<a__type>* col = new std_vector_column<a__type>(*this,*(*it),false,(*it)->name(),0);\
if(!col) {tools::safe_clear<icol>(m_cols);return;}\
m_cols.push_back(col);\
}

◆ TOOLS_HDF5_NTUPLE_STRING

#define TOOLS_HDF5_NTUPLE_STRING

Definition at line 272 of file ntuple.

◆ TOOLS_HDF5_NTUPLE_VLEN

#define TOOLS_HDF5_NTUPLE_VLEN

Definition at line 270 of file ntuple.

tools::_cid
cid _cid(byte)
Definition: cids:14
tools::sout
Definition: sout:17
tools::stype
const std::string & stype(const mat4f &)
Definition: mat4f:73