Lines Matching +full:- +full:- +full:hard
5 * Copyright (C) 2015-2016, International Business Machines
34 * zero hard references. The cache may use this to keep track the number of
46 * Base class for shared, reference-counted, auto-deleted objects.
51 * Either stack-allocate, use LocalPointer, or use addRef()/removeRef().
52 * Sharing requires reference-counting.
72 * Increments the number of hard references to this object. Thread-safe.
78 * Decrements the number of hard references to this object, and
79 * arrange for possible cache-eviction and/or deletion if ref
80 * count goes to zero. Thread-safe.
87 * Returns the number of hard references for this object.
93 * If noHardReferences() == true then this object has no hard references.
99 * If hasHardReferences() == true then this object has hard references.
106 * Available for non-cached SharedObjects only. Ownership of cached objects
115 * non-const pointer.
117 * copy-constructed clone,
126 if(p->getRefCount() <= 1) { return const_cast<T *>(p); } in copyOnWrite()
129 p->removeRef(); in copyOnWrite()
131 p2->addRef(); in copyOnWrite()
146 if(dest != NULL) { dest->removeRef(); } in copyPtr()
148 if(src != NULL) { src->addRef(); } in copyPtr()
158 ptr->removeRef(); in clearPtr()