HDK
|
#include <DataType.h>
Public Member Functions | |
DataType () | |
DataType (PlainOldDataType iPod, uint8_t iExtent=1) | |
PlainOldDataType | getPod () const |
void | setPod (PlainOldDataType iPod) |
uint8_t | getExtent () const |
void | setExtent (uint8_t iExtent) |
size_t | getNumBytes () const |
bool | operator== (const DataType &b) const |
bool | operator< (const DataType &b) const |
The DataType class is a description of how an element of a sample in a Scalar or an Array property is stored. It does not contain an interpretation this is left to the metadata of the properties themselves.
Definition at line 50 of file DataType.h.
|
inline |
Default constructor Sets the DataType to an unknown DataType with extent 0. This is obviously an invalid storage description, and is used in cases where we need to indicated that a DataType could not be determined.
Definition at line 59 of file DataType.h.
|
inlineexplicit |
Explicit constructor. Takes a pod and an extent. By default the extent is 1. For String and Wstring types, the extent must be 1.
Definition at line 66 of file DataType.h.
|
inline |
Return the 8-bit extent ...
Definition at line 82 of file DataType.h.
|
inline |
Returns the number of bytes occupied by a single datum. (element) The assumption that each element has a fixed size in memory is a core assumption in Alembic.
String DataTypes are a troublesome problem. A single string datum does not have a fixed number of bytes associated with it. So we are returning, here, the size of the std::string and std::wstring datatypes, respectively.
Definition at line 96 of file DataType.h.
|
inline |
Default copy constructor used. Default assignment operator used. Return the PlainOldDataType enum ...
Definition at line 74 of file DataType.h.
|
inline |
Returns whether one datatype is lexigraphically "less" than another - this has meaning only so that DataType instances can be meaningfully sorted.
Definition at line 113 of file DataType.h.
|
inline |
Equality operator ...
Definition at line 103 of file DataType.h.
|
inline |
Set the 8-bit extent ...
Definition at line 86 of file DataType.h.
|
inline |
Set the PlainOldDataType ...
Definition at line 78 of file DataType.h.