32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Utilities/CountedPtr.h> 242 inline const T &
ref()
const;
282 : obj_p(other.obj_p), const_p(other.const_p)
310 return obj_p.operator->();
315 return obj_p.operator*();
341 return (const_p || obj_p.nrefs()>1) ?
False :
True;
348 #ifndef CASACORE_NO_AUTO_TEMPLATES 349 #include <casacore/casa/Utilities/COWPtr.tcc> 350 #endif //# CASACORE_NO_AUTO_TEMPLATES
PtrHolder< T > & operator=(const PtrHolder< T > &other)
Bool isNull() const
returns False if this contains a non-null ptr, otherwise, return True.
COWPtr()
The default constructor: used to create a null pointer which is delete-able by the destructor...
Bool makeUnique()
Return True if copied, otherwise, False.
Copy-On-Write-Pointer class - allows control of copy based on constness.
const T & operator*() const
return a reference to a const object.
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 isReadOnly() const
returns True if the object is const, otherwise, return False.
Bool isUnique() const
returns True if the object is the only instance, otherwise, return False.
const T & ref() const
return a const reference to the object.
T & rwRef()
return a readable and writable reference to this instance.
this file contains all the compiler specific defines
MVBaseline operator*(const RotMatrix &left, const MVBaseline &right)
Rotate a Baseline vector with rotation matrix and other multiplications.
T * operator->() const
Make it possible to use -> on the pointer object.