10 #ifndef SACADO_PARAMETERVECTORBASE_HPP
11 #define SACADO_PARAMETERVECTORBASE_HPP
26 template <
typename FamilyType,
typename BaseValueType>
75 BaseValueType baseValue) {
105 std::vector<int>& index_ad,
106 std::vector<int>& index_analytic,
107 std::vector<int>& index_other) {
109 index_analytic.resize(0);
110 index_other.resize(0);
115 if ((*it).family->supportsAD()) {
117 index_ad.push_back(i);
119 else if ((*it).family->supportsAnalytic()) {
121 index_analytic.push_back(i);
125 index_other.push_back(i);
iterator begin()
Iterator pointing at beginning of vector.
ParameterVectorBase(const ParameterVectorBase &source)
Copy constructor.
void filterParameters(ParameterVectorBase &ad, ParameterVectorBase &analytic, ParameterVectorBase &other, std::vector< int > &index_ad, std::vector< int > &index_analytic, std::vector< int > &index_other)
Filter vector into types.
BaseValueType baseValue
Base value of parameter family.
virtual ~ParameterVectorBase()
Destructor.
ParameterVectorBase()
Default constructor.
EntryVector::iterator iterator
Iterator typename.
EntryVector::const_iterator const_iterator
Const iterator typename.
Teuchos::RCP< FamilyType > family
Pointer to family.
void addParam(const Teuchos::RCP< FamilyType > &family, BaseValueType baseValue)
Add entry.
Container for parameter entries.
Entry & operator[](int i)
Element access.
EntryVector params
Parameter vector.
unsigned int size() const
Return number of parameters in vector.
ParameterVectorBase & operator=(const ParameterVectorBase &source)
Assignment.
Teuchos::Array< Entry > EntryVector
Vector of all parameter families.
std::vector< Entry >::const_iterator const_iterator
void push_back(const value_type &x)
A class to store the active parameters in a code in an ordered fashion, along with their "base" value...
iterator end()
Iterator pointing at end of vector.
const_iterator end() const
Iterator pointing at end of vector.
std::vector< Entry >::iterator iterator
Entry(const Teuchos::RCP< FamilyType > &f, BaseValueType bv)
Constructor.
const_iterator begin() const
Iterator pointing at beginning of vector.