evio::evioDOMLeafNode< T > Class Template Reference

Sub-class of evioDOMNode represents an evio leaf node. More...

#include <evioUtil.hxx>

Inheritance diagram for evio::evioDOMLeafNode< T >:
evio::evioDOMNode

List of all members.

Public Member Functions

virtual string getHeader (int depth, const evioToStringConfig *config=&defaultToStringConfig) const
 Returns XML string containing header needed by toString.
virtual string getBody (int depth, const evioToStringConfig *config=&defaultToStringConfig) const
 Returns XML string containing body needed by toString.
virtual string getFooter (int depth, const evioToStringConfig *config=&defaultToStringConfig) const
 Returns XML string containing footer needed by toString.
virtual int getSize (void) const
 Returns numnber of data elements.

Public Attributes

vector< T > data
 Vector<T> of node data.

Protected Member Functions

 evioDOMLeafNode (evioDOMNodeP par, uint16_t tag, uint8_t num) throw (evioException)
 Leaf node constructor used internally.
 evioDOMLeafNode (evioDOMNodeP par, uint16_t tag, uint8_t num, const vector< T > &v) throw (evioException)
 Leaf node constructor used internally.
 evioDOMLeafNode (evioDOMNodeP par, uint16_t tag, uint8_t num, const T *p, int ndata) throw (evioException)
 Leaf node constructor used internally.
virtual ~evioDOMLeafNode (void)
 evioDOMLeafNode (const evioDOMLeafNode< T > &lNode) throw (evioException)
bool operator= (const evioDOMLeafNode< T > &lNode)

Friends

class evioDOMNode
 Allows evioDOMNode to use private subclass methods.

Detailed Description

template<typename T>
class evio::evioDOMLeafNode< T >

Sub-class of evioDOMNode represents an evio leaf node.

Only accessible to users via pointer to evioDOMNode object.


Constructor & Destructor Documentation

template<typename T >
evio::evioDOMLeafNode< T >::evioDOMLeafNode ( evioDOMNodeP  par,
uint16_t  tag,
uint8_t  num 
) throw (evioException) [inline, protected]

Leaf node constructor used internally.

Parameters:
par Parent node
tag Node tag
num Node num
template<typename T>
evio::evioDOMLeafNode< T >::evioDOMLeafNode ( evioDOMNodeP  par,
uint16_t  tag,
uint8_t  num,
const vector< T > &  v 
) throw (evioException) [inline, protected]

Leaf node constructor used internally.

Parameters:
par Parent node
tag Node tag
num Node num
v vector<T> of data
template<typename T>
evio::evioDOMLeafNode< T >::evioDOMLeafNode ( evioDOMNodeP  par,
uint16_t  tag,
uint8_t  num,
const T *  p,
int  ndata 
) throw (evioException) [inline, protected]

Leaf node constructor used internally.

Parameters:
par Parent node
tag Node tag
num Node num
p Pointer to array containg data of type T
ndata Length of array
template<typename T >
evio::evioDOMLeafNode< T >::~evioDOMLeafNode ( void   )  [inline, protected, virtual]
template<typename T>
evio::evioDOMLeafNode< T >::evioDOMLeafNode ( const evioDOMLeafNode< T > &  lNode  )  throw (evioException) [protected]

Member Function Documentation

template<typename T >
string evio::evioDOMLeafNode< T >::getBody ( int  depth,
const evioToStringConfig config = &defaultToStringConfig 
) const [inline, virtual]

Returns XML string containing body needed by toString.

Parameters:
depth Current depth
Returns:
XML string

Implements evio::evioDOMNode.

Reimplemented in evio::evioCompositeDOMLeafNode.

template<typename T >
string evio::evioDOMLeafNode< T >::getFooter ( int  depth,
const evioToStringConfig config = &defaultToStringConfig 
) const [inline, virtual]

Returns XML string containing footer needed by toString.

Parameters:
depth Current depth
Returns:
XML string

Implements evio::evioDOMNode.

template<typename T >
string evio::evioDOMLeafNode< T >::getHeader ( int  depth,
const evioToStringConfig config = &defaultToStringConfig 
) const [inline, virtual]

Returns XML string containing header needed by toString.

Parameters:
depth Current depth
Returns:
XML string

Implements evio::evioDOMNode.

template<typename T >
int evio::evioDOMLeafNode< T >::getSize ( void   )  const [inline, virtual]

Returns numnber of data elements.

Returns:
number of data elements

Implements evio::evioDOMNode.

Reimplemented in evio::evioCompositeDOMLeafNode.

template<typename T>
bool evio::evioDOMLeafNode< T >::operator= ( const evioDOMLeafNode< T > &  lNode  )  [protected]

Reimplemented in evio::evioCompositeDOMLeafNode.


Friends And Related Function Documentation

template<typename T>
friend class evioDOMNode [friend]

Allows evioDOMNode to use private subclass methods.

Reimplemented in evio::evioCompositeDOMLeafNode.


Member Data Documentation

template<typename T>
vector<T> evio::evioDOMLeafNode< T >::data

Vector<T> of node data.

Referenced by evio::evioDOMNode::append().


The documentation for this class was generated from the following file:

Generated on 4 Feb 2014 for evio by  doxygen 1.6.1