g4tools  5.4.0
Public Member Functions | Protected Types | Protected Attributes | List of all members
tools::wroot::streamer_STL Class Reference
Inheritance diagram for tools::wroot::streamer_STL:
Inheritance graph
[legend]
Collaboration diagram for tools::wroot::streamer_STL:
Collaboration graph
[legend]

Public Member Functions

virtual const std::string & store_cls () const
 
virtual bool stream (buffer &aBuffer) const
 
virtual streamer_elementcopy () const
 
 streamer_STL (const std::string &aName, const std::string &aTitle, int aOffset, streamer__info::Type aType, const std::string &aTypeName)
 
virtual ~streamer_STL ()
 
 streamer_STL (const streamer_STL &a_from)
 
streamer_STLoperator= (const streamer_STL &a_from)
 
- Public Member Functions inherited from tools::wroot::streamer_element
virtual void out (std::ostream &aOut) const
 
 streamer_element (const std::string &aName, const std::string &aTitle, int aOffset, int aType, const std::string &aTypeName)
 
virtual ~streamer_element ()
 
virtual void setArrayDimension (int aDimension)
 
virtual void setMaxIndex (int aDimension, int aMaximum)
 
virtual void fullName (std::string &a_s) const
 
- Public Member Functions inherited from tools::wroot::ibo
virtual ~ibo ()
 

Protected Types

enum  ESTLtype {
  kSTL = 300, kSTLstring =365, kSTLvector = 1, kSTLlist = 2,
  kSTLdeque = 3, kSTLmap = 4, kSTLset = 5, kSTLmultimap =6,
  kSTLmultiset =7
}
 

Protected Attributes

int fSTLtype
 
int fCtype
 
- Protected Attributes inherited from tools::wroot::streamer_element
std::string fName
 
std::string fTitle
 
int fType
 
int fSize
 
int fArrayLength
 
int fArrayDim
 
int fMaxIndex [5]
 
int fOffset
 
std::string fTypeName
 element offset in class More...
 

Additional Inherited Members

- Protected Member Functions inherited from tools::wroot::streamer_element
 streamer_element (const streamer_element &a_from)
 
streamer_elementoperator= (const streamer_element &a_from)
 

Detailed Description

Definition at line 534 of file element.

Member Enumeration Documentation

◆ ESTLtype

Enumerator
kSTL 
kSTLstring 
kSTLvector 
kSTLlist 
kSTLdeque 
kSTLmap 
kSTLset 
kSTLmultimap 
kSTLmultiset 

Definition at line 552 of file element.

552  { kSTL = 300, kSTLstring =365, kSTLvector = 1,
553  kSTLlist = 2, kSTLdeque = 3, kSTLmap = 4,
554  kSTLset = 5, kSTLmultimap=6, kSTLmultiset=7};

Constructor & Destructor Documentation

◆ streamer_STL() [1/2]

tools::wroot::streamer_STL::streamer_STL ( const std::string &  aName,
const std::string &  aTitle,
int  aOffset,
streamer__info::Type  aType,
const std::string &  aTypeName 
)
inline

Definition at line 563 of file element.

567  :streamer_element(aName,aTitle,aOffset,kSTL,aTypeName){
569  fCtype = aType;
570  }

◆ ~streamer_STL()

virtual tools::wroot::streamer_STL::~streamer_STL ( )
inlinevirtual

Definition at line 571 of file element.

571 {}

◆ streamer_STL() [2/2]

tools::wroot::streamer_STL::streamer_STL ( const streamer_STL a_from)
inline

Definition at line 573 of file element.

574  :ibo(a_from),streamer_element(a_from)
575  ,fSTLtype(a_from.fSTLtype)
576  ,fCtype(a_from.fCtype)
577  {}

Member Function Documentation

◆ copy()

virtual streamer_element* tools::wroot::streamer_STL::copy ( ) const
inlinevirtual

Implements tools::wroot::streamer_element.

Definition at line 550 of file element.

550 {return new streamer_STL(*this);}

◆ operator=()

streamer_STL& tools::wroot::streamer_STL::operator= ( const streamer_STL a_from)
inline

Definition at line 578 of file element.

578  {
580  fSTLtype = a_from.fSTLtype;
581  fCtype = a_from.fCtype;
582  return *this;
583  }

◆ store_cls()

virtual const std::string& tools::wroot::streamer_STL::store_cls ( ) const
inlinevirtual

Reimplemented from tools::wroot::streamer_element.

Definition at line 536 of file element.

536  {
537  static const std::string s_v("TStreamerSTL");
538  return s_v;
539  }

◆ stream()

virtual bool tools::wroot::streamer_STL::stream ( buffer aBuffer) const
inlinevirtual

Reimplemented from tools::wroot::streamer_element.

Definition at line 540 of file element.

540  {
541  unsigned int c;
542  if(!aBuffer.write_version(2,c)) return false;
543  if(!streamer_element::stream(aBuffer)) return false;
544  if(!aBuffer.write(fSTLtype)) return false;
545  if(!aBuffer.write(fCtype)) return false;
546  if(!aBuffer.set_byte_count(c)) return false;
547  return true;
548  }

Member Data Documentation

◆ fCtype

int tools::wroot::streamer_STL::fCtype
protected

Definition at line 586 of file element.

◆ fSTLtype

int tools::wroot::streamer_STL::fSTLtype
protected

Definition at line 585 of file element.


The documentation for this class was generated from the following file:
tools::wroot::streamer_STL::kSTLmap
@ kSTLmap
Definition: element:553
tools::wroot::streamer_STL::kSTL
@ kSTL
Definition: element:552
tools::wroot::streamer_element::stream
virtual bool stream(buffer &aBuffer) const
Definition: element:64
tools::wroot::streamer_STL::kSTLset
@ kSTLset
Definition: element:554
tools::wroot::streamer_STL::kSTLstring
@ kSTLstring
Definition: element:552
tools::wroot::streamer_STL::streamer_STL
streamer_STL(const std::string &aName, const std::string &aTitle, int aOffset, streamer__info::Type aType, const std::string &aTypeName)
Definition: element:563
tools::wroot::streamer_STL::kSTLvector
@ kSTLvector
Definition: element:552
tools::wroot::streamer_STL::kSTLmultiset
@ kSTLmultiset
Definition: element:554
tools::wroot::streamer_STL::kSTLmultimap
@ kSTLmultimap
Definition: element:554
tools::wroot::streamer_element::streamer_element
streamer_element(const std::string &aName, const std::string &aTitle, int aOffset, int aType, const std::string &aTypeName)
Definition: element:88
tools::wroot::streamer_STL::kSTLlist
@ kSTLlist
Definition: element:553
tools::wroot::streamer_STL::fSTLtype
int fSTLtype
Definition: element:585
tools::wroot::streamer_element::operator=
streamer_element & operator=(const streamer_element &a_from)
Definition: element:116
tools::wroot::streamer_STL::fCtype
int fCtype
Definition: element:586
tools::wroot::streamer_STL::kSTLdeque
@ kSTLdeque
Definition: element:553