Adobe Source Libraries 1.49.0
A collection of C++ libraries.
|
The template class auto_resource< X, Traits >
provides similar functionality to unique_ptr
for resources for which the pointer is opaque refered to by a non-pointer type.
More...
#include <memory.hpp>
Public Types | |
typedef Traits | traits_type |
typedef traits_type::element_type | element_type |
typedef traits_type::pointer_type | pointer_type |
Public Member Functions | |
auto_resource (pointer_type p=0) throw () | |
auto_resource (auto_resource &) throw () | |
template<typename Y> | |
auto_resource (const auto_resource< Y, typename traits_type::template rebind< Y >::other > &) throw () | |
auto_resource & | operator= (auto_resource &) throw () |
template<typename Y> | |
auto_resource & | operator= (auto_resource< Y, typename traits_type::template rebind< Y >::other >) throw () |
~auto_resource () throw () | |
auto_resource & | operator= (const clear_type *) throw () |
pointer_type | get () const throw () |
pointer_type | release () throw () |
void | reset (pointer_type p=0) throw () |
operator bool () const throw () | |
bool | operator! () const throw () |
template<typename Y> | |
auto_resource< X, Traits > & | operator= (auto_resource< Y, typename traits_type::template rebind< Y >::other > x) throw () |
Example:
Definition at line 205 of file memory.hpp.
typedef Traits traits_type |
Definition at line 210 of file memory.hpp.
typedef traits_type::element_type element_type |
Definition at line 211 of file memory.hpp.
typedef traits_type::pointer_type pointer_type |
Definition at line 212 of file memory.hpp.
|
explicit |
Definition at line 269 of file memory.hpp.
auto_resource | ( | auto_resource< X, Traits > & | x | ) | ||
throw | ( | ) |
Definition at line 272 of file memory.hpp.
auto_resource | ( | const auto_resource< Y, typename traits_type::template rebind< Y >::other > & | x | ) | ||
throw | ( | ) |
Definition at line 276 of file memory.hpp.
~auto_resource | ( | ) | ||||
throw | ( | ) |
Definition at line 296 of file memory.hpp.
auto_resource< X, Traits > & operator= | ( | auto_resource< X, Traits > & | x | ) | ||
throw | ( | ) |
Definition at line 282 of file memory.hpp.
auto_resource & operator= | ( | auto_resource< Y, typename traits_type::template rebind< Y >::other > | ) | |||
throw | ( | ) |
auto_resource< X, Traits > & operator= | ( | const clear_type * | ) | |||
throw | ( | ) |
Definition at line 303 of file memory.hpp.
auto_resource< X, Traits >::pointer_type get | ( | ) | const | |||
throw | ( | ) |
Definition at line 311 of file memory.hpp.
auto_resource< X, Traits >::pointer_type release | ( | ) | ||||
throw | ( | ) |
Definition at line 317 of file memory.hpp.
void reset | ( | pointer_type | p = 0 | ) | ||
throw | ( | ) |
Definition at line 324 of file memory.hpp.
operator bool | ( | ) | const | |||
throw | ( | ) |
Definition at line 237 of file memory.hpp.
bool operator! | ( | ) | const | |||
throw | ( | ) |
Definition at line 334 of file memory.hpp.
auto_resource< X, Traits > & operator= | ( | auto_resource< Y, typename traits_type::template rebind< Y >::other > | x | ) | ||
throw | ( | ) |
Definition at line 289 of file memory.hpp.