inlib  1.2.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
inlib::waxml::ntuple::column< T > Class Template Reference
Inheritance diagram for inlib::waxml::ntuple::column< T >:
Inheritance graph
[legend]
Collaboration diagram for inlib::waxml::ntuple::column< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void * cast (cid a_class) const
virtual const std::string & name () const
virtual std::string aida_type () const
virtual std::string s_def () const
virtual std::string s_value () const
 column (const std::string &a_name, const T &a_def)
virtual ~column ()
bool fill (const T &a_value)

Static Public Member Functions

static cid id_class ()

Protected Member Functions

 column (const column &a_from)
columnoperator= (const column &a_from)

Protected Attributes

std::string m_name
m_def
m_tmp

Detailed Description

template<class T>
class inlib::waxml::ntuple::column< T >

Definition at line 72 of file ntuple.


Constructor & Destructor Documentation

template<class T>
inlib::waxml::ntuple::column< T >::column ( const std::string &  a_name,
const T &  a_def 
) [inline]

Definition at line 86 of file ntuple.

    :m_name(a_name),m_def(a_def),m_tmp(a_def)
    {}
template<class T>
virtual inlib::waxml::ntuple::column< T >::~column ( ) [inline, virtual]

Definition at line 89 of file ntuple.

{}
template<class T>
inlib::waxml::ntuple::column< T >::column ( const column< T > &  a_from) [inline, protected]

Definition at line 91 of file ntuple.

    :leaf(a_from)
    ,m_name(a_from.m_name) 
    ,m_def(a_from.m_def)
    ,m_tmp(a_from.m_tmp)
    {}

Member Function Documentation

template<class T>
virtual std::string inlib::waxml::ntuple::column< T >::aida_type ( ) const [inline, virtual]

Implements inlib::waxml::ntuple::iobj.

Definition at line 81 of file ntuple.

{return s_aida_type(T());}
template<class T>
virtual void* inlib::waxml::ntuple::column< T >::cast ( cid  a_class) const [inline, virtual]

Reimplemented from inlib::waxml::ntuple::leaf.

Definition at line 76 of file ntuple.

                                          {
      if(void* p = cmp_cast< column<T> >(this,a_class)) {return p;}
      else return leaf::cast(a_class);
    }
template<class T>
bool inlib::waxml::ntuple::column< T >::fill ( const T &  a_value) [inline]

Definition at line 104 of file ntuple.

{m_tmp = a_value;return true;}
template<class T>
static cid inlib::waxml::ntuple::column< T >::id_class ( ) [inline, static]

Reimplemented from inlib::waxml::ntuple::leaf.

Definition at line 74 of file ntuple.

{return 200+_cid(T());}
template<class T>
virtual const std::string& inlib::waxml::ntuple::column< T >::name ( ) const [inline, virtual]

Implements inlib::waxml::ntuple::iobj.

Definition at line 80 of file ntuple.

{return m_name;}
template<class T>
column& inlib::waxml::ntuple::column< T >::operator= ( const column< T > &  a_from) [inline, protected]

Definition at line 97 of file ntuple.

                                           {
      m_name = a_from.m_name;
      m_def = a_from.m_def;
      m_tmp = a_from.m_tmp;
      return *this;
    }
template<class T>
virtual std::string inlib::waxml::ntuple::column< T >::s_def ( ) const [inline, virtual]

Implements inlib::waxml::ntuple::leaf.

Definition at line 83 of file ntuple.

{return tos(m_def);}
template<class T>
virtual std::string inlib::waxml::ntuple::column< T >::s_value ( ) const [inline, virtual]

Implements inlib::waxml::ntuple::leaf.

Definition at line 84 of file ntuple.

{return tos(m_tmp);}

Member Data Documentation

template<class T>
T inlib::waxml::ntuple::column< T >::m_def [protected]

Definition at line 107 of file ntuple.

template<class T>
std::string inlib::waxml::ntuple::column< T >::m_name [protected]

Definition at line 106 of file ntuple.

template<class T>
T inlib::waxml::ntuple::column< T >::m_tmp [protected]

Definition at line 108 of file ntuple.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines