Classes |
class | thor::CopiedPtr< T, OwnershipPolicy > |
| Generic smart pointer class that supports several deep copy ownership policies. More...
|
class | thor::MovedPtr< T, OwnershipPolicy > |
| Smart pointer with move semantics. More...
|
struct | thor::NoCopy< T > |
| Ownership policy that performs no copy. More...
|
struct | thor::StaticCopy< T > |
| Ownership policy that performs a deep value copy. More...
|
struct | thor::DynamicCopy< T > |
| Ownership policy that performs a deep copy depending on the object's dynamic type. More...
|
struct | thor::VirtualClone< T > |
| Ownership policy that calls a virtual Clone() function. More...
|
class | thor::ScopedPtr< T > |
| Noncopyable smart pointer that destroys objects going out of scope. More...
|
Functions |
template<typename T , template< typename > class OwnershipPolicy> |
MovedPtr< T, OwnershipPolicy > | thor::Move (CopiedPtr< T, OwnershipPolicy > &source) |
| Creates a MovedPtr from a CopiedPtr by moving ownership.
|
template<typename T , template< typename > class OwnershipPolicy> |
MovedPtr< T, OwnershipPolicy > | thor::Copy (const CopiedPtr< T, OwnershipPolicy > &origin) |
| Creates a MovedPtr from a CopiedPtr by copying ownership.
|
template<typename T , template< typename > class OwnershipPolicy> |
void | thor::swap (CopiedPtr< T, OwnershipPolicy > &lhs, CopiedPtr< T, OwnershipPolicy > &rhs) |
| Swaps two CopiedPtr<T, OwnershipPolicy> instances.
|
template<typename T , template< typename > class OwnershipPolicy> |
MovedPtr< T, OwnershipPolicy > | thor::Copy (const MovedPtr< T, OwnershipPolicy > &origin) |
| Creates a MovedPtr from another MovedPtr by copying ownership.
|
template<typename T , template< typename > class OwnershipPolicy> |
void | thor::swap (MovedPtr< T, OwnershipPolicy > &lhs, MovedPtr< T, OwnershipPolicy > &rhs) |
| Swaps two MovedPtr<T, OwnershipPolicy> instances.
|
template<typename T > |
void | thor::swap (ScopedPtr< T > &lhs, ScopedPtr< T > &rhs) |
| Swaps two ScopedPtr<T> instances.
|
Provides smart pointers with different ownership strategies.