10 #ifndef SACADO_HANDLE_HPP
11 #define SACADO_HANDLE_HPP
35 const T*
get()
const {
return rep; }
97 return h1.
get() == h2.
get();
102 #endif // SACADO_HANDLE_HPP
T * operator->() const
Dereference.
void decrementRef()
Decrement reference.
void makeOwnCopy()
Make handle have its own copy of rep.
void Assign(const Handle &h)
Assign to handle h as its own copy.
int * count
Reference count.
Handle(const Handle &h)
Copy handle.
Handle & operator=(const Handle &h)
Assignment operator.
Handle(T *p)
Create new handle from pointer p.
const T & operator*() const
Dereference.
bool operator==(const Handle< T > &h1, const Handle< T > &h2)
Compare two handles.
T * get()
Return pointer to underlying data.