32 #ifndef SACADO_HANDLE_HPP
33 #define SACADO_HANDLE_HPP
117 template <
typename T>
119 return h1.
get() == h2.
get();
T * get()
Return pointer to underlying data.
const T * get() const
Return pointer to underlying data.
int * count
Reference count.
void Assign(const Handle &h)
Assign to handle h as its own copy.
T * operator->() const
Dereference.
Handle(T *p)
Create new handle from pointer p.
Handle & operator=(const Handle &h)
Assignment operator.
Handle(const Handle &h)
Copy handle.
void makeOwnCopy()
Make handle have its own copy of rep.
void decrementRef()
Decrement reference.
const T & operator*() const
Dereference.
bool operator==(const Handle< T > &h1, const Handle< T > &h2)
Compare two handles.