Definition at line 20 of file obj_list.
◆ obj_list() [1/2]
tools::rroot::obj_list::obj_list |
( |
ifac & |
a_fac | ) |
|
|
inline |
◆ ~obj_list()
virtual tools::rroot::obj_list::~obj_list |
( |
| ) |
|
|
inlinevirtual |
◆ obj_list() [2/2]
tools::rroot::obj_list::obj_list |
( |
const obj_list & |
a_from | ) |
|
|
inline |
Definition at line 113 of file obj_list.
119 mem::increment(
s_class().c_str());
122 parent::push_back((*it)->copy());
◆ add_object()
void tools::rroot::obj_list::add_object |
( |
iro * |
a_obj | ) |
|
|
inline |
Definition at line 146 of file obj_list.
147 parent::push_back(a_obj);
◆ begin() [1/2]
parent::iterator tools::rroot::obj_list::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
parent::const_iterator tools::rroot::obj_list::begin |
( |
| ) |
const |
|
inline |
◆ cast() [1/2]
virtual void* tools::rroot::obj_list::cast |
( |
cid |
a_class | ) |
const |
|
inlinevirtual |
◆ cast() [2/2]
virtual void* tools::rroot::obj_list::cast |
( |
const std::string & |
a_class | ) |
const |
|
inlinevirtual |
◆ cleanup()
void tools::rroot::obj_list::cleanup |
( |
| ) |
|
|
inline |
◆ copy()
virtual iro* tools::rroot::obj_list::copy |
( |
| ) |
const |
|
inlinevirtual |
◆ empty()
bool tools::rroot::obj_list::empty |
( |
| ) |
const |
|
inline |
Definition at line 144 of file obj_list.
144 {
return parent::empty();}
◆ end() [1/2]
parent::iterator tools::rroot::obj_list::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
parent::const_iterator tools::rroot::obj_list::end |
( |
| ) |
const |
|
inline |
◆ get_entry()
template<class T >
T* tools::rroot::obj_list::get_entry |
( |
std::ostream & |
a_out, |
|
|
size_t |
a_index |
|
) |
| const |
|
inline |
Definition at line 152 of file obj_list.
153 if(a_index>=
size())
return 0;
154 iro* _obj = parent::operator[](a_index);
156 T* od = id_cast<iro,T>(*_obj);
158 a_out <<
"tools::rroot::obj_list::get_entry :"
159 <<
" object of class " << sout(_obj->s_cls()) <<
" not a " << T::s_class() << std::endl;
◆ id_class()
static cid tools::rroot::obj_list::id_class |
( |
| ) |
|
|
inlinestatic |
◆ operator=()
Definition at line 126 of file obj_list.
127 if(&a_from==
this)
return *
this;
132 parent::push_back((*it)->copy());
◆ s_class()
static const std::string& tools::rroot::obj_list::s_class |
( |
| ) |
|
|
inlinestatic |
Definition at line 28 of file obj_list.
29 static const std::string s_v(
"tools::rroot::obj_list");
◆ s_cls()
virtual const std::string& tools::rroot::obj_list::s_cls |
( |
| ) |
const |
|
inlinevirtual |
◆ s_store_class()
static const std::string& tools::rroot::obj_list::s_store_class |
( |
| ) |
|
|
inlinestatic |
Definition at line 23 of file obj_list.
24 static const std::string s_v(
"TList");
◆ safe_clear()
void tools::rroot::obj_list::safe_clear |
( |
| ) |
|
|
inline |
Definition at line 165 of file obj_list.
166 typedef parent::iterator it_t;
167 typedef std::vector<bool>::iterator itb_t;
168 while(!parent::empty()) {
170 itb_t itb =
m_owns.begin();
175 if(own)
delete entry;
◆ size()
parent::size_type tools::rroot::obj_list::size |
( |
| ) |
const |
|
inline |
◆ stream()
virtual bool tools::rroot::obj_list::stream |
( |
buffer & |
a_buffer | ) |
|
|
inlinevirtual |
Implements tools::rroot::iro.
Definition at line 47 of file obj_list.
52 if(!a_buffer.read_version(v,s,c))
return false;
60 if(!a_buffer.read(name))
return false;
62 if(!a_buffer.read(nobjects))
return false;
68 for (
int i=0;i<nobjects;i++) {
73 if(!a_buffer.read_object(
m_fac,args,obj,created)){
74 a_buffer.out() <<
"tools::rroot::obj_list::stream : can't read object." << std::endl;
79 if(!a_buffer.read(nch))
return false;
82 if(!a_buffer.read_fast_array(readOption,nch))
return false;
87 parent::push_back(obj);
90 parent::push_back(obj);
◆ m_fac
ifac& tools::rroot::obj_list::m_fac |
|
protected |
◆ m_owns
std::vector<bool> tools::rroot::obj_list::m_owns |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/rroot/obj_list