Definition at line 17 of file basket.
◆ basket() [1/3]
tools::rroot::basket::basket |
( |
std::ostream & |
a_out | ) |
|
|
inline |
◆ basket() [2/3]
tools::rroot::basket::basket |
( |
std::ostream & |
a_out, |
|
|
seek |
a_pos, |
|
|
uint32 |
a_nbytes |
|
) |
| |
|
inline |
Definition at line 198 of file basket.
199 :parent(a_out,a_pos,a_nbytes)
207 mem::increment(
s_class().c_str());
◆ ~basket()
virtual tools::rroot::basket::~basket |
( |
| ) |
|
|
inlinevirtual |
◆ basket() [3/3]
tools::rroot::basket::basket |
( |
const basket & |
a_from | ) |
|
|
inline |
Definition at line 217 of file basket.
227 mem::increment(
s_class().c_str());
229 if(a_from.m_nev && a_from.m_entry_offset) {
232 m_out <<
"tools::rroot::basket::basket(cpcstor) :"
233 <<
" can't alloc " << a_from.m_nev <<
"."
236 uint32 len = a_from.m_nev*
sizeof(int);
240 if(a_from.m_nev && a_from.m_displacement) {
243 m_out <<
"tools::rroot::basket::basket(cpcstor) :"
244 <<
" can't alloc " << a_from.m_nev <<
"."
247 uint32 len = a_from.m_nev*
sizeof(int);
◆ _clear()
void tools::rroot::basket::_clear |
( |
| ) |
|
|
inlineprotected |
◆ cast() [1/2]
virtual void* tools::rroot::basket::cast |
( |
cid |
a_class | ) |
const |
|
inlinevirtual |
Implements tools::rroot::iro.
Definition at line 33 of file basket.
34 if(
void* p = cmp_cast<basket>(
this,a_class)) {
return p;}
◆ cast() [2/2]
virtual void* tools::rroot::basket::cast |
( |
const std::string & |
a_class | ) |
const |
|
inlinevirtual |
Implements tools::rroot::iro.
Definition at line 26 of file basket.
27 if(
void* p = cmp_cast<basket>(
this,a_class))
return p;
◆ copy()
virtual iro* tools::rroot::basket::copy |
( |
| ) |
const |
|
inlinevirtual |
◆ displacement()
int* tools::rroot::basket::displacement |
( |
| ) |
|
|
inline |
◆ entry_offset()
int* tools::rroot::basket::entry_offset |
( |
| ) |
|
|
inline |
◆ id_class()
static cid tools::rroot::basket::id_class |
( |
| ) |
|
|
inlinestatic |
◆ last()
uint32 tools::rroot::basket::last |
( |
| ) |
const |
|
inline |
◆ nev()
uint32 tools::rroot::basket::nev |
( |
| ) |
const |
|
inline |
◆ nev_buf_size()
uint32 tools::rroot::basket::nev_buf_size |
( |
| ) |
const |
|
inline |
◆ operator=()
basket& tools::rroot::basket::operator= |
( |
const basket & |
a_from | ) |
|
|
inline |
Definition at line 252 of file basket.
255 if(&a_from==
this)
return *
this;
258 m_nev = a_from.m_nev;
266 if(a_from.m_nev && a_from.m_entry_offset) {
269 m_out <<
"tools::rroot::basket::operator=() :"
270 <<
" can't alloc " << a_from.m_nev <<
"."
273 uint32 len = a_from.m_nev*
sizeof(int);
277 if(a_from.m_nev && a_from.m_displacement) {
280 m_out <<
"tools::rroot::basket::operator=() :"
281 <<
" can't alloc " << a_from.m_nev <<
"."
284 uint32 len = a_from.m_nev*
sizeof(int);
◆ read_offset_tables()
bool tools::rroot::basket::read_offset_tables |
( |
bool |
a_byte_swap | ) |
|
|
inline |
Definition at line 298 of file basket.
306 _buffer.set_offset(
m_last);
310 m_out <<
"tools::rroot::basket::read_offset_tables :"
311 <<
" read_array failed."
316 m_out <<
"tools::rroot::basket::read_offset_tables :"
317 <<
" m_entry_offset read len mismatch."
319 <<
" m_nev " <<
m_nev
326 if(_buffer.length()!=_buffer.size()) {
331 m_out <<
"tools::rroot::basket::read_offset_tables :"
332 <<
" readArray(2) failed."
337 m_out <<
"tools::rroot::basket::read_offset_tables :"
338 <<
" m_displacement read len mismatch."
340 <<
" m_nev " <<
m_nev
◆ s_class()
static const std::string& tools::rroot::basket::s_class |
( |
| ) |
|
|
inlinestatic |
Definition at line 21 of file basket.
22 static const std::string s_v(
"tools::rroot::basket");
◆ s_cls()
virtual const std::string& tools::rroot::basket::s_cls |
( |
| ) |
const |
|
inlinevirtual |
◆ stream()
virtual bool tools::rroot::basket::stream |
( |
buffer & |
a_buffer | ) |
|
|
inlinevirtual |
Implements tools::rroot::iro.
Definition at line 39 of file basket.
42 uint32 startpos = a_buffer.length();
44 if(!
parent::from_buffer(a_buffer.byte_swap(),a_buffer.eob(),a_buffer.pos(),a_buffer.verbose()))
return false;
49 if(!a_buffer.read_version(v))
return false;
50 if(!a_buffer.read(fBufferSize))
return false;
52 if(!a_buffer.read(
m_nev))
return false;
53 if(!a_buffer.read(
m_last))
return false;
55 if(!a_buffer.read(flag))
return false;
58 uint16 basket_key_length = a_buffer.length()-startpos;
77 if(!flag)
return true;
80 if( (flag!=1) &&(flag!=2) &&
81 (flag!=11)&&(flag!=12) &&
82 (flag!=41)&&(flag!=42) &&
83 (flag!=51)&&(flag!=52) ) {
84 m_out <<
"tools::rroot::basket::stream :"
85 <<
" bad flag " << (int)flag
94 m_out <<
"tools::rroot::basket::stream :"
95 <<
" m_nev_buf_size is zero." << std::endl;
99 m_out <<
"tools::rroot::basket::stream :"
100 <<
" m_nev>m_nev_buf_size !"
101 <<
" m_nev " <<
m_nev
114 m_out <<
"tools::rroot::basket::stream :"
115 <<
" m_entry_offset read len mismatch."
117 <<
" m_nev " <<
m_nev
138 m_out <<
"tools::rroot::basket::stream :"
139 <<
" m_displacement read len mismatch."
141 <<
" m_nev " <<
m_nev
150 if((flag==1)||(flag>10)) {
155 char* _buf =
new char[fBufferSize];
157 m_out <<
"tools::rroot::basket::stream :"
158 <<
" can't alloc " << fBufferSize << std::endl;
163 if(!a_buffer.read_fast_array(_buf,
m_last)) {
170 if(!a_buffer.read_array<
char>(fBufferSize,_buf,n)) {
◆ m_displacement
int* tools::rroot::basket::m_displacement |
|
protected |
◆ m_entry_offset
int* tools::rroot::basket::m_entry_offset |
|
protected |
◆ m_last
uint32 tools::rroot::basket::m_last |
|
protected |
◆ m_nev
uint32 tools::rroot::basket::m_nev |
|
protected |
◆ m_nev_buf_size
uint32 tools::rroot::basket::m_nev_buf_size |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/rroot/basket