47 #ifndef CCXX_POINTER_H_
48 #define CCXX_POINTER_H_
50 #ifndef CCXX_MISSING_H_
54 #ifdef CCXX_NAMESPACES
73 if(ptrCount && --(*ptrCount)==0) {
82 explicit Pointer(T* ptr = NULL) : ptrObject(ptr)
84 ptrCount =
new unsigned;
111 {
return *ptrObject;};
120 {
return (*ptrCount == 1);};
123 {
return ++(*ptrCount);};
131 return --(*ptrCount);
135 #ifdef CCXX_NAMESPACES
Pointer & operator=(const Pointer< T > &ref)
substitute functions which may be missing in target platform libc.
Pointer(const Pointer< T > &ref)
Used to create and manage referece counted pointers.