Public Member Functions | Private Member Functions | Private Attributes

util::unique_ptr< T > Class Template Reference

#include <util.hpp>

List of all members.

Public Member Functions

 unique_ptr (T *p=NULL)
 ~unique_ptr ()
void reset (T *p=NULL)
T * release ()
T * get ()
T * operator-> () const
T & operator* () const

Private Member Functions

 unique_ptr (const unique_ptr &)
unique_ptroperator= (const unique_ptr &)

Private Attributes

T * ptr_

Detailed Description

template<class T>
class util::unique_ptr< T >

Definition at line 207 of file util.hpp.


Constructor & Destructor Documentation

template<class T>
util::unique_ptr< T >::unique_ptr ( const unique_ptr< T > &   )  [private]
template<class T>
util::unique_ptr< T >::unique_ptr ( T *  p = NULL  )  [inline]

Definition at line 214 of file util.hpp.

template<class T>
util::unique_ptr< T >::~unique_ptr (  )  [inline]

Definition at line 215 of file util.hpp.

References util::unique_ptr< T >::ptr_.


Member Function Documentation

template<class T>
T* util::unique_ptr< T >::get (  )  [inline]

Definition at line 230 of file util.hpp.

References util::unique_ptr< T >::ptr_.

Referenced by mp::create::process_event(), and WML_HANDLER_FUNCTION().

Here is the caller graph for this function:

template<class T>
T& util::unique_ptr< T >::operator* (  )  const [inline]

Definition at line 232 of file util.hpp.

References util::unique_ptr< T >::ptr_.

template<class T>
T* util::unique_ptr< T >::operator-> (  )  const [inline]

Definition at line 231 of file util.hpp.

References util::unique_ptr< T >::ptr_.

template<class T>
unique_ptr& util::unique_ptr< T >::operator= ( const unique_ptr< T > &   )  [private]
template<class T>
T* util::unique_ptr< T >::release (  )  [inline]

Definition at line 223 of file util.hpp.

References util::unique_ptr< T >::ptr_.

Referenced by editor::editor_action_whole_map::clone(), and editor::context_manager::load_map().

Here is the caller graph for this function:

template<class T>
void util::unique_ptr< T >::reset ( T *  p = NULL  )  [inline]

Definition at line 217 of file util.hpp.

References util::unique_ptr< T >::ptr_.

Referenced by mp::create::process_event().

Here is the caller graph for this function:


Member Data Documentation

template<class T>
T* util::unique_ptr< T >::ptr_ [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:19 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs