|
GDCM
2.2.3
|
Sorter General class to do sorting using a custom function You simply need to provide a function of type: Sorter::SortFunction. More...
#include <gdcmSorter.h>


Public Types | |
| typedef bool(* | SortFunction )(DataSet const &, DataSet const &) |
| Set the sort function which compares one dataset to the other. | |
Public Member Functions | |
| Sorter () | |
| virtual | ~Sorter () |
| bool | AddSelect (Tag const &tag, const char *value) |
| UNSUPPORTED FOR NOW. | |
| const std::vector< std::string > & | GetFilenames () const |
| void | Print (std::ostream &os) const |
| Print. | |
| void | SetSortFunction (SortFunction f) |
| virtual bool | Sort (std::vector< std::string > const &filenames) |
| Typically the output of gdcm::Directory::GetFilenames() | |
| virtual bool | StableSort (std::vector< std::string > const &filenames) |
Protected Types | |
| typedef std::map< Tag, std::string > | SelectionMap |
Protected Attributes | |
| std::vector< std::string > | Filenames |
| std::map< Tag, std::string > | Selection |
| SortFunction | SortFunc |
Friends | |
| std::ostream & | operator<< (std::ostream &_os, const Sorter &s) |
Sorter General class to do sorting using a custom function You simply need to provide a function of type: Sorter::SortFunction.
typedef std::map<Tag,std::string> gdcm::Sorter::SelectionMap [protected] |
| typedef bool(* gdcm::Sorter::SortFunction)(DataSet const &, DataSet const &) |
Set the sort function which compares one dataset to the other.
| virtual gdcm::Sorter::~Sorter | ( | ) | [virtual] |
| bool gdcm::Sorter::AddSelect | ( | Tag const & | tag, |
| const char * | value | ||
| ) |
UNSUPPORTED FOR NOW.
| const std::vector<std::string>& gdcm::Sorter::GetFilenames | ( | ) | const [inline] |
Return the list of filenames as sorted by the specific algorithm used. Empty by default (before Sort() is called)
| void gdcm::Sorter::Print | ( | std::ostream & | os | ) | const |
Print.
Referenced by gdcm::operator<<().
| void gdcm::Sorter::SetSortFunction | ( | SortFunction | f | ) |
| virtual bool gdcm::Sorter::Sort | ( | std::vector< std::string > const & | filenames | ) | [virtual] |
Typically the output of gdcm::Directory::GetFilenames()
Reimplemented in gdcm::IPPSorter.
| virtual bool gdcm::Sorter::StableSort | ( | std::vector< std::string > const & | filenames | ) | [virtual] |
| std::ostream& operator<< | ( | std::ostream & | _os, |
| const Sorter & | s | ||
| ) | [friend] |
std::vector<std::string> gdcm::Sorter::Filenames [protected] |
std::map<Tag,std::string> gdcm::Sorter::Selection [protected] |
SortFunction gdcm::Sorter::SortFunc [protected] |
1.7.6.1