Scalar_datatype (
Scalar_kind kind, size_t size )
Parameters
kind
size
class
PDI::Scalar_datatype
Scalar_datatype (
Scalar_kind kind, size_t size )
Scalar_datatype (
size_t align, Scalar_kind kind, size_t size )
Scalar_datatype (
size_t align, std::function< void *(void *, const void *)> copy, size_t dense_size, std::function< void(void *)> destroy, Scalar_kind kind, size_t size )
size_t
alignment (
)
size_t
buffersize (
)
Datatype_template_uptr
clone (
)
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 )
Datatype_uptr
evaluate (
Context & ctx )
Scalar_kind
kind (
)
bool
operator== (
const Datatype & other )
bool
simple (
)
Scalar_datatype (
Scalar_kind kind, size_t size )
kind
size
Scalar_datatype (
size_t align, Scalar_kind kind, size_t size )
align
kind
size
Scalar_datatype (
size_t align, std::function< void *(void *, const void *)> copy, size_t dense_size, std::function< void(void *)> destroy, Scalar_kind kind, size_t size )
align
copy
dense_size
destroy
kind
size
size_t
alignment (
)
the size in bytes
size_t
buffersize (
)
the size in bytes
Datatype_template_uptr
clone (
)
the dense type that is produced
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
Datatype_uptr
evaluate (
Context & ctx )
ctx
the evaluated type that is produced
Scalar_kind
kind (
)
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