| ptr_traits< T * > Struct Template Reference | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Classes | |
| struct | rebind | 
| Public Types | |
| enum | { is_array } | 
| typedef const pointer_type | const_pointer_type | 
| typedef T | element_type | 
| typedef T * | pointer_type | 
| Static Public Member Functions | |
| static void | delete_ptr (pointer_type x) throw () | 
| static bool | empty_ptr (const_pointer_type x) throw () | 
Detailed Description
template<typename T>
 struct adobe::ptr_traits< T * >
The ptr_traits class provide basic information and operations associated with a pointer type.
A pointer may be any type used to refer to another, possibly not visible, type.
In the following table, X denotes a Traits class defining types and functions for the pointer type PtrT. The type of the item refered to is T. T may be void or an incomplete type. The argument p is of type PtrT.
| expression | return type | notes | complexity | 
| X::element_type | T | the type of the item refered to | compile time | 
| X::pointer_type | PtrT | if opaque, may be any type used to refer to T | compile time | 
| X::const_pointer_type | implementation defined | type corresponding to PtrT refering to a const T | compile time | 
| X::is_array | bool | true iff T is an array; type may also be convertable to bool | compile time | 
| X::delete_ptr(p) | void | destructs and deallocates item refered to by p; if p is empty, delete_ptr() has no effect | implementation defined | 
| X::empty_ptr(p) | bool | result is trueifprefers to nothing (corresponds toNULL);falseotherwise | constant | 
Definition at line 163 of file memory.hpp.
Member Typedef Documentation
| typedef const pointer_type const_pointer_type | 
Definition at line 167 of file memory.hpp.
| typedef T element_type | 
Definition at line 165 of file memory.hpp.
| typedef T* pointer_type | 
Definition at line 166 of file memory.hpp.
Member Enumeration Documentation
| anonymous enum | 
Definition at line 170 of file memory.hpp.
Member Function Documentation
| static void delete_ptr | ( | pointer_type | x ) | throw ()  [static] | 
Definition at line 172 of file memory.hpp.
| static bool empty_ptr | ( | const_pointer_type | x ) | throw ()  [static] | 
Definition at line 173 of file memory.hpp.

