|
Alembic 1.8.11
|
#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.
|
inline |
|
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.
|
inline |
Return the 8-bit extent ...
|
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.
|
inline |
Default copy constructor used. Default assignment operator used.
Return the PlainOldDataType enum ...
|
inline |
Returns whether one datatype is lexigraphically "less" than another - this has meaning only so that DataType instances can be meaningfully sorted.
|
inline |
Equality operator ...
|
inline |
Set the 8-bit extent ...
|
inline |
Set the PlainOldDataType ...