Inheritance diagram for MangoPtr::ObjSharing< oshiptype >:
The shared ownership policy is encapsulated by the template specialization for OwnershipType==OShared. Strict ownership is simple, several methods return hard-coded values, or simply forward the call to the base class.
Definition at line 37 of file ObjSharing.hh.
|Default does nothing special.|
|void||swap (ObjSharing &rhs)|
|swap two strict owners|
|ObjSharing &||operator() (void *optr)|
|is object pointed to (optr) valid? call this to set usage sharing state from value of optr|
|bool||destructNeedsDelete (void *optr) const|
|Does pointer need deleting? If ownership sharing policy is strict, pointer can always be deleted.|
|size_t||getCountOwned () const|
|get how many owners are sharing ownership|
|size_t||getCountUser () const|
|get how many users are sharing usage|