Tulip 5.7.1
Large graphs analysis and drawing
Loading...
Searching...
No Matches
tlp::SortNodeIterator Struct Reference

#include <SortIterator.h>

+ Inheritance diagram for tlp::SortNodeIterator:
+ Collaboration diagram for tlp::SortNodeIterator:

Public Member Functions

 SortNodeIterator (Iterator< tlp::node > *itIn, const tlp::NumericProperty *metric, bool ascendingOrder=true)
 
- Public Member Functions inherited from tlp::StableIterator< tlp::node >
 StableIterator (Iterator< tlp::node > *inputIterator, size_t nbElements=0, bool deleteIterator=true, bool sortCopy=false)
 
bool hasNext ()
 
tlp::node next ()
 
void restart ()
 
- Public Member Functions inherited from tlp::Iterator< T >
iterator_t begin ()
 
iterator_t end ()
 
virtual bool hasNext ()=0
 
virtual T next ()=0
 

Additional Inherited Members

- Protected Attributes inherited from tlp::StableIterator< tlp::node >
std::vector< tlp::node >::const_iterator copyIterator
 
std::vector< tlp::nodesequenceCopy
 

Detailed Description

This Iterator sorts the nodes in a sequence based on their values in a NumericProperty.

Definition at line 93 of file SortIterator.h.

Constructor & Destructor Documentation

◆ SortNodeIterator()

tlp::SortNodeIterator::SortNodeIterator ( Iterator< tlp::node > *  itIn,
const tlp::NumericProperty metric,
bool  ascendingOrder = true 
)
inline

Definition at line 95 of file SortIterator.h.

◆ ~SortNodeIterator()

tlp::SortNodeIterator::~SortNodeIterator ( )
inlineoverride

Definition at line 108 of file SortIterator.h.