00001 00008 #ifndef LeafWithoutConstructor_HPP 00009 #define LeafWithoutConstructor_HPP 00010 00011 #include "common.hpp" 00012 #include <vector> 00013 //#include <iterator> //for test 00014 00015 00016 namespace Bodon 00017 { 00021 class LeafWithoutConstructor 00022 { 00023 protected: 00024 counter_t counter; 00025 public: 00026 00027 void setCounter(const counter_t counter) 00028 {this->counter = counter;} 00029 00030 void increaseCounter(const counter_t counter_incr = 1) 00031 {this->counter += counter_incr;} 00032 00033 counter_t getCounter() const 00034 {return counter;} 00035 }; 00036 } 00037 #endif