ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
UShortDbArray Struct Reference

#include <DbArray.h>

Inheritance diagram for UShortDbArray:
Collaboration diagram for UShortDbArray:

Public Member Functions

 UShortDbArray ()
 
virtual ~UShortDbArray ()
 
void allocate (int siz, bool do_delete)
 Allocate an object buffer. More...
 
void release (bool do_delete)
 Release data buffer with or without delete. More...
 

Public Attributes

int m_size
 Size of buffer. More...
 
unsigned short * m_buffer
 Buffer with object content. More...
 

Detailed Description

Definition at line 58 of file DbArray.h.

Constructor & Destructor Documentation

◆ UShortDbArray()

UShortDbArray::UShortDbArray ( )
inline

Definition at line 58 of file DbArray.h.

58 : public pool::DbArray<unsigned short> { public: UShortDbArray() {}; virtual ~UShortDbArray() {} };

◆ ~UShortDbArray()

virtual UShortDbArray::~UShortDbArray ( )
inlinevirtual

Definition at line 58 of file DbArray.h.

58 : public pool::DbArray<unsigned short> { public: UShortDbArray() {}; virtual ~UShortDbArray() {} };

Member Function Documentation

◆ allocate()

void pool::DbArray< unsigned short >::allocate ( int  siz,
bool  do_delete 
)
inlineinherited

Allocate an object buffer.

Definition at line 41 of file DbArray.h.

41  {
42  if ( do_delete ) delete [] m_buffer;
43  m_buffer = new T[siz];
44  m_size = siz;
45  }

◆ release()

void pool::DbArray< unsigned short >::release ( bool  do_delete)
inlineinherited

Release data buffer with or without delete.

Definition at line 47 of file DbArray.h.

47  {
48  if ( do_delete ) delete [] m_buffer;
49  m_buffer = 0;
50  m_size = 0;
51  }

Member Data Documentation

◆ m_buffer

unsigned short * pool::DbArray< unsigned short >::m_buffer
inherited

Buffer with object content.

Definition at line 34 of file DbArray.h.

◆ m_size

int pool::DbArray< unsigned short >::m_size
inherited

Size of buffer.

Definition at line 32 of file DbArray.h.


The documentation for this struct was generated from the following file:
UShortDbArray::~UShortDbArray
virtual ~UShortDbArray()
Definition: DbArray.h:58
pool::DbArray< unsigned short >::m_size
int m_size
Size of buffer.
Definition: DbArray.h:32
pool::DbArray< unsigned short >
UShortDbArray::UShortDbArray
UShortDbArray()
Definition: DbArray.h:58
pool::DbArray< unsigned short >::m_buffer
unsigned short * m_buffer
Buffer with object content.
Definition: DbArray.h:34
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35