Detailed Description
These generator functions make it easier/more convenient to generate a
ref_ptr
Function Documentation
template<class T >
| ref_ptr<T> GrAL::new_ref_ptr |
( |
T * |
t |
) |
[inline] |
Convert newly allocated pointer to ref_ptr.
It is assumed that t is newly allocated, and no delete is called. Example:
{
ref_ptr<MyClass> r = new_ref_ptr(new MyClass(myargs));
return r;
}
Definition at line 430 of file ref-ptr.h.
template<class T >
| ref_ptr< T > copy_to_ref_ptr |
( |
T const & |
t |
) |
[related, inherited] |
Copy t to a ref_ptr.
The contents of the result will be writeable.
Definition at line 411 of file ref-ptr.h.
template<class T >
| ref_ptr< const T > copy_to_const_ref_ptr |
( |
T const & |
t |
) |
[related, inherited] |
Copy t to a const ref_ptr.
The contents of the results will not be writeable
Definition at line 446 of file ref-ptr.h.