CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
LHERunInfoProduct::Header Class Reference

#include <LHERunInfoProduct.h>

Inheritance diagram for LHERunInfoProduct::Header:
lhef::LHERunInfo::Header

Public Types

typedef std::vector
< std::string >
::const_iterator 
const_iterator
 
typedef std::vector
< std::string >::size_type 
size_type
 

Public Member Functions

void addLine (const std::string &line)
 
const_iterator begin () const
 
const_iterator end () const
 
 Header ()
 
 Header (const std::string &tag)
 
bool operator!= (const Header &other) const
 
bool operator== (const Header &other) const
 
size_type size () const
 
const std::string & tag () const
 
 ~Header ()
 

Private Attributes

std::vector< std::string > lines_
 
std::string tag_
 

Detailed Description

Definition at line 16 of file LHERunInfoProduct.h.

Member Typedef Documentation

typedef std::vector<std::string>::const_iterator LHERunInfoProduct::Header::const_iterator

Definition at line 18 of file LHERunInfoProduct.h.

typedef std::vector<std::string>::size_type LHERunInfoProduct::Header::size_type

Definition at line 19 of file LHERunInfoProduct.h.

Constructor & Destructor Documentation

LHERunInfoProduct::Header::Header ( )
inline

Definition at line 21 of file LHERunInfoProduct.h.

21 {}
LHERunInfoProduct::Header::Header ( const std::string &  tag)
inline

Definition at line 22 of file LHERunInfoProduct.h.

22 : tag_(tag) {}
const std::string & tag() const
LHERunInfoProduct::Header::~Header ( )
inline

Definition at line 23 of file LHERunInfoProduct.h.

23 {}

Member Function Documentation

void LHERunInfoProduct::Header::addLine ( const std::string &  line)
inline

Definition at line 25 of file LHERunInfoProduct.h.

References lines_.

Referenced by AlpgenSource::AlpgenSource(), AlpgenSource::beginRun(), MCatNLOSource::beginRun(), and lhef::fillHeader().

25 { lines_.push_back(line); }
std::vector< std::string > lines_
const_iterator LHERunInfoProduct::Header::begin ( void  ) const
inline

Definition at line 30 of file LHERunInfoProduct.h.

References lines_.

Referenced by AlpgenSource::AlpgenSource().

30 { return lines_.begin(); }
std::vector< std::string > lines_
const_iterator LHERunInfoProduct::Header::end ( void  ) const
inline

Definition at line 31 of file LHERunInfoProduct.h.

References lines_.

Referenced by AlpgenSource::AlpgenSource().

31 { return lines_.end(); }
std::vector< std::string > lines_
bool LHERunInfoProduct::Header::operator!= ( const Header other) const
inline

Definition at line 35 of file LHERunInfoProduct.h.

36  { return !(*this == other); }
bool LHERunInfoProduct::Header::operator== ( const Header other) const
inline

Definition at line 33 of file LHERunInfoProduct.h.

References lines_, and tag_.

34  { return tag_ == other.tag_ && lines_ == other.lines_; }
std::vector< std::string > lines_
size_type LHERunInfoProduct::Header::size ( void  ) const
inline

Definition at line 29 of file LHERunInfoProduct.h.

References lines_.

29 { return lines_.size(); }
std::vector< std::string > lines_
const std::string& LHERunInfoProduct::Header::tag ( ) const
inline

Definition at line 27 of file LHERunInfoProduct.h.

References tag_.

27 { return tag_; }

Member Data Documentation

std::vector<std::string> LHERunInfoProduct::Header::lines_
private

Definition at line 40 of file LHERunInfoProduct.h.

Referenced by addLine(), begin(), end(), operator==(), and size().

std::string LHERunInfoProduct::Header::tag_
private

Definition at line 39 of file LHERunInfoProduct.h.

Referenced by operator==(), and tag().