Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::util::DestructiveCopy< Ptr > Class Template Reference

List of all members.

Detailed Description

template<typename Ptr>
class ONE::util::DestructiveCopy< Ptr >

destructive copy ownership policy

SmartPointer s using this policy are invalidated when copied. This ensures that only one SmartPointer to an object exists.

Note:
this class is based on the SmartPtr implementation presented in "Modern C++ Design" by Andrei Alexandrescu
Author:
Daniel Seibert


Protected Types

enum  { OWNERSHIP_TRANSFER = true }

Protected Member Functions

template<typename U>
 DestructiveCopy (const DestructiveCopy< U > &)
 DestructiveCopy ()

Static Protected Member Functions

template<typename U>
static Ptr clone (U &obj)
static bool release (const Ptr &)
static void swap (DestructiveCopy &)


Member Enumeration Documentation

template<typename Ptr>
anonymous enum [protected]
 

Enumerator:
OWNERSHIP_TRANSFER 


Constructor & Destructor Documentation

template<typename Ptr>
ONE::util::DestructiveCopy< Ptr >::DestructiveCopy  )  [inline, protected]
 

template<typename Ptr>
template<typename U>
ONE::util::DestructiveCopy< Ptr >::DestructiveCopy const DestructiveCopy< U > &   )  [inline, protected]
 


Member Function Documentation

template<typename Ptr>
template<typename U>
static Ptr ONE::util::DestructiveCopy< Ptr >::clone U &  obj  )  [inline, static, protected]
 

template<typename Ptr>
static bool ONE::util::DestructiveCopy< Ptr >::release const Ptr &   )  [inline, static, protected]
 

template<typename Ptr>
static void ONE::util::DestructiveCopy< Ptr >::swap DestructiveCopy< Ptr > &   )  [inline, static, protected]
 


Generated on Wed Sep 7 19:03:31 2005 for ONEngine by  doxygen 1.4.3