List of all members.
Detailed Description
Definition at line 25 of file ntuple.
Constructor & Destructor Documentation
inlib::rroot::ntuple::ntuple |
( |
tree & |
a_tree | ) |
[inline] |
Definition at line 109 of file ntuple.
:m_tree(a_tree),m_index(-1){
#ifdef INLIB_MEM
mem::increment(s_class().c_str());
#endif
}
virtual inlib::rroot::ntuple::~ntuple |
( |
| ) |
[inline, virtual] |
Definition at line 114 of file ntuple.
{
inlib::clear<read::icol>(m_cols);
#ifdef INLIB_MEM
mem::decrement(s_class().c_str());
#endif
}
inlib::rroot::ntuple::ntuple |
( |
const ntuple & |
a_from | ) |
[inline, protected] |
Definition at line 121 of file ntuple.
:read::intuple(a_from),m_tree(a_from.m_tree){
#ifdef INLIB_MEM
mem::increment(s_class().c_str());
#endif
}
Member Function Documentation
virtual const std::vector<read::icol*>& inlib::rroot::ntuple::columns |
( |
| ) |
const [inline, virtual] |
virtual read::icol* inlib::rroot::ntuple::find_icol |
( |
const std::string & |
a_name | ) |
[inline, virtual] |
bool inlib::rroot::ntuple::initialize |
( |
std::ostream & |
a_out | ) |
[inline] |
Definition at line 129 of file ntuple.
{
inlib::clear<read::icol>(m_cols);
std::vector<base_leaf*> leaves = m_tree.find_leaves();
{std::vector<base_leaf*>::const_iterator it;
for(it=leaves.begin();it!=leaves.end();++it) {
base_leaf* bl = (*it);
if(find_named<read::icol>(m_cols,bl->name())) {
a_out << "inlib::rroot::ntuple::initialize :"
<< " column with name " << sout(bl->name())
<< " already exists."
<< std::endl;
inlib::clear<read::icol>(m_cols);
return false;
}
if(leaf<float>* lf = cast<base_leaf, leaf<float> >(*bl) ){
column<float>* col = new column<float>(*lf,m_index);
m_cols.push_back(col);
} else if(leaf<double>* ld = cast<base_leaf, leaf<double> >(*bl) ){
column<double>* col = new column<double>(*ld,m_index);
m_cols.push_back(col);
} else if(leaf<int>* li = cast<base_leaf, leaf<int> >(*bl) ){
column<int>* col = new column<int>(*li,m_index);
m_cols.push_back(col);
} else if(leaf_string* ls = cast<base_leaf, leaf_string >(*bl) ){
column_string* col = new column_string(*ls,m_index);
m_cols.push_back(col);
} else {
a_out << "inlib::rroot::ntuple::initialize :"
<< " column type not yet handled."
<< std::endl;
inlib::clear<read::icol>(m_cols);
return false;
}
}}
unsigned int num = m_cols.size();
if(!num) {
a_out << "inlib::rroot::ntuple::initialize :"
<< " zero columns."
<< std::endl;
return false;
}
return true;
}
virtual bool inlib::rroot::ntuple::next |
( |
| ) |
[inline, virtual] |
ntuple& inlib::rroot::ntuple::operator= |
( |
const ntuple & |
| ) |
[inline, protected] |
virtual void inlib::rroot::ntuple::start |
( |
| ) |
[inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/rroot/ntuple