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