|
HDK
|
Store a buffer of data that can be optionally used during reading for faster delayed-load I/O performance. More...
#include <DelayedLoadMetadata.h>
Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata:Public Types | |
| using | Ptr = SharedPtr< DelayedLoadMetadata > |
| using | ConstPtr = SharedPtr< const DelayedLoadMetadata > |
| using | MaskType = int8_t |
| using | CompressedSizeType = int64_t |
Public Types inherited from openvdb::OPENVDB_VERSION_NAME::Metadata | |
| using | Ptr = SharedPtr< Metadata > |
| using | ConstPtr = SharedPtr< const Metadata > |
Public Member Functions | |
| DelayedLoadMetadata ()=default | |
| DelayedLoadMetadata (const DelayedLoadMetadata &other) | |
| ~DelayedLoadMetadata () override=default | |
| Name | typeName () const override |
| Return the type name of the metadata. More... | |
| Metadata::Ptr | copy () const override |
| Return a copy of the metadata. More... | |
| void | copy (const Metadata &) override |
| Copy the given metadata into this metadata. More... | |
| std::string | str () const override |
| Return a textual representation of this metadata. More... | |
| bool | asBool () const override |
| Index32 | size () const override |
| Return the size of this metadata in bytes. More... | |
| void | clear () |
| Delete the contents of the mask and compressed size arrays. More... | |
| bool | empty () const |
Return true if both arrays are empty. More... | |
| void | resizeMask (size_t size) |
| Resize the mask array. More... | |
| void | resizeCompressedSize (size_t size) |
| Resize the compressed size array. More... | |
| MaskType | getMask (size_t index) const |
| Return the mask value for a specific index. More... | |
| void | setMask (size_t index, const MaskType &value) |
| Set the mask value for a specific index. More... | |
| CompressedSizeType | getCompressedSize (size_t index) const |
| Return the compressed size value for a specific index. More... | |
| void | setCompressedSize (size_t index, const CompressedSizeType &value) |
| Set the compressed size value for a specific index. More... | |
Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::Metadata | |
| Metadata () | |
| virtual | ~Metadata () |
| Metadata (const Metadata &)=delete | |
| Metadata & | operator= (const Metadata &)=delete |
| bool | operator== (const Metadata &other) const |
Return true if the given metadata is equivalent to this metadata. More... | |
| bool | operator!= (const Metadata &other) const |
Return true if the given metadata is different from this metadata. More... | |
| void | read (std::istream &) |
| Unserialize this metadata from a stream. More... | |
| void | write (std::ostream &) const |
| Serialize this metadata to a stream. More... | |
Static Public Member Functions | |
| static Name | staticTypeName () |
| static Metadata::Ptr | createMetadata () |
| static void | registerType () |
| static void | unregisterType () |
| static bool | isRegisteredType () |
Static Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::Metadata | |
| static Metadata::Ptr | createMetadata (const Name &typeName) |
| Create new metadata of the given type. More... | |
| static bool | isRegisteredType (const Name &typeName) |
Return true if the given type is known by the metadata type registry. More... | |
| static void | clearRegistry () |
| Clear out the metadata registry. More... | |
| static void | registerType (const Name &typeName, Metadata::Ptr(*createMetadata)()) |
| Register the given metadata type along with a factory function. More... | |
| static void | unregisterType (const Name &typeName) |
Protected Member Functions | |
| void | readValue (std::istream &, Index32 numBytes) override |
| Read the metadata from a stream. More... | |
| void | writeValue (std::ostream &) const override |
| Write the metadata to a stream. More... | |
Protected Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::Metadata | |
| void | writeSize (std::ostream &) const |
| Write the size of the metadata to a stream. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::Metadata | |
| static Index32 | readSize (std::istream &) |
| Read the size of the metadata from a stream. More... | |
Store a buffer of data that can be optionally used during reading for faster delayed-load I/O performance.
Definition at line 21 of file DelayedLoadMetadata.h.
Definition at line 27 of file DelayedLoadMetadata.h.
| using openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::ConstPtr = SharedPtr<const DelayedLoadMetadata> |
Definition at line 25 of file DelayedLoadMetadata.h.
Definition at line 26 of file DelayedLoadMetadata.h.
Definition at line 24 of file DelayedLoadMetadata.h.
|
default |
| openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::DelayedLoadMetadata | ( | const DelayedLoadMetadata & | other | ) |
|
overridedefault |
|
overridevirtual |
Return the boolean representation of this metadata (empty strings and zeroVals evaluate to false; most other values evaluate to true).
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
| void openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::clear | ( | ) |
Delete the contents of the mask and compressed size arrays.
|
overridevirtual |
Return a copy of the metadata.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
|
overridevirtual |
Copy the given metadata into this metadata.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
|
inlinestatic |
Definition at line 42 of file DelayedLoadMetadata.h.
| bool openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::empty | ( | ) | const |
Return true if both arrays are empty.
| CompressedSizeType openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::getCompressedSize | ( | size_t | index | ) | const |
Return the compressed size value for a specific index.
| MaskType openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::getMask | ( | size_t | index | ) | const |
Return the mask value for a specific index.
|
inlinestatic |
Definition at line 59 of file DelayedLoadMetadata.h.
|
overrideprotectedvirtual |
Read the metadata from a stream.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
|
inlinestatic |
Definition at line 48 of file DelayedLoadMetadata.h.
| void openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::resizeCompressedSize | ( | size_t | size | ) |
Resize the compressed size array.
| void openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::resizeMask | ( | size_t | size | ) |
Resize the mask array.
| void openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::setCompressedSize | ( | size_t | index, |
| const CompressedSizeType & | value | ||
| ) |
Set the compressed size value for a specific index.
| void openvdb::OPENVDB_VERSION_NAME::io::DelayedLoadMetadata::setMask | ( | size_t | index, |
| const MaskType & | value | ||
| ) |
Set the mask value for a specific index.
|
overridevirtual |
Return the size of this metadata in bytes.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
|
inlinestatic |
Definition at line 40 of file DelayedLoadMetadata.h.
|
overridevirtual |
Return a textual representation of this metadata.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
|
overridevirtual |
Return the type name of the metadata.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.
|
inlinestatic |
Definition at line 54 of file DelayedLoadMetadata.h.
|
overrideprotectedvirtual |
Write the metadata to a stream.
Implements openvdb::OPENVDB_VERSION_NAME::Metadata.