45 #ifndef ROL_SIMCONTROLLER_H 46 #define ROL_SIMCONTROLLER_H 53 template <
class Real,
class Key=std::vector<Real>>
71 void reset(
bool flag =
true);
91 bool isNull(
const Key ¶m)
const;
104 const Ptr<Vector<Real>>
set(
const Key ¶m);
108 const Ptr<const Vector<Real>>
get(
const Key ¶m)
const;
128 bool isNull(
const Key ¶m,
const std::map<Key,int> &indices)
const;
130 bool isComputed(
const Key ¶m,
const std::map<Key,int> &indices,
131 const std::vector<bool> &flags)
const;
134 std::map<Key,int> &indices, std::vector<bool> &flags,
135 std::vector<Ptr<
Vector<Real>>> &vectors,
int &maxIndex)
const;
137 const Ptr<const Vector<Real>>
get(
const Key ¶m,
138 const std::map<Key,int> &indices,
const std::vector<bool> &flags,
139 const std::vector<Ptr<Vector<Real>>> &vectors,
const int &maxIndex)
const;
141 const Ptr<Vector<Real>>
set(
const Key ¶m,
142 std::map<Key,int> &indices, std::vector<bool> &flags,
143 std::vector<Ptr<Vector<Real>>> &vectors,
int &maxIndex)
const;
146 std::map<Key,int> &indices, std::vector<bool> &flags,
147 std::vector<Ptr<Vector<Real>>> &vectors,
int &maxIndex)
const;
150 std::map<Key,int> &indices, std::vector<bool> &flags,
151 std::vector<Ptr<Vector<Real>>> &vectors,
int &maxIndex)
const;
std::map< Key, int > indices_temp_
std::vector< bool > flags_
void constraintUpdate(bool flag=true)
Equality constraint update for VectorController storage.
Defines the linear algebra or vector space interface.
std::map< Key, int > indices_
VectorController(void)
Constructor.
bool isComputed(const Key ¶m) const
Check if vector has been computed.
void push(VectorController< Real, Key > &to) const
Push the contents of *this into another VectorController.
void allocate(const Vector< Real > &x, const Key ¶m)
Allocate the vector associated with provided key.
std::map< Key, int > indices_trial_
void objectiveUpdate(bool flag=true)
Objective function update for VectorController storage.
std::vector< Ptr< Vector< Real > > > vectors_trial_
std::vector< Ptr< Vector< Real > > > vectors_temp_
std::vector< bool > flags_temp_
void reset(bool flag=true)
std::vector< bool > flags_trial_
bool isNull(const Key ¶m) const
Check if vector associated with provided key is allocated.
std::vector< Ptr< Vector< Real > > > vectors_