X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmElementSet.cxx;h=1330a42f3f80195c40f52e2a8213c3367bb0329f;hb=5b89bede4607999aeb8d5b45311e7ee82f9471ef;hp=510ac74710c48a9e5faf9f8fe95099d9bd1233c3;hpb=d1c68c2c2ae9fadf927053150f7fbc625a7c7366;p=gdcm.git diff --git a/src/gdcmElementSet.cxx b/src/gdcmElementSet.cxx index 510ac747..1330a42f 100644 --- a/src/gdcmElementSet.cxx +++ b/src/gdcmElementSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmElementSet.cxx,v $ Language: C++ - Date: $Date: 2005/02/01 10:29:55 $ - Version: $Revision: 1.52 $ + Date: $Date: 2005/02/02 16:18:48 $ + Version: $Revision: 1.53 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -62,21 +62,6 @@ void ElementSet::WriteContent(std::ofstream *fp, FileType filetype) } } -/** - * \brief delete all entries in the ElementSet - */ -void ElementSet::ClearEntry() -{ - for(TagDocEntryHT::iterator cc = TagHT.begin();cc != TagHT.end(); ++cc) - { - if ( cc->second ) - { - delete cc->second; - } - } - TagHT.clear(); -} - /** * \brief add a new Dicom Element pointer to the H Table * @param newEntry entry to add @@ -134,6 +119,21 @@ bool ElementSet::RemoveEntryNoDestroy(DocEntry *entryToRemove) return false ; } +/** + * \brief delete all entries in the ElementSet + */ +void ElementSet::ClearEntry() +{ + for(TagDocEntryHT::iterator cc = TagHT.begin();cc != TagHT.end(); ++cc) + { + if ( cc->second ) + { + delete cc->second; + } + } + TagHT.clear(); +} + /** * \brief Get the first entry while visiting the DocEntrySet * \return The first DocEntry if found, otherwhise NULL