4#ifndef OPENVDB_METADATA_METAMAP_HAS_BEEN_INCLUDED
5#define OPENVDB_METADATA_METAMAP_HAS_BEEN_INCLUDED
94 std::string
str(
const std::string& indent =
"")
const;
122 return (iter == mMeta.end() ?
Metadata::Ptr() : iter->second);
129 return (iter == mMeta.end() ?
Metadata::Ptr() : iter->second);
137inline typename T::Ptr
141 if (iter == mMeta.end())
return typename T::Ptr{};
147 if (iter->second->typeName() == T::staticTypeName()) {
150 return typename T::Ptr{};
154inline typename T::ConstPtr
158 if (iter == mMeta.end())
return typename T::ConstPtr{};
164 if (iter->second->typeName() == T::staticTypeName()) {
167 return typename T::ConstPtr{};
176MetaMap::getValidTypedMetadata(
const Name &name)
const
178 ConstMetaIterator iter = mMeta.find(name);
OPENVDB_API std::ostream & operator<<(std::ostream &os, half h)
Output h to os, formatted as a float.
Definition Exceptions.h:60
Definition Exceptions.h:64
std::string Name
Definition Name.h:19
std::shared_ptr< T > SharedPtr
Definition Types.h:114
SharedPtr< T > StaticPtrCast(const SharedPtr< U > &ptr)
Return a new shared pointer that points to the same object as the given pointer after a static_cast.
Definition Types.h:146
Definition Exceptions.h:13
#define OPENVDB_THROW(exception, message)
Definition Exceptions.h:74
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218