A base class for common operations on scatter types (Scatter1D, etc.)
More...
#include <Scatter.h>
|
virtual | ~Scatter () |
| Virtual destructor for inheritance.
|
|
virtual size_t | dim () const noexcept=0 |
| Dimension of this data object.
|
|
|
virtual void | reset ()=0 |
| Clear all points.
|
|
virtual size_t | numPoints () const =0 |
| Scaling along direction i.
|
|
|
virtual void | rmPoint (size_t index)=0 |
| Remove the point with index index.
|
|
virtual void | rmPoints (std::vector< size_t > indices) |
| Safely remove the points with indices indices.
|
|
A base class for common operations on scatter types (Scatter1D, etc.)
Definition at line 44 of file Scatter.h.
◆ ~Scatter()
virtual YODA::Scatter::~Scatter |
( |
| ) |
|
|
inlinevirtual |
◆ dim()
virtual size_t YODA::Scatter::dim |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ numPoints()
virtual size_t YODA::Scatter::numPoints |
( |
| ) |
const |
|
pure virtual |
◆ reset()
virtual void YODA::Scatter::reset |
( |
| ) |
|
|
pure virtual |
◆ rmPoint()
virtual void YODA::Scatter::rmPoint |
( |
size_t |
index | ) |
|
|
pure virtual |
◆ rmPoints()
virtual void YODA::Scatter::rmPoints |
( |
std::vector< size_t > |
indices | ) |
|
|
inlinevirtual |
Safely remove the points with indices indices.
Definition at line 85 of file Scatter.h.
85 {
86
87 std::sort(indices.begin(), indices.end(), std::greater<size_t>());
88 for (
size_t i : indices)
rmPoint(i);
89 }
virtual void rmPoint(size_t index)=0
Remove the point with index index.
References rmPoint().
The documentation for this class was generated from the following file: