#include <itkMetaDataDictionary.h>
Provides a mechanism for storing a collection of arbitrary data types.
- Author
- Hans J. Johnson
The MetaDataDictionary, along with the MetaDataObject derived template classes, is designed to provide a mechanism for storing a collection of arbitrary data types. The main motivation for such a collection is to associate arbitrary data elements with itk DataObjects.
The MetaDataDictionary implements shallow copying with copy on write behavior. When a copy of this class is created, the new copy will be shared with the old copy via C++11 shared pointers. When a non-constant operation is done, if the dictionary is not unique to this object, then a deep copy is performed. This make is very cheap to create multiple copies of the same dictionary if they are never modified.
- ITK Sphinx Examples:
-
- Examples
- Examples/Filtering/DiffusionTensor3DReconstructionImageFilter.cxx, Examples/IO/DicomImageReadChangeHeaderWrite.cxx, Examples/IO/DicomImageReadPrintTags.cxx, Examples/IO/DicomSeriesReadPrintTags.cxx, Examples/IO/ImageReadDicomSeriesWrite.cxx, SphinxExamples/src/Core/Common/StoreNonPixelDataInImage/Code.cxx, SphinxExamples/src/IO/GDCM/ReadAndPrintDICOMTags/Code.cxx, and SphinxExamples/src/IO/GDCM/ResampleDICOMSeries/Code.cxx.
Definition at line 53 of file itkMetaDataDictionary.h.
◆ ConstIterator
◆ Iterator
◆ MetaDataDictionaryMapType
◆ Self
◆ MetaDataDictionary() [1/3]
itk::MetaDataDictionary::MetaDataDictionary |
( |
| ) |
|
◆ MetaDataDictionary() [2/3]
◆ MetaDataDictionary() [3/3]
◆ ~MetaDataDictionary()
virtual itk::MetaDataDictionary::~MetaDataDictionary |
( |
| ) |
|
|
virtual |
◆ Begin() [1/2]
Iterator itk::MetaDataDictionary::Begin |
( |
| ) |
|
◆ Begin() [2/2]
- Warning
- the following functions SHOULD NOT be used with the visual studio 6 compiler since iterator outside of the dll context cannot be dereferenced safely Returns an iterator to the beginning of the map
◆ Clear()
void itk::MetaDataDictionary::Clear |
( |
| ) |
|
remove all MetaObjects from dictionary
◆ End() [1/2]
Iterator itk::MetaDataDictionary::End |
( |
| ) |
|
◆ End() [2/2]
- Warning
- the following functions SHOULD NOT be used with the visual studio 6 compiler since iterator outside of the dll context cannot be dereferenced safely Returns an iterator to the beginning of the map
◆ Erase()
bool itk::MetaDataDictionary::Erase |
( |
const std::string & |
| ) |
|
◆ Find() [1/2]
Iterator itk::MetaDataDictionary::Find |
( |
const std::string & |
key | ) |
|
◆ Find() [2/2]
ConstIterator itk::MetaDataDictionary::Find |
( |
const std::string & |
key | ) |
const |
- Warning
- the following functions SHOULD NOT be used with the visual studio 6 compiler since iterator outside of the dll context cannot be dereferenced safely Returns an iterator to the beginning of the map
◆ Get()
◆ GetKeys()
std::vector<std::string> itk::MetaDataDictionary::GetKeys |
( |
| ) |
const |
◆ HasKey()
bool itk::MetaDataDictionary::HasKey |
( |
const std::string & |
| ) |
const |
◆ MakeUnique()
bool itk::MetaDataDictionary::MakeUnique |
( |
| ) |
|
|
private |
- Warning
- the following functions SHOULD NOT be used with the visual studio 6 compiler since iterator outside of the dll context cannot be dereferenced safely Returns an iterator to the beginning of the map
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator[]() [1/2]
◆ operator[]() [2/2]
const MetaDataObjectBase* itk::MetaDataDictionary::operator[] |
( |
const std::string & |
| ) |
const |
◆ Print()
virtual void itk::MetaDataDictionary::Print |
( |
std::ostream & |
os | ) |
const |
|
virtual |
◆ Set()
◆ Swap()
- Warning
- the following functions SHOULD NOT be used with the visual studio 6 compiler since iterator outside of the dll context cannot be dereferenced safely Returns an iterator to the beginning of the map
Referenced by itk::swap().
◆ m_Dictionary
- Warning
- the following functions SHOULD NOT be used with the visual studio 6 compiler since iterator outside of the dll context cannot be dereferenced safely Returns an iterator to the beginning of the map
Definition at line 151 of file itkMetaDataDictionary.h.
The documentation for this class was generated from the following file: