Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/CacheableTest.cpp

    read4e6 r9b6b2f  
    2727class threeNumbers : public Observable {
    2828public:
     29  bool hasRecalced;
    2930  int x;
    3031  int y;
    3132  int z;
    32   Cacheable<int> sum;
    33   bool hasRecalced;
    3433
    3534  void setX(int _x){
     
    5554
    5655  threeNumbers(int _x,int _y, int _z) :
     56    sum(this,boost::bind(&threeNumbers::calcSum,this)),
    5757    x(_x),y(_y),z(_z),
    58     sum(this,boost::bind(&threeNumbers::calcSum,this)),
    5958    hasRecalced(false)
    6059  {}
     60
     61  Cacheable<int> sum;
    6162};
    6263
Note: See TracChangeset for help on using the changeset viewer.