Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::MetaDataOwner Class Reference

Holds metadata and access functionality for set/get MetaDataOwner is the base class for all the objects that want to own metadata. More...

#include <metadataowner.h>

+ Inheritance diagram for inviwo::MetaDataOwner:

Public Member Functions

 MetaDataOwner (const MetaDataOwner &rhs)=default
 
 MetaDataOwner (MetaDataOwner &rhs)=default
 
MetaDataOwneroperator= (const MetaDataOwner &rhs)=default
 
MetaDataOwneroperator= (MetaDataOwner &)=default
 
void copyMetaDataFrom (const MetaDataOwner &src)
 
void copyMetaDataTo (MetaDataOwner &dst)
 
template<typename T >
requires std::derived_from<T, MetaData>
T * createMetaData (std::string_view key)
 
template<typename T , typename U >
requires std::derived_from<T, MetaData> && Settable<T, U>
void setMetaData (std::string_view key, U value)
 
template<typename T >
requires std::derived_from<T, MetaData>
bool unsetMetaData (std::string_view key)
 unset, i.e. remove the metadata entry matching the given key and type
 
template<typename T , typename U >
requires std::derived_from<T, MetaData> && Gettable<T, U>
getMetaData (std::string_view key, U val) const
 
template<typename T >
requires std::derived_from<T, MetaData>
T * getMetaData (std::string_view key)
 
template<typename T >
requires std::derived_from<T, MetaData>
const T * getMetaData (std::string_view key) const
 
MetaDataMapgetMetaDataMap ()
 
const MetaDataMapgetMetaDataMap () const
 
bool hasMetaData (std::string_view key) const
 
template<typename T >
requires std::derived_from<T, MetaData>
bool hasMetaData (std::string_view key) const
 
void serialize (Serializer &s) const
 
void deserialize (Deserializer &d)
 

Protected Attributes

MetaDataMap metaData_
 

Detailed Description

Holds metadata and access functionality for set/get MetaDataOwner is the base class for all the objects that want to own metadata.

Member Function Documentation

◆ unsetMetaData()

template<typename T >
requires std::derived_from<T, MetaData>
bool inviwo::MetaDataOwner::unsetMetaData ( std::string_view key)

unset, i.e. remove the metadata entry matching the given key and type

Parameters
keykey of the entry to be removed

The documentation for this class was generated from the following file: