CMS 3D CMS Logo

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
 
char * getBuffer ()
 
const char * getBuffer () const
 
std::size_t length () const
 
 OOTPileupCorrectionBuffer ()
 
 OOTPileupCorrectionBuffer (const char *c, std::size_t len)
 
 OOTPileupCorrectionBuffer (const std::string &s)
 
 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() [1/4]

OOTPileupCorrectionBuffer::OOTPileupCorrectionBuffer ( )
inline

Definition at line 17 of file OOTPileupCorrectionBuffer.h.

17 {}

◆ OOTPileupCorrectionBuffer() [2/4]

OOTPileupCorrectionBuffer::OOTPileupCorrectionBuffer ( const std::string &  s)
inlineexplicit

Definition at line 18 of file OOTPileupCorrectionBuffer.h.

18 : m_buffer(s) {}

◆ OOTPileupCorrectionBuffer() [3/4]

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

Definition at line 19 of file OOTPileupCorrectionBuffer.h.

19 : m_buffer(c, len) {}

◆ OOTPileupCorrectionBuffer() [4/4]

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

Definition at line 20 of file OOTPileupCorrectionBuffer.h.

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

Member Function Documentation

◆ empty()

bool OOTPileupCorrectionBuffer::empty ( ) const
inline

Definition at line 25 of file OOTPileupCorrectionBuffer.h.

25 { return m_buffer.empty(); }

References m_buffer.

◆ getBuffer() [1/2]

char* OOTPileupCorrectionBuffer::getBuffer ( )
inline

Definition at line 29 of file OOTPileupCorrectionBuffer.h.

29 { return m_buffer.empty() ? static_cast<char*>(nullptr) : &m_buffer[0]; }

References m_buffer.

◆ getBuffer() [2/2]

const char* OOTPileupCorrectionBuffer::getBuffer ( ) const
inline

Definition at line 26 of file OOTPileupCorrectionBuffer.h.

26 { return m_buffer.empty() ? static_cast<const char*>(nullptr) : &m_buffer[0]; }

References m_buffer.

◆ length()

std::size_t OOTPileupCorrectionBuffer::length ( ) const
inline

Definition at line 24 of file OOTPileupCorrectionBuffer.h.

24 { return m_buffer.size(); }

References m_buffer.

◆ serialize()

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

◆ setStr()

void OOTPileupCorrectionBuffer::setStr ( const std::string &  s)
inline

Definition at line 30 of file OOTPileupCorrectionBuffer.h.

30 { m_buffer = s; }

References m_buffer, and alignCSCRings::s.

◆ str()

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

Definition at line 23 of file OOTPileupCorrectionBuffer.h.

23 { return m_buffer; }

References m_buffer.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 35 of file OOTPileupCorrectionBuffer.h.

◆ cond::serialization::access

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

Definition at line 35 of file OOTPileupCorrectionBuffer.h.

Member Data Documentation

◆ m_buffer

std::string OOTPileupCorrectionBuffer::m_buffer
private

Definition at line 33 of file OOTPileupCorrectionBuffer.h.

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

alignCSCRings.s
s
Definition: alignCSCRings.py:92
OOTPileupCorrectionBuffer::m_buffer
std::string m_buffer
Definition: OOTPileupCorrectionBuffer.h:33
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46