![]() |
OpenVDB 13.2.0
|
Replaces any StreamMetadata shared pointer associated with the stream with the given one for the lifetime of this object. When the destructor of this object is called, the StreamMetadata shared pointer is replaced with the prior one again. More...
#include <openvdb/io/io.h>
Public Member Functions | |
| StreamMetadataScope (std::ios_base &, SharedPtr< StreamMetadata >) | |
| ~StreamMetadataScope () | |
| StreamMetadataScope (const StreamMetadataScope &)=delete | |
| StreamMetadataScope & | operator= (const StreamMetadataScope &)=delete |
Replaces any StreamMetadata shared pointer associated with the stream with the given one for the lifetime of this object. When the destructor of this object is called, the StreamMetadata shared pointer is replaced with the prior one again.
The stream only stores the address of the shared pointer, so this object owns it and cannot be copied or moved. The stream must outlive this object.
| StreamMetadataScope | ( | std::ios_base & | , |
| SharedPtr< StreamMetadata > | ) |
| ~StreamMetadataScope | ( | ) |
|
delete |
|
delete |