Public Member Functions | |
| void | add (const std::string &name) |
| template<typename DATA > | |
| void | initialize (const NamedData< DATA > &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 NamedData 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 180 of file named_data.h.
| void NamedSelection::add | ( | const std::string & | name ) | [inline] |
Add a new name to be searched for in NamedData.
Definition at line 404 of file named_data.h.
References names.
Referenced by MeshWorker::VectorSelector::add().
| void NamedSelection::initialize | ( | const NamedData< DATA > & | data ) | [inline] |
Create the index vector pointing into the NamedData object.
Definition at line 412 of file named_data.h.
References NamedData< DATA >::find(), indices, and names.
Referenced by MeshWorker::VectorSelector::initialize().
| unsigned int NamedSelection::size | ( | ) | const [inline] |
The number of names in this object. This function may be used whether initialize() was called before or not.
Definition at line 422 of file named_data.h.
References names.
Referenced by MeshWorker::VectorSelector::empty(), MeshWorker::VectorSelector::has_gradients(), MeshWorker::VectorSelector::has_hessians(), MeshWorker::VectorSelector::has_values(), MeshWorker::VectorSelector::n_gradients(), MeshWorker::VectorSelector::n_hessians(), MeshWorker::VectorSelector::n_values(), and operator()().
Return the corresponding index in the NamedData 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 430 of file named_data.h.
References Assert, AssertIndexRange, StandardExceptions::ExcNotInitialized(), indices, names, and size().
std::vector<std::string> NamedSelection::names [private] |
The selected names.
Definition at line 225 of file named_data.h.
Referenced by add(), initialize(), operator()(), and size().
std::vector<unsigned int> NamedSelection::indices [private] |
The index map generated by initialize() and accessed by operator().
Definition at line 231 of file named_data.h.
Referenced by initialize(), and operator()().
documentation generated on Fri Feb 3 2012 06:04:10 by
doxygen
1.7.2