2 #ifndef GAUDIKERNEL_OBJECTLIST_H
3 #define GAUDIKERNEL_OBJECTLIST_H
42 typedef typename std::list<TYPE*>::value_type
value_type;
47 typedef typename std::list<TYPE*>::iterator
iterator;
54 typedef typename std::vector<TYPE*>::_Tptr
pointer;
57 typedef typename std::vector<TYPE*>::pointer
pointer;
166 if( 0 != value->parent() ) {
169 value->setParent(
this);
194 position->setParent (0);
206 for( iter =
begin(); iter !=
end(); iter++, idx++ ) {
207 if( value == *iter ) {
211 if(
end() == iter ) {
219 (*iter)->setParent (0);
228 value->setParent(
this);
235 if( 0 != (*position)->parent() ) {
238 (*position)->setParent (0);
251 (*iter)->setParent (0);
255 m_list.erase(first, last);
268 for( iter =
begin(); iter !=
end(); iter++ ) {
281 for( iter =
begin(); iter !=
end(); iter++ ) {
292 s <<
"class ObjectList : size = "
298 s <<
"\nContents of the STL list :";
301 for( iter =
m_list.begin(); iter !=
m_list.end(); iter++, count++ ) {
305 <<
" of object of type "<< **iter;
318 #endif // GAUDI_OBJECTLIST_H