test
CMS 3D CMS Logo

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

#include <OOTPileupCorrectionBuffer.h>

Public Member Functions

bool empty () const
 
const char * getBuffer () const
 
char * getBuffer ()
 
std::size_t length () const
 
 OOTPileupCorrectionBuffer ()
 
 OOTPileupCorrectionBuffer (const std::string &s)
 
 OOTPileupCorrectionBuffer (const char *c, std::size_t len)
 
 OOTPileupCorrectionBuffer (std::size_t len)
 
void setStr (const std::string &s)
 
const std::string & str () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::string m_buffer
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 14 of file OOTPileupCorrectionBuffer.h.

Constructor & Destructor Documentation

OOTPileupCorrectionBuffer::OOTPileupCorrectionBuffer ( )
inline

Definition at line 18 of file OOTPileupCorrectionBuffer.h.

18 {}
OOTPileupCorrectionBuffer::OOTPileupCorrectionBuffer ( const std::string &  s)
inlineexplicit

Definition at line 19 of file OOTPileupCorrectionBuffer.h.

OOTPileupCorrectionBuffer::OOTPileupCorrectionBuffer ( const char *  c,
std::size_t  len 
)
inline

Definition at line 21 of file OOTPileupCorrectionBuffer.h.

OOTPileupCorrectionBuffer::OOTPileupCorrectionBuffer ( std::size_t  len)
inlineexplicit

Definition at line 23 of file OOTPileupCorrectionBuffer.h.

24  : m_buffer(len, '\0') {}

Member Function Documentation

bool OOTPileupCorrectionBuffer::empty ( ) const
inline
const char* OOTPileupCorrectionBuffer::getBuffer ( ) const
inline

Definition at line 30 of file OOTPileupCorrectionBuffer.h.

References m_buffer.

31  {return m_buffer.empty() ? static_cast<const char*>(0) : &m_buffer[0];}
char* OOTPileupCorrectionBuffer::getBuffer ( )
inline

Definition at line 34 of file OOTPileupCorrectionBuffer.h.

References m_buffer.

35  {return m_buffer.empty() ? static_cast<char*>(0) : &m_buffer[0];}
std::size_t OOTPileupCorrectionBuffer::length ( ) const
inline
template<class Archive >
void OOTPileupCorrectionBuffer::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void OOTPileupCorrectionBuffer::setStr ( const std::string &  s)
inline

Definition at line 36 of file OOTPileupCorrectionBuffer.h.

References m_buffer, and alignCSCRings::s.

const std::string& OOTPileupCorrectionBuffer::str ( ) const
inline

Definition at line 27 of file OOTPileupCorrectionBuffer.h.

References m_buffer.

27 {return m_buffer;}

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 41 of file OOTPileupCorrectionBuffer.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 41 of file OOTPileupCorrectionBuffer.h.

Member Data Documentation

std::string OOTPileupCorrectionBuffer::m_buffer
private

Definition at line 39 of file OOTPileupCorrectionBuffer.h.

Referenced by empty(), getBuffer(), length(), setStr(), and str().