32 #ifndef SACADO_HANDLE_HPP
33 #define SACADO_HANDLE_HPP
57 const T*
get()
const {
return rep; }
117 template <
typename T>
119 return h1.
get() == h2.
get();
124 #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.