Tulip  5.3.0
Large graphs analysis and drawing
tlp::SortIterator< T, CompareFunction > Class Template Reference

#include <SortIterator.h>

+ Inheritance diagram for tlp::SortIterator< T, CompareFunction >:
+ Collaboration diagram for tlp::SortIterator< T, CompareFunction >:

Public Member Functions

 SortIterator (Iterator< T > *itIn, CompareFunction &&compFunc)
 
- Public Member Functions inherited from tlp::StableIterator< T >
 StableIterator (Iterator< T > *inputIterator, size_t nbElements=0, bool deleteIterator=true, bool sortCopy=false)
 
bool hasNext ()
 
next ()
 
void restart ()
 
- Public Member Functions inherited from tlp::Iterator< T >
iterator_t begin ()
 
iterator_t end ()
 

Additional Inherited Members

- Protected Attributes inherited from tlp::StableIterator< T >
std::vector< T >::const_iterator copyIterator
 
std::vector< T > sequenceCopy
 

Detailed Description

template<typename T, typename CompareFunction>
class tlp::SortIterator< T, CompareFunction >

Iterator that wraps an existing one and sorts its iterated elements based on comparison function.

Since
Tulip 5.2
Parameters
itthe iterator to sort
compfunctor or lambda function taking two parameters of type const T& and returning a boolean: true if the first parameter is lesser or equal than the second one, false otherwise

Definition at line 211 of file SortIterator.h.