ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
TPIntegerVectorStorage_p1 Class Reference

#include <TPIntegerVector_p1.h>

Collaboration diagram for TPIntegerVectorStorage_p1:

Public Types

typedef unsigned short position_type
 

Public Member Functions

 TPIntegerVectorStorage_p1 ()
 
size_t size () const
 
void grow ()
 
TPIntegerVector_p1 operator[] (int idx)
 
TPIntegerVector_p1 back ()
 
void reserve (size_t s)
 

Protected Attributes

std::vector< TPIntegerVector_p1::value_typem_data
 
std::vector< position_typem_endPos
 

Friends

class TPIntegerVector_p1
 

Detailed Description

Definition at line 70 of file TPIntegerVector_p1.h.

Member Typedef Documentation

◆ position_type

Definition at line 77 of file TPIntegerVector_p1.h.

Constructor & Destructor Documentation

◆ TPIntegerVectorStorage_p1()

TPIntegerVectorStorage_p1::TPIntegerVectorStorage_p1 ( )
inline

Definition at line 75 of file TPIntegerVector_p1.h.

75 {}

Member Function Documentation

◆ back()

TPIntegerVector_p1 TPIntegerVectorStorage_p1::back ( )
inline

Definition at line 92 of file TPIntegerVector_p1.h.

92  {
93  return TPIntegerVector_p1( this, size()-1 );
94  }

◆ grow()

void TPIntegerVectorStorage_p1::grow ( )
inline

Definition at line 83 of file TPIntegerVector_p1.h.

83  {
84  if( !size() ) m_endPos.push_back(0);
85  else m_endPos.push_back( m_endPos.back() );
86  }

◆ operator[]()

TPIntegerVector_p1 TPIntegerVectorStorage_p1::operator[] ( int  idx)
inline

Definition at line 88 of file TPIntegerVector_p1.h.

88  {
89  return TPIntegerVector_p1( this, idx );
90  }

◆ reserve()

void TPIntegerVectorStorage_p1::reserve ( size_t  s)
inline

Definition at line 96 of file TPIntegerVector_p1.h.

96  {
97  m_endPos.reserve(s);
98  }

◆ size()

size_t TPIntegerVectorStorage_p1::size ( ) const
inline

Definition at line 79 of file TPIntegerVector_p1.h.

79  {
80  return m_endPos.size();
81  }

Friends And Related Function Documentation

◆ TPIntegerVector_p1

friend class TPIntegerVector_p1
friend

Definition at line 73 of file TPIntegerVector_p1.h.

Member Data Documentation

◆ m_data

std::vector< TPIntegerVector_p1::value_type > TPIntegerVectorStorage_p1::m_data
protected

Definition at line 101 of file TPIntegerVector_p1.h.

◆ m_endPos

std::vector<position_type> TPIntegerVectorStorage_p1::m_endPos
protected

Definition at line 102 of file TPIntegerVector_p1.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TPIntegerVectorStorage_p1::size
size_t size() const
Definition: TPIntegerVector_p1.h:79
TPIntegerVectorStorage_p1::TPIntegerVector_p1
friend class TPIntegerVector_p1
Definition: TPIntegerVector_p1.h:73
TPIntegerVectorStorage_p1::m_endPos
std::vector< position_type > m_endPos
Definition: TPIntegerVector_p1.h:102
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69