8 #ifndef LAZY_DEPENDECY_HH_
9 #define LAZY_DEPENDECY_HH_
11 #include <boost/lambda/lambda.hpp>
15 using namespace boost;
41 std::for_each(dependencies_.begin(), dependencies_.end(),
42 _1.second() = _1.first().change_set_
51 dependencies_.push_back(std::pair<LazyDependency&, unsigned int>(
object, 0));
60 std::for_each(dependencies_.begin(), dependencies_.end(),
61 no_change = no_change && ( _1.first().change_set_ == _1.second() )
void update()
Increase the change set and set actual values of change sets of objects we depend on...
LazyDependency()
Default constructor.
void add_dependency(LazyDependency &object)
std::list< std::pair< LazyDependency &, unsigned int > > dependencies_
bool needs_update() const