size_t
alignment (
)
Description
Result
the size in bytes
class
PDI::Datatype
It represents the memory layout of data and supports some simple operations on it:
struct Accessor_base
size_t
alignment (
)
size_t
buffersize (
)
Datatype_uptr
clone_type (
)
void *
data_from_dense_copy (
const void * from, void * to )
void *
data_to_dense_copy (
const void * from, void * to )
size_t
datasize (
)
std::string
debug_string (
)
bool
dense (
)
Datatype_uptr
densify (
)
void
destroy_data (
void * ptr )
bool
operator!= (
const Datatype & other )
bool
operator== (
const Datatype & other )
bool
simple (
)
std::pair< void *, Datatype_uptr >
subaccess (
const Accessor_base & accessor, void * from )
std::pair< void *, Datatype_uptr >
subaccess (
const std::vector< std::unique_ptr< Accessor_base >> & accessors, void * from )
std::pair< void *, Datatype_uptr >
subaccess_by_iterators (
void * from, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_begin, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_end )
~Datatype (
)
size_t
alignment (
)
the size in bytes
size_t
buffersize (
)
the size in bytes
Datatype_uptr
clone_type (
)
the dense type that is produced
void *
data_from_dense_copy (
const void * from, void * to )
from
to
updated ‘to’ pointer
void *
data_to_dense_copy (
const void * from, void * to )
from
to
updated ‘to’ pointer
size_t
datasize (
)
the size in bytes
std::string
debug_string (
)
the datatype yaml representation as a string
bool
dense (
)
whether the datatype is dense
Datatype_uptr
densify (
)
the type that is produced
void
destroy_data (
void * ptr )
ptr
bool
operator!= (
const Datatype & other )
other
true if the Datatype’s are different
bool
operator== (
const Datatype & other )
other
true if the Datatype’s are equal
bool
simple (
)
true if data has trivial copier and destroyer, false otherwise
std::pair< void *, Datatype_uptr >
subaccess (
const Accessor_base & accessor, void * from )
accessor
from
pointer with offset and new datatype
std::pair< void *, Datatype_uptr >
subaccess (
const std::vector< std::unique_ptr< Accessor_base >> & accessors, void * from )
accessors
from
pointer with offset and new datatype
std::pair< void *, Datatype_uptr >
subaccess_by_iterators (
void * from, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_begin, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_end )
from
remaining_begin
remaining_end
pointer moved by offset and new datatype
~Datatype (
)