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