58 if (ptr_ != 0 && isOwner_) {
78 if (ptr_ != 0 && isOwner_) {
98 if (ptr_ != 0 && isOwner_) {
142 template <
typename T>
144 {
return (p.
get() == 0); }
A pointer that may or may not own the object to which it points.
T element_type
Type of object pointed to.
void copy(T *p)
Copy a built-in pointer, without accepting ownership.
void acquire(T *p)
Copy a built-in pointer, and accept ownership.
T & operator*() const
Dereference.
T * get() const
Return the built-in pointer.
T * operator->() const
Member access.
File containing preprocessor macros for error handling.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Utility classes for scientific computation.
bool isNull(FlexPtr< T > p)
Return true iff the enclosed built-in pointer is null.