Base class for columns whose on-storage representation is little-endian.
The implementation of Pack
and Unpack
takes care of byteswap if the memory page is big-endian.
Definition at line 204 of file RColumnElement.hxx.
Public Member Functions | |
RColumnElementLE (void *rawContent, std::size_t size) | |
void | Pack (void *dst, void *src, std::size_t count) const final |
If the on-storage layout and the in-memory layout differ, packing creates an on-disk page from an in-memory page. More... | |
void | Unpack (void *dst, void *src, std::size_t count) const final |
If the on-storage layout and the in-memory layout differ, unpacking creates a memory page from an on-storage page. More... | |
![]() | |
RColumnElementBase () | |
RColumnElementBase (const RColumnElementBase &elemArray, std::size_t at) | |
RColumnElementBase (const RColumnElementBase &other)=default | |
RColumnElementBase (RColumnElementBase &&other)=default | |
RColumnElementBase (void *rawContent, std::size_t size) | |
virtual | ~RColumnElementBase ()=default |
virtual std::size_t | GetBitsOnStorage () const |
std::size_t | GetPackedSize (std::size_t nElements) const |
void * | GetRawContent () const |
std::size_t | GetSize () const |
virtual bool | IsMappable () const |
Derived, typed classes tell whether the on-storage layout is bitwise identical to the memory layout. More... | |
RColumnElementBase & | operator= (const RColumnElementBase &other)=delete |
RColumnElementBase & | operator= (RColumnElementBase &&other)=default |
virtual void | Pack (void *destination, void *source, std::size_t count) const |
If the on-storage layout and the in-memory layout differ, packing creates an on-disk page from an in-memory page. More... | |
void | ReadFrom (void *source, std::size_t count) |
Set the column element or an array of elements from the memory location source. More... | |
virtual void | Unpack (void *destination, void *source, std::size_t count) const |
If the on-storage layout and the in-memory layout differ, unpacking creates a memory page from an on-storage page. More... | |
void | WriteTo (void *destination, std::size_t count) const |
Write one or multiple column elements into destination. More... | |
Static Public Attributes | |
static constexpr bool | kIsMappable = ( 0 == 1) |
Additional Inherited Members | |
![]() | |
template<typename CppT = void> | |
static std::unique_ptr< RColumnElementBase > | Generate (EColumnType type) |
If CppT == void, use the default C++ type for the given column type. More... | |
template<> | |
std::unique_ptr< RColumnElementBase > | Generate (EColumnType type) |
template<> | |
std::unique_ptr< ROOT::Experimental::Detail::RColumnElementBase > | Generate (EColumnType type) |
static std::size_t | GetBitsOnStorage (EColumnType type) |
static std::string | GetTypeName (EColumnType type) |
![]() | |
void * | fRawContent |
Points to valid C++ data, either a single value or an array of values. More... | |
std::size_t | fSize |
Size of the C++ value pointed to by fRawContent (not necessarily equal to the on-disk element size) More... | |
#include <ROOT/RColumnElement.hxx>
|
inline |
Definition at line 207 of file RColumnElement.hxx.
|
inlinefinalvirtual |
If the on-storage layout and the in-memory layout differ, packing creates an on-disk page from an in-memory page.
Reimplemented from ROOT::Experimental::Detail::RColumnElementBase.
Definition at line 209 of file RColumnElement.hxx.
|
inlinefinalvirtual |
If the on-storage layout and the in-memory layout differ, unpacking creates a memory page from an on-storage page.
Reimplemented from ROOT::Experimental::Detail::RColumnElementBase.
Definition at line 217 of file RColumnElement.hxx.
|
staticconstexpr |
Definition at line 206 of file RColumnElement.hxx.