26#include <ql/quote.hpp>
35 for (
auto const& q :
q_)
39 std::vector<Real> v(
q_.size());
40 std::transform(
q_.begin(),
q_.end(), v.begin(), [](
const Handle<Quote>& q) { return q->value(); });
44 return std::all_of(
q_.begin(),
q_.end(), [](
const Handle<Quote>& q) { return q->isValid(); });
46 void update()
override { notifyObservers(); }
49 std::vector<Handle<Quote>>
q_;
CompositeVectorQuote(std::vector< Handle< Quote > > q, Function f)
std::vector< Handle< Quote > > q_
Real value() const override
bool isValid() const override