CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
Definition at line 35 of file AbstractSelector.hpp.
#include <AbstractSelector.hpp>
Public Types | |
using | Object = typename std::iterator_traits< _Iterator >::value_type |
Type of object which is selected. More... | |
using | Selector = std::function< CepsBool(Object)> |
Selection function. More... | |
Public Member Functions | |
AbstractSelector & | operator= (const AbstractSelector &that) |
Assignment operator. More... | |
virtual | ~AbstractSelector ()=default |
Virtual destructor needed for polymorphism. More... | |
void | onlyOnBoundary (CepsBool value=true) |
Choose only objects that are on boundary. More... | |
void | onlyOnThisProc (CepsBool value=true) |
Choose only object that belongs to this proc. More... | |
void | appendSelectedTo (CepsVector< Object > *selected) |
Puts selected object at the end of given vector. More... | |
CepsVector< Object > | getSelected () const |
Get selected, read only. More... | |
virtual void | clearSelection () |
Clears selection. More... | |
virtual void | reset () |
Clears selection, set proc and bdry options to false. More... | |
virtual void | selectBetween (_Iterator first, _Iterator last)=0 |
Do the selection on elements between given iterators. More... | |
Protected Member Functions | |
AbstractSelector () | |
Default constructor. More... | |
AbstractSelector (const AbstractSelector &that)=default | |
Copy constructor. More... | |
void | internalRun (Selector *selector, _Iterator first, _Iterator last) |
Adds to the given selector the boundary and proc criteria. More... | |
void | internalRun2 (Selector *selector, _Iterator first, _Iterator last) |
Performs the selection. More... | |
Protected Attributes | |
CepsBool | m_keepOnBoundary |
On top of selector, keep only objects on boundary. More... | |
CepsBool | m_keepOnThisProc |
On top of selector, keep only objects owned by this proc. More... | |
CepsVector< Object > | m_selected |
The result of selection. More... | |
using AbstractSelector< _Iterator >::Object = typename std::iterator_traits<_Iterator>::value_type |
Type of object which is selected.
Definition at line 41 of file AbstractSelector.hpp.
using AbstractSelector< _Iterator >::Selector = std::function<CepsBool (Object)> |
Selection function.
Definition at line 43 of file AbstractSelector.hpp.
|
virtualdefault |
Virtual destructor needed for polymorphism.
|
protected |
Default constructor.
|
protecteddefault |
Copy constructor.
void AbstractSelector< _Iterator >::appendSelectedTo | ( | CepsVector< Object > * | selected | ) |
Puts selected object at the end of given vector.
|
virtual |
Clears selection.
CepsVector<Object> AbstractSelector< _Iterator >::getSelected | ( | ) | const |
Get selected, read only.
|
protected |
Adds to the given selector the boundary and proc criteria.
|
protected |
Performs the selection.
void AbstractSelector< _Iterator >::onlyOnBoundary | ( | CepsBool | value = true | ) |
Choose only objects that are on boundary.
void AbstractSelector< _Iterator >::onlyOnThisProc | ( | CepsBool | value = true | ) |
Choose only object that belongs to this proc.
AbstractSelector& AbstractSelector< _Iterator >::operator= | ( | const AbstractSelector< _Iterator > & | that | ) |
Assignment operator.
|
virtual |
Clears selection, set proc and bdry options to false.
Reimplemented in AttributesSelector< _Iterator >.
|
pure virtual |
Do the selection on elements between given iterators.
Implemented in SphereSelector< _Iterator >, CustomSelector< _Iterator >, BoundarySelector< _Iterator >, and AttributesSelector< _Iterator >.
|
protected |
On top of selector, keep only objects on boundary.
Definition at line 100 of file AbstractSelector.hpp.
|
protected |
On top of selector, keep only objects owned by this proc.
Definition at line 101 of file AbstractSelector.hpp.
|
protected |
The result of selection.
Definition at line 102 of file AbstractSelector.hpp.