lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::PoolEntry Class Reference

Header in front of each pool buffer: two words used as queue links while the buffer is free, the owning Pool and a tag. More...

#include <PoolEntry.hh>

Public Member Functions

 PoolEntry (Pool *)
 Record the owning pool and set the tag to 0xffffffff.
 
void * operator new (size_t, char *)
 Placement new: return p (the size is not used).
 

Static Public Member Functions

static PoolEntry * entry (void *buffer)
 Return the PoolEntry header that precedes the user buffer buffer.
 

Public Attributes

void * _opaque [2]
 Two words used as the Entry queue links while the buffer is on the free list of a GenericPool.
 
Pool * _pool
 Pool that owns the buffer; Pool::free(void*) returns it there.
 
unsigned long _tag
 Set to 0xffffffff by the constructor; not read elsewhere in psdaq.
 

Protected Member Functions

 PoolEntry ()
 

Detailed Description

Header in front of each pool buffer: two words used as queue links while the buffer is free, the owning Pool and a tag.

The user buffer starts right after it.

Constructor & Destructor Documentation

◆ PoolEntry() [1/2]

Pds::PoolEntry::PoolEntry ( Pds::Pool *  pool)
inline

Record the owning pool and set the tag to 0xffffffff.

◆ PoolEntry() [2/2]

Pds::PoolEntry::PoolEntry ( )
inlineprotected

Member Function Documentation

◆ entry()

Pds::PoolEntry * Pds::PoolEntry::entry ( void *  buffer)
inlinestatic

Return the PoolEntry header that precedes the user buffer buffer.

◆ operator new()

void * Pds::PoolEntry::operator new ( size_t  size,
char *  p 
)
inline

Placement new: return p (the size is not used).

Member Data Documentation

◆ _opaque

void* Pds::PoolEntry::_opaque[2]

Two words used as the Entry queue links while the buffer is on the free list of a GenericPool.

◆ _pool

Pool* Pds::PoolEntry::_pool

Pool that owns the buffer; Pool::free(void*) returns it there.

◆ _tag

unsigned long Pds::PoolEntry::_tag

Set to 0xffffffff by the constructor; not read elsewhere in psdaq.


The documentation for this class was generated from the following file: