![]() |
deal.II version GIT relicensing-2848-g5241f990fb 2025-03-16 19:30:00+00:00
|
#include <deal.II/algorithms/named_selection.h>
Public Member Functions | |
void | add (const std::string &name) |
void | initialize (const AnyData &data) |
unsigned int | size () const |
unsigned int | operator() (unsigned int i) const |
Private Attributes | |
std::vector< std::string > | names |
std::vector< unsigned int > | indices |
Select data from AnyData corresponding to the attached name.
Given a list of names to search for (provided by add()), objects of this class provide an index list of the selected data.
Definition at line 34 of file named_selection.h.
|
inline |
Add a new name to be searched for in data
supplied in initialize().
Definition at line 92 of file named_selection.h.
void NamedSelection::initialize | ( | const AnyData & | data | ) |
Create the index vector pointing into the AnyData object.
Definition at line 21 of file named_selection.cc.
|
inline |
The number of names in this object. This function may be used whether initialize() was called before or not.
Definition at line 85 of file named_selection.h.
Return the corresponding index in the AnyData object supplied to the last initialize(). It is an error if initialize() has not been called before.
Indices are in the same order as the calls to add().
Definition at line 99 of file named_selection.h.
|
private |
The selected names.
Definition at line 75 of file named_selection.h.
|
private |
The index map generated by initialize() and accessed by operator().
Definition at line 80 of file named_selection.h.