List of all members.
Detailed Description
Definition at line 15 of file tree.
Constructor & Destructor Documentation
inlib::wroot::tree::tree |
( |
idir & |
a_dir, |
|
|
const std::string & |
a_name, |
|
|
const std::string & |
a_title |
|
) |
| [inline] |
Definition at line 86 of file tree.
virtual inlib::wroot::tree::~tree |
( |
| ) |
[inline, virtual] |
Definition at line 102 of file tree.
{
#ifdef INLIB_MEM
mem::decrement(s_class().c_str());
#endif
}
inlib::wroot::tree::tree |
( |
const tree & |
a_from | ) |
[inline, protected] |
Definition at line 108 of file tree.
: iobject(a_from),itree(a_from)
,m_dir(a_from.m_dir)
,m_out(a_from.m_out)
{}
Member Function Documentation
virtual void inlib::wroot::tree::add_tot_bytes |
( |
uint32 |
a_n | ) |
[inline, virtual] |
virtual void inlib::wroot::tree::add_zip_bytes |
( |
uint32 |
a_n | ) |
[inline, virtual] |
branch* inlib::wroot::tree::create_branch |
( |
const std::string & |
a_name | ) |
[inline] |
Definition at line 117 of file tree.
{
branch* br = new branch(*this,a_name,m_name);
m_branches.push_back(br);
return br;
}
virtual idir& inlib::wroot::tree::dir |
( |
| ) |
[inline, virtual] |
virtual const idir& inlib::wroot::tree::dir |
( |
| ) |
const [inline, virtual] |
bool inlib::wroot::tree::fill |
( |
uint32 & |
a_nbytes | ) |
[inline] |
Definition at line 123 of file tree.
{
a_nbytes = 0;
std::vector<branch*>::const_iterator it;
for(it=m_branches.begin();it!=m_branches.end();++it) {
uint32 n;
if(!(*it)->fill(n)) {a_nbytes = 0;return false;}
a_nbytes += n;
}
m_entries++;
return true;
}
virtual const std::string& inlib::wroot::tree::name |
( |
| ) |
const [inline, virtual] |
tree& inlib::wroot::tree::operator= |
( |
const tree & |
| ) |
[inline, protected] |
Definition at line 113 of file tree.
virtual const std::string& inlib::wroot::tree::store_class_name |
( |
| ) |
const [inline, virtual] |
virtual bool inlib::wroot::tree::stream |
( |
buffer & |
a_buffer | ) |
const [inline, virtual] |
Implements inlib::wroot::iobject.
Definition at line 29 of file tree.
{
unsigned int c;
if(!a_buffer.write_version(5,c)) return false;
if(!Named_stream(a_buffer,m_name,m_title)) return false;
if(!AttLine_stream(a_buffer)) return false;
if(!AttFill_stream(a_buffer)) return false;
if(!AttMarker_stream(a_buffer)) return false;
double fEntries = (double)m_entries;
if(!a_buffer.write(fEntries)) return false;
double fTotBytes = (double)m_tot_bytes;
double fZipBytes = (double)m_zip_bytes;
if(!a_buffer.write(fTotBytes)) return false;
if(!a_buffer.write(fZipBytes)) return false;
if(!a_buffer.write((double)0)) return false;
if(!a_buffer.write((int)0)) return false;
if(!a_buffer.write((int)25)) return false;
if(!a_buffer.write((int)0)) return false;
if(!a_buffer.write((int)1000000000)) return false;
int fMaxVirtualSize = 0;
int fAutoSave = 100000000;
if(!a_buffer.write(fMaxVirtualSize)) return false;
if(!a_buffer.write(fAutoSave)) return false;
if(!a_buffer.write((int)1000000)) return false;
if(!m_branches.stream(a_buffer)) return false;
{ObjArray<base_leaf> m_leaves;
std::vector<branch*>::const_iterator itb;
for(itb=m_branches.begin();itb!=m_branches.end();++itb) {
const std::vector<base_leaf*>& leaves = (*itb)->leaves();
std::vector<base_leaf*>::const_iterator itl;
for(itl=leaves.begin();itl!=leaves.end();++itl) {
m_leaves.push_back(*itl);
}
}
if(!m_leaves.stream(a_buffer)) return false;
m_leaves.clear();}
if(!Array_stream(a_buffer,std::vector<double>())) return false;
if(!Array_stream(a_buffer,std::vector<int>())) return false;
if(!a_buffer.set_byte_count(c)) return false;
return true;
}
virtual const std::string& inlib::wroot::tree::title |
( |
| ) |
const [inline, virtual] |
Member Data Documentation
Definition at line 155 of file tree.
Definition at line 149 of file tree.
Definition at line 156 of file tree.
Definition at line 152 of file tree.
Definition at line 150 of file tree.
Definition at line 153 of file tree.
Definition at line 157 of file tree.
Definition at line 158 of file tree.
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/wroot/tree