/**
* Get a reference to the given element
* in this collection.
+ *
+ * \pre @p index must be between zero
+ * and the number of elements of the
+ * collection.
*/
const FiniteElement<dim> &
get_fe (const unsigned int index) const;
* was specified by the user for the
* active_fe_index which is provided
* as a parameter to this method.
+ *
+ * \pre @p index must be between zero
+ * and the number of elements of the
+ * collection.
*/
const Mapping<dim> &
- get_mapping (const unsigned int active_fe_index) const;
+ get_mapping (const unsigned int index) const;
/**
* Determine an estimate for the
/**
* Returns a reference to the
- * quadrature rule which was specified
- * by the user for the active_fe_index
- * which is provided as a parameter to
- * this method.
+ * quadrature rule specified by the
+ * argument.
+ *
+ * \pre @p index must be between zero
+ * and the number of elements of the
+ * collection.
*/
const Quadrature<dim> &
- get_quadrature (const unsigned int active_fe_index) const;
+ get_quadrature (const unsigned int index) const;
/**
* Adds a new quadrature rule to the
template <int dim>
inline
const Mapping<dim> &
- MappingCollection<dim>::get_mapping (const unsigned int active_fe_index) const
+ MappingCollection<dim>::get_mapping (const unsigned int index) const
{
if (single_mapping)
return *mappings[0];
else
{
- Assert (active_fe_index < mappings.size (),
- ExcIndexRange (active_fe_index, 0, mappings.size ()));
- return *mappings[active_fe_index];
+ Assert (index < mappings.size (),
+ ExcIndexRange (index, 0, mappings.size ()));
+ return *mappings[index];
}
}
template <int dim>
inline
const Quadrature<dim> &
- QCollection<dim>::get_quadrature (const unsigned int active_fe_index) const
+ QCollection<dim>::get_quadrature (const unsigned int index) const
{
// if we have only a single quadrature
// that was given during construction,
return *quadratures[0];
else
{
- Assert (active_fe_index < quadratures.size (),
- ExcIndexRange (active_fe_index, 0, quadratures.size ()));
- return *quadratures[active_fe_index];
+ Assert (index < quadratures.size (),
+ ExcIndexRange (index, 0, quadratures.size ()));
+ return *quadratures[index];
}
}