Helios++
Helios software for LiDAR simulations
|
Max dragger drags the maximum element. The first time next is called the maximum element is returned, the second time the second maximum element is returned and so on. More...
#include <MaxDragger.hpp>
Public Member Functions | |
MaxDragger (vector< E > x) | |
Build a maximum dragger. More... | |
virtual | ~MaxDragger () |
Default destructor. | |
![]() | |
MinDragger (vector< E > x) | |
Build a minimum dragger. More... | |
virtual | ~MinDragger () |
Default destructor. | |
bool | hasNext () override |
![]() | |
E | next () override |
Implementation of next method for optimization draggers. More... | |
Protected Member Functions | |
E | pick () override |
Pick the minimum element inside \([a, b]\) indices. More... | |
![]() | |
virtual void | initialize () |
Initialize the minimum dragger to the initial status. More... | |
E | pick () override |
Pick the minimum element inside \([a, b]\) indices. More... | |
void | update () override |
Update the minimum dragger status which basically means updating \(a\) and \(b\) values while partially sorting the collection. More... | |
virtual void | partialSort () |
Do a partial sort. More... | |
Additional Inherited Members | |
![]() | |
vector< E > | x |
The collection (as vector) to min-drag from. | |
size_t | stopSize |
The number of elements in the collection x, minus 1. More... | |
bool | initialized = false |
Specify if the min dragger has been initialized (true) or nor (false). More... | |
size_t | a = 0 |
The start index. | |
size_t | b = 0 |
The end index. | |
size_t | c = 0 |
The current index. | |
Max dragger drags the maximum element. The first time next is called the maximum element is returned, the second time the second maximum element is returned and so on.
E | Type of elements to drag |
|
inline |
Build a maximum dragger.
x | The collection to drag over |
|
inlineoverrideprotectedvirtual |
Pick the minimum element inside \([a, b]\) indices.
Implements SurfaceInspector::util::draggers::OptimizationDragger< E >.