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 |
Given a list of names to search for (provided by add()), objects of this class provide an index list of the selected data.
| void NamedSelection::add | ( | const std::string & | name | ) | [inline] |
Add a new name to be searched for in NamedData.
References names.
Referenced by MeshWorker::VectorSelector::add().
| void NamedSelection::initialize | ( | const NamedData< DATA > & | data | ) | [inline] |
Create the index vector pointing into the NamedData object.
References NamedData< DATA >::find(), indices, and names.
Referenced by MeshWorker::VectorSelector::initialize().
The number of names in this object. This function may be used whether initialize() was called before or not.
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().
References Assert, AssertIndexRange, StandardExceptions::ExcNotInitialized(), indices, names, and size().
std::vector<std::string> NamedSelection::names [private] |
The selected names.
Referenced by add(), initialize(), operator()(), and size().
std::vector<unsigned int> NamedSelection::indices [private] |
The index map generated by initialize() and accessed by operator().
Referenced by initialize(), and operator()().
documentation generated on Wed Jul 28 23:06:36 2010 by
doxygen
1.5.6