|
inlib
1.2.0
|


Public Member Functions | |
| virtual void * | cast (const std::string &a_class) const |
| ntuple (std::ostream &a_out, const std::string &a_title) | |
| virtual | ~ntuple () |
| ntuple (const ntuple &a_from) | |
| ntuple & | operator= (const ntuple &a_from) |
| template<class T > | |
| aida_col< T > * | create_col (const std::string &a_name, const T &a_def=T()) |
| template<class T > | |
| aida_col< T > * | find_column (const std::string &a_name) |
Static Public Member Functions | |
| static const std::string & | s_class () |
Definition at line 464 of file aida_ntuple.
| inlib::aida::ntuple::ntuple | ( | std::ostream & | a_out, |
| const std::string & | a_title | ||
| ) | [inline] |
Definition at line 478 of file aida_ntuple.
: base_ntu(a_out,a_title) {}
| virtual inlib::aida::ntuple::~ntuple | ( | ) | [inline, virtual] |
Definition at line 481 of file aida_ntuple.
{}
| inlib::aida::ntuple::ntuple | ( | const ntuple & | a_from | ) | [inline] |
Definition at line 483 of file aida_ntuple.
: base_ntu(a_from){}
| virtual void* inlib::aida::ntuple::cast | ( | const std::string & | a_class | ) | const [inline, virtual] |
Reimplemented from inlib::aida::base_ntu.
Definition at line 470 of file aida_ntuple.
{
if(void* p = cmp_cast<ntuple>(this,a_class)) {return p;}
else return base_ntu::cast(a_class);
}
| aida_col<T>* inlib::aida::ntuple::create_col | ( | const std::string & | a_name, |
| const T & | a_def = T() |
||
| ) | [inline] |
Definition at line 490 of file aida_ntuple.
{
if(find_named<base_col>(m_cols,a_name)) {
m_out << s_class() << "::create_col :"
<< " a column with name " << sout(a_name) << " already exists."
<< std::endl;
return 0;
}
aida_col<T>* col = new aida_col<T>(m_out,a_name,a_def);
if(!col) {
m_out << s_class() << "::create_col :"
<< " can't create aida_col<T> " << sout(a_name) << "."
<< std::endl;
return 0;
}
m_cols.push_back(col);
return col;
}
| aida_col<T>* inlib::aida::ntuple::find_column | ( | const std::string & | a_name | ) | [inline] |
Reimplemented from inlib::aida::base_ntu.
Definition at line 510 of file aida_ntuple.
{
base_col* col = find_named<base_col>(m_cols,a_name);
if(!col) return 0;
return inlib::cast<base_col, aida_col<T> >(*col);
}
Definition at line 484 of file aida_ntuple.
{
base_ntu::operator=(a_from);
return *this;
}
| static const std::string& inlib::aida::ntuple::s_class | ( | ) | [inline, static] |
Reimplemented from inlib::aida::base_ntu.
Definition at line 466 of file aida_ntuple.
{
static const std::string s_v("inlib::aida::ntuple");
return s_v;
}
1.7.5.1