00001 #ifndef MANGO_VALIDITY_OWNER_H 00002 #define MANGO_VALIDITY_OWNER_H 00003 00023 #include "SharedValidity.hh" 00024 00025 namespace MangoPtr 00026 { 00027 00038 class ValidityOwner: public SharedValidity 00039 { 00040 public: 00042 ValidityOwner(): SharedValidity() {} 00044 ValidityOwner(bool valid): SharedValidity(valid) {} 00046 ValidityOwner(const ValidityOwner& vm): SharedValidity(vm) {} 00047 00049 using SharedValidity::reset; 00051 void setValid(bool valid) { SharedValidity::setValid(valid); } 00052 }; 00053 00054 } // namespace MangoPtr 00055 00056 00057 #endif // MANGO_VALIDITY_OWNER_H