37 void Clear() { ModulesInternal.clear(); }
42 assert( ref && *ref );
43 assert( ModulesInternal.find( ref ) == ModulesInternal.end() );
44 ModulesInternal.insert(
45 ModuleMapType::value_type(ref, module));
49 assert( name && *name );
50 ModuleMapType::const_iterator it = ModulesInternal.find( name );
51 assert( it != ModulesInternal.end() );
52 assert( it->first == name );
56 bool IsEmpty()
const {
return ModulesInternal.empty(); }
59 ModuleMapType ModulesInternal;
64 Modules::ModuleMapType::const_iterator it = _val.ModulesInternal.begin();
65 for(;it != _val.ModulesInternal.end(); ++it)
67 const std::string &name = it->first;
68 const Module &m = it->second;
69 _os << name <<
" " << m <<
'\n';
79 #endif //GDCMMODULES_H
bool IsEmpty() const
Definition: gdcmModules.h:56
void Clear()
Definition: gdcmModules.h:37
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:92
Class for representing a Module.
Definition: gdcmModule.h:37
Modules()
Definition: gdcmModules.h:34
Class for representing a Modules.
Definition: gdcmModules.h:29
std::map< std::string, Module > ModuleMapType
Definition: gdcmModules.h:32
void AddModule(const char *ref, const Module &module)
Definition: gdcmModules.h:40
const Module & GetModule(const char *name) const
Definition: gdcmModules.h:47