45 #ifndef ROL_SAMPLEDVECTOR_H
46 #define ROL_SAMPLEDVECTOR_H
50 template <
class Real,
class Key=std::vector<Real>>
62 void reset(
const bool flag =
true) {
64 typename std::map<Key, int>::iterator it;
66 flags_[it->second] =
false;
83 void update(
const bool flag =
true) {
95 typename std::map<Key, int>::iterator it =
indices_.find(param);
103 indices_.insert(std::pair<Key, int>(param, index));
117 typename std::map<Key, int>::iterator it =
indices_.find(param);
123 indices_.insert(std::pair<Key, int>(param, index));