inlib  1.2.0
Public Member Functions | Protected Member Functions | Protected Attributes
inlib::rroot::List Class Reference
Inheritance diagram for inlib::rroot::List:
Inheritance graph
[legend]
Collaboration diagram for inlib::rroot::List:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 List ()
virtual ~List ()
bool stream (buffer &a_buffer)

Protected Member Functions

 List (const List &a_from)
Listoperator= (const List &)
void _clear ()

Protected Attributes

std::string m_name

Detailed Description

Definition at line 152 of file streamers.


Constructor & Destructor Documentation

inlib::rroot::List::List ( ) [inline]

Definition at line 154 of file streamers.

{}
virtual inlib::rroot::List::~List ( ) [inline, virtual]

Definition at line 155 of file streamers.

{_clear();}
inlib::rroot::List::List ( const List a_from) [inline, protected]

Definition at line 157 of file streamers.

:std::vector<iro*>(a_from){}

Member Function Documentation

void inlib::rroot::List::_clear ( ) [inline, protected]

Definition at line 211 of file streamers.

                {
    //if(m_owner) {
      inlib::clear<iro>(*this);
    //} else {
    //  std::vector<T*>::clear();
    //}
  }
List& inlib::rroot::List::operator= ( const List ) [inline, protected]

Definition at line 158 of file streamers.

{return *this;}
bool inlib::rroot::List::stream ( buffer a_buffer) [inline]

Definition at line 160 of file streamers.

                               {
    // Stream all objects in the collection to or from the I/O buffer.
    _clear();

    short v;
    unsigned int s, c;
    if(!a_buffer.read_version(v,s,c)) return false;
   {uint32 id,bits;
    if(!Object_stream(a_buffer,id,bits)) return false;}
    if(!a_buffer.read(m_name)) return false;

    int nobjects;
    if(!a_buffer.read(nobjects)) return false;

    for (int i = 0; i < nobjects; i++) {
      dummy_fac fac(a_buffer.out());
      ifac::args args;
      iro* obj;
      if(!a_buffer.read_object(fac,args,obj)) {
        a_buffer.out() << "inlib::rroot::List::stream :"
                       << " can't read object."
                       << " index " << i
                       << " over " << nobjects << " objects."
                       << std::endl;
        _clear();
        return false;
      }
      unsigned char nch;
      if(!a_buffer.read(nch)) {
        _clear();
        return false;
      }
      if(nch) {
        char readOption[256];
        if(!a_buffer.read_fast_array(readOption,nch)) {
          _clear();
          return false;
        }
        readOption[nch] = 0;
      } else {
      }
      if(obj) push_back(obj);
    }

    if(!a_buffer.check_byte_count(s,c,"TList")) {
      _clear();
      return false;
    }
    return true;
  }

Member Data Documentation

std::string inlib::rroot::List::m_name [protected]

Definition at line 219 of file streamers.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines