g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::wroot::leaf< T > Class Template Reference
Inheritance diagram for tools::wroot::leaf< T >:
Inheritance graph
[legend]
Collaboration diagram for tools::wroot::leaf< T >:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual cid id_cls () const
 
 leaf (std::ostream &a_out, const std::string &a_name)
 
virtual ~leaf ()
 
void fill (const T &a_value)
 
- Public Member Functions inherited from tools::wroot::leaf_ref< T >
virtual const std::string & store_cls () const
 
virtual bool stream (buffer &a_buffer) const
 
virtual bool fill_buffer (buffer &a_buffer) const
 
 leaf_ref (std::ostream &a_out, const std::string &a_name, const T &a_ref)
 
virtual ~leaf_ref ()
 
get_max () const
 
void set_max (const T &a_value)
 
const T & variable () const
 
T & variable ()
 
- Public Member Functions inherited from tools::wroot::base_leaf
 base_leaf (std::ostream &a_out, const std::string &a_name, const std::string &a_title)
 
virtual ~base_leaf ()
 
const std::string & name () const
 
void set_title (const std::string &a_value)
 
uint32 length () const
 
void set_length (uint32 a_value)
 
void set_is_range (bool a_value)
 
- Public Member Functions inherited from tools::wroot::ibo
virtual ~ibo ()
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::wroot::leaf_ref< T >
static cid id_class ()
 
- Static Public Member Functions inherited from tools::wroot::base_leaf
static cid id_class ()
 

Protected Member Functions

 leaf (const leaf &a_from)
 
leafoperator= (const leaf &)
 
- Protected Member Functions inherited from tools::wroot::leaf_ref< T >
 leaf_ref (const leaf_ref &a_from)
 
leaf_refoperator= (const leaf_ref &)
 
- Protected Member Functions inherited from tools::wroot::base_leaf
 base_leaf (const base_leaf &a_from)
 
base_leafoperator= (const base_leaf &)
 

Protected Attributes

m_value
 
- Protected Attributes inherited from tools::wroot::leaf_ref< T >
m_min
 
m_max
 
const T & m_ref
 
- Protected Attributes inherited from tools::wroot::base_leaf
std::ostream & m_out
 
std::string m_name
 
std::string m_title
 
uint32 m_length
 
uint32 m_length_type
 
ibom_leaf_count
 
bool m_is_range
 

Detailed Description

template<class T>
class tools::wroot::leaf< T >

Definition at line 105 of file leaf.

Constructor & Destructor Documentation

◆ leaf() [1/2]

template<class T >
tools::wroot::leaf< T >::leaf ( std::ostream &  a_out,
const std::string &  a_name 
)
inline

Definition at line 115 of file leaf.

116  :parent(a_out,a_name,m_value)
117  ,m_value(T())
118  {}

◆ ~leaf()

template<class T >
virtual tools::wroot::leaf< T >::~leaf ( )
inlinevirtual

Definition at line 119 of file leaf.

119 {}

◆ leaf() [2/2]

template<class T >
tools::wroot::leaf< T >::leaf ( const leaf< T > &  a_from)
inlineprotected

Definition at line 121 of file leaf.

121 :ibo(a_from),parent(a_from){}

Member Function Documentation

◆ cast()

template<class T >
virtual void* tools::wroot::leaf< T >::cast ( cid  a_class) const
inlinevirtual

Reimplemented from tools::wroot::leaf_ref< T >.

Definition at line 109 of file leaf.

109  {
110  if(void* p = cmp_cast<leaf>(this,a_class)) {return p;}
111  return parent::cast(a_class);
112  }

◆ fill()

template<class T >
void tools::wroot::leaf< T >::fill ( const T &  a_value)
inline

Definition at line 124 of file leaf.

124 {m_value = a_value;}

◆ id_class()

template<class T >
static cid tools::wroot::leaf< T >::id_class ( )
inlinestatic

Definition at line 108 of file leaf.

108 {return base_leaf_cid()+_cid(T());}

◆ id_cls()

template<class T >
virtual cid tools::wroot::leaf< T >::id_cls ( ) const
inlinevirtual

Reimplemented from tools::wroot::leaf_ref< T >.

Definition at line 113 of file leaf.

113 {return id_class();}

◆ operator=()

template<class T >
leaf& tools::wroot::leaf< T >::operator= ( const leaf< T > &  )
inlineprotected

Definition at line 122 of file leaf.

122 {return *this;}

Member Data Documentation

◆ m_value

template<class T >
T tools::wroot::leaf< T >::m_value
protected

Definition at line 126 of file leaf.


The documentation for this class was generated from the following file:
tools::_cid
cid _cid(byte)
Definition: cids:14
tools::wroot::base_leaf_cid
cid base_leaf_cid()
Definition: cids:20
tools::wroot::leaf_ref::cast
virtual void * cast(cid a_class) const
Definition: leaf:53
tools::wroot::leaf::id_class
static cid id_class()
Definition: leaf:108
tools::wroot::leaf::m_value
T m_value
Definition: leaf:126