|
virtual const std::string & | name () const |
|
virtual const std::string & | title () const |
|
virtual const std::string & | store_class_name () const |
|
virtual bool | stream (buffer &a_buffer) const |
|
virtual idir & | dir () |
|
virtual const idir & | dir () const |
|
| tree (idir &a_dir, const std::string &a_name, const std::string &a_title, bool a_managed=true) |
|
virtual | ~tree () |
|
std::ostream & | out () const |
|
const std::vector< branch * > & | branches () const |
|
uint64 | entries () const |
|
branch * | create_branch (const std::string &a_name) |
|
template<class TYPE > |
leaf_ref< TYPE > * | create_leaf_ref (const std::string &a_name, const TYPE &a_ref) |
| ref : ////////////////////////////////////// More...
|
|
leaf_string_ref * | create_leaf_string_ref (const std::string &a_name, const std::string &a_ref) |
|
template<class T > |
leaf_element * | create_std_vector_leaf_ref (const std::string &a_name, const std::vector< T > &a_ref) |
|
template<class T > |
std_vector_be_ref< T > * | create_std_vector_be_ref (const std::string &a_name, const std::vector< T > &a_ref) |
|
template<class T > |
std_vector_be< T > * | create_std_vector_be (const std::string &a_name, const std::vector< T > &a_def=std::vector< T >()) |
|
template<class T > |
std_vector_be_pointer< T > * | create_std_vector_be_pointer (const std::string &a_name, std::vector< T > *a_pointer) |
|
template<class TYPE > |
leaf< TYPE > * | create_leaf (const std::string &a_name) |
|
leaf_object * | create_leaf (const std::string &a_name, const iobject &a_obj) |
|
bool | fill (uint32 &a_nbytes) |
|
void | reset () |
|
virtual | ~iobject () |
|
virtual | ~itree () |
|
Definition at line 17 of file tree.
◆ tree() [1/2]
tools::wroot::tree::tree |
( |
idir & |
a_dir, |
|
|
const std::string & |
a_name, |
|
|
const std::string & |
a_title, |
|
|
bool |
a_managed = true |
|
) |
| |
|
inline |
Definition at line 86 of file tree.
88 ,
m_out(a_dir.file().out())
96 mem::increment(s_class().c_str());
98 if(a_managed) a_dir.append_object(
this);
◆ ~tree()
virtual tools::wroot::tree::~tree |
( |
| ) |
|
|
inlinevirtual |
Definition at line 100 of file tree.
102 mem::decrement(s_class().c_str());
◆ tree() [2/2]
tools::wroot::tree::tree |
( |
const tree & |
a_from | ) |
|
|
inlineprotected |
Definition at line 106 of file tree.
107 :iobject(a_from),itree(a_from)
◆ branches()
const std::vector<branch*>& tools::wroot::tree::branches |
( |
| ) |
const |
|
inline |
Definition at line 114 of file tree.
◆ create_branch()
branch* tools::wroot::tree::create_branch |
( |
const std::string & |
a_name | ) |
|
|
inline |
Definition at line 119 of file tree.
121 branch* br =
new branch(
m_out,_file.byte_swap(),_file.compression(),
◆ create_leaf() [1/2]
template<class TYPE >
leaf<TYPE>* tools::wroot::tree::create_leaf |
( |
const std::string & |
a_name | ) |
|
|
inline |
Definition at line 184 of file tree.
187 return br->create_leaf<TYPE>(a_name);
◆ create_leaf() [2/2]
leaf_object* tools::wroot::tree::create_leaf |
( |
const std::string & |
a_name, |
|
|
const iobject & |
a_obj |
|
) |
| |
|
inline |
Definition at line 190 of file tree.
192 branch_object* br =
new branch_object(
m_out,_file.byte_swap(),_file.compression(),
195 return br->create_leaf(a_name,a_obj);
◆ create_leaf_ref()
template<class TYPE >
leaf_ref<TYPE>* tools::wroot::tree::create_leaf_ref |
( |
const std::string & |
a_name, |
|
|
const TYPE & |
a_ref |
|
) |
| |
|
inline |
ref : //////////////////////////////////////
Definition at line 132 of file tree.
135 return br->create_leaf_ref<TYPE>(a_name,a_ref);
◆ create_leaf_string_ref()
leaf_string_ref* tools::wroot::tree::create_leaf_string_ref |
( |
const std::string & |
a_name, |
|
|
const std::string & |
a_ref |
|
) |
| |
|
inline |
Definition at line 138 of file tree.
141 return br->create_leaf_string_ref(a_name,a_ref);
◆ create_std_vector_be()
template<class T >
std_vector_be<T>* tools::wroot::tree::create_std_vector_be |
( |
const std::string & |
a_name, |
|
|
const std::vector< T > & |
a_def = std::vector<T>() |
|
) |
| |
|
inline |
Definition at line 166 of file tree.
168 std_vector_be<T>* br =
new std_vector_be<T>(
m_out,_file.byte_swap(),_file.compression(),
◆ create_std_vector_be_pointer()
template<class T >
std_vector_be_pointer<T>* tools::wroot::tree::create_std_vector_be_pointer |
( |
const std::string & |
a_name, |
|
|
std::vector< T > * |
a_pointer |
|
) |
| |
|
inline |
Definition at line 175 of file tree.
177 std_vector_be_pointer<T>* br =
new std_vector_be_pointer<T>(
m_out,_file.byte_swap(),_file.compression(),
◆ create_std_vector_be_ref()
template<class T >
std_vector_be_ref<T>* tools::wroot::tree::create_std_vector_be_ref |
( |
const std::string & |
a_name, |
|
|
const std::vector< T > & |
a_ref |
|
) |
| |
|
inline |
Definition at line 157 of file tree.
159 std_vector_be_ref<T>* br =
new std_vector_be_ref<T>(
m_out,_file.byte_swap(),_file.compression(),
◆ create_std_vector_leaf_ref()
template<class T >
leaf_element* tools::wroot::tree::create_std_vector_leaf_ref |
( |
const std::string & |
a_name, |
|
|
const std::vector< T > & |
a_ref |
|
) |
| |
|
inline |
Definition at line 145 of file tree.
147 std_vector_be_ref<T>* br =
new std_vector_be_ref<T>(
m_out,_file.byte_swap(),_file.compression(),
149 leaf_element* le = br->create_leaf_element(a_name);
◆ dir() [1/2]
virtual idir& tools::wroot::tree::dir |
( |
| ) |
|
|
inlinevirtual |
◆ dir() [2/2]
virtual const idir& tools::wroot::tree::dir |
( |
| ) |
const |
|
inlinevirtual |
◆ entries()
uint64 tools::wroot::tree::entries |
( |
| ) |
const |
|
inline |
Definition at line 117 of file tree.
◆ fill()
bool tools::wroot::tree::fill |
( |
uint32 & |
a_nbytes | ) |
|
|
inline |
Definition at line 198 of file tree.
209 if(!(*it)->fill(
m_dir.
file(),n,add_bytes,nout)) {a_nbytes = 0;
return false;}
◆ name()
virtual const std::string& tools::wroot::tree::name |
( |
| ) |
const |
|
inlinevirtual |
◆ operator=()
tree& tools::wroot::tree::operator= |
( |
const tree & |
| ) |
|
|
inlineprotected |
Definition at line 111 of file tree.
◆ out()
std::ostream& tools::wroot::tree::out |
( |
| ) |
const |
|
inline |
Definition at line 113 of file tree.
◆ reset()
void tools::wroot::tree::reset |
( |
| ) |
|
|
inline |
Definition at line 224 of file tree.
◆ store_class_name()
virtual const std::string& tools::wroot::tree::store_class_name |
( |
| ) |
const |
|
inlinevirtual |
◆ stream()
virtual bool tools::wroot::tree::stream |
( |
buffer & |
a_buffer | ) |
const |
|
inlinevirtual |
Implements tools::wroot::iobject.
Definition at line 31 of file tree.
33 if(!a_buffer.write_version(5,c))
return false;
43 if(!a_buffer.write(fEntries))
return false;
47 if(!a_buffer.write(fTotBytes))
return false;
48 if(!a_buffer.write(fZipBytes))
return false;
49 if(!a_buffer.write((
double)0))
return false;
50 if(!a_buffer.write((
int)0))
return false;
51 if(!a_buffer.write((
int)25))
return false;
52 if(!a_buffer.write((
int)0))
return false;
53 if(!a_buffer.write((
int)1000000000))
return false;
54 int fMaxVirtualSize = 0;
55 int fAutoSave = 100000000;
56 if(!a_buffer.write(fMaxVirtualSize))
return false;
57 if(!a_buffer.write(fAutoSave))
return false;
58 if(!a_buffer.write((
int)1000000))
return false;
62 {obj_array<base_leaf> m_leaves;
64 const std::vector<base_leaf*>& leaves = (*itb)->leaves();
66 m_leaves.push_back(*itl);
69 if(!m_leaves.stream(a_buffer))
return false;
73 if(!a_buffer.write_array(std::vector<double>()))
return false;
75 if(!a_buffer.write_array(std::vector<int>()))
return false;
77 if(!a_buffer.set_byte_count(c))
return false;
◆ title()
virtual const std::string& tools::wroot::tree::title |
( |
| ) |
const |
|
inlinevirtual |
◆ m_branches
Definition at line 241 of file tree.
◆ m_dir
idir& tools::wroot::tree::m_dir |
|
protected |
Definition at line 235 of file tree.
◆ m_entries
uint64 tools::wroot::tree::m_entries |
|
protected |
Definition at line 242 of file tree.
◆ m_name
std::string tools::wroot::tree::m_name |
|
protected |
Definition at line 238 of file tree.
◆ m_out
std::ostream& tools::wroot::tree::m_out |
|
protected |
Definition at line 236 of file tree.
◆ m_title
std::string tools::wroot::tree::m_title |
|
protected |
Definition at line 239 of file tree.
◆ m_tot_bytes
uint64 tools::wroot::tree::m_tot_bytes |
|
protected |
Definition at line 243 of file tree.
◆ m_zip_bytes
uint64 tools::wroot::tree::m_zip_bytes |
|
protected |
Definition at line 244 of file tree.
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/wroot/tree