32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Utilities/CountedPtr.h> 242 inline const T &
ref()
const;
310 return obj_p.operator->();
315 return obj_p.operator*();
348 #ifndef CASACORE_NO_AUTO_TEMPLATES 349 #include <casacore/casa/Utilities/COWPtr.tcc> 350 #endif //# CASACORE_NO_AUTO_TEMPLATES Bool isReadOnly() const
returns True if the object is const, otherwise, return False.
uInt nrefs() const
Sometimes it is useful to know if there is more than one reference made.
const T & ref() const
return a const reference to the object.
Bool isUnique() const
returns True if the object is the only instance, otherwise, return False.
COWPtr()
The default constructor: used to create a null pointer which is delete-able by the destructor...
const T & operator*() const
return a reference to a const object.
Bool makeUnique()
Return True if copied, otherwise, False.
Copy-On-Write-Pointer class - allows control of copy based on constness.
COWPtr & operator=(const COWPtr< T > &other)
assignment operator with reference semantics
bool Bool
Define the standard types used by Casacore.
const T * operator->() const
return a pointer to a const object.
Bool null() const
Check to see if this CountedPtr is un-initialized, null.
T & rwRef()
return a readable and writable reference to this instance.
this file contains all the compiler specific defines
Bool isNull() const
returns False if this contains a non-null ptr, otherwise, return True.