Project
Loading...
Searching...
No Matches
o2::framework::DataChunk Class Reference

#include <DataChunk.h>

Inherits std::vector< char, o2::pmr::polymorphic_allocator< char > >.

Public Member Functions

 DataChunk (size_t size, const o2::pmr::polymorphic_allocator< char > &allocator)
 
 DataChunk (const DataChunk &)=delete
 
DataChunkoperator= (const DataChunk &)=delete
 
 DataChunk (DataChunk &&)=default
 
DataChunkoperator= (DataChunk &&)=default
 

Detailed Description

buffer used with DPL's DataAllocator DataChunk derives from std::vector with polymorphic allocator and forbids copying, the underlying buffer is of type char and is through DPL and polymorphic memory resource directly allocated in the message memory. Since MessageContext returns the object by reference, the forbidden copy and assignment makes sure that the code can not accidentally use a copy instead reference.

Definition at line 26 of file DataChunk.h.

Constructor & Destructor Documentation

◆ DataChunk() [1/3]

o2::framework::DataChunk::DataChunk ( size_t  size,
const o2::pmr::polymorphic_allocator< char > &  allocator 
)
inline

Definition at line 37 of file DataChunk.h.

◆ DataChunk() [2/3]

o2::framework::DataChunk::DataChunk ( const DataChunk )
delete

◆ DataChunk() [3/3]

o2::framework::DataChunk::DataChunk ( DataChunk &&  )
default

Member Function Documentation

◆ operator=() [1/2]

DataChunk & o2::framework::DataChunk::operator= ( const DataChunk )
delete

◆ operator=() [2/2]

DataChunk & o2::framework::DataChunk::operator= ( DataChunk &&  )
default

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