NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Friends | List of all members
nvbio::WeakPointer< T, CounterT > Class Template Reference

Detailed description

template< typename T, typename CounterT>
class nvbio::WeakPointer< T, CounterT >

Definition at line 342 of file shared_pointer.h.

#include <shared_pointer.h>

Public Types

typedef T element_type
 
typedef internals::SharedCount
< CounterT >::Counter_Type 
Counter_Type
 

Public Methods

 WeakPointer ()
 
template<typename U >
 WeakPointer (const WeakPointer< U > &other)
 
template<typename U >
 WeakPointer (const SharedPointer< U, CounterT > &other)
 
template<typename U >
WeakPointeroperator= (const WeakPointer< U > &other)
 
template<typename U >
WeakPointeroperator= (const SharedPointer< U > &other)
 
SharedPointer< element_typelock () const
 
Counter_Type use_count () const
 
bool expired () const
 
void reset ()
 
void swap (WeakPointer &other)
 

Friends

template<typename U , typename UCounterT >
class SharedPointer
 
template<typename U , typename UCounterT >
class WeakPointer
 
template<typename U >
bool operator< (const WeakPointer &a, const WeakPointer< U > &b)
 

Member Typedef Documentation

template<typename T, typename CounterT>
typedef internals::SharedCount<CounterT>::Counter_Type nvbio::WeakPointer< T, CounterT >::Counter_Type

Definition at line 555 of file shared_pointer.h.

template<typename T, typename CounterT>
typedef T nvbio::WeakPointer< T, CounterT >::element_type

Definition at line 554 of file shared_pointer.h.

Constructor & Destructor Documentation

template<typename T, typename CounterT>
nvbio::WeakPointer< T, CounterT >::WeakPointer ( )
inline

Definition at line 557 of file shared_pointer.h.

template<typename T, typename CounterT>
template<typename U >
nvbio::WeakPointer< T, CounterT >::WeakPointer ( const WeakPointer< U > &  other)
inline

Definition at line 567 of file shared_pointer.h.

template<typename T, typename CounterT>
template<typename U >
nvbio::WeakPointer< T, CounterT >::WeakPointer ( const SharedPointer< U, CounterT > &  other)
inline

Definition at line 574 of file shared_pointer.h.

Member Function Documentation

template<typename T, typename CounterT>
bool nvbio::WeakPointer< T, CounterT >::expired ( ) const
inline

Definition at line 604 of file shared_pointer.h.

template<typename T, typename CounterT>
SharedPointer<element_type> nvbio::WeakPointer< T, CounterT >::lock ( ) const
inline

Definition at line 596 of file shared_pointer.h.

template<typename T, typename CounterT>
template<typename U >
WeakPointer& nvbio::WeakPointer< T, CounterT >::operator= ( const WeakPointer< U > &  other)
inline

Definition at line 581 of file shared_pointer.h.

template<typename T, typename CounterT>
template<typename U >
WeakPointer& nvbio::WeakPointer< T, CounterT >::operator= ( const SharedPointer< U > &  other)
inline

Definition at line 589 of file shared_pointer.h.

template<typename T, typename CounterT>
void nvbio::WeakPointer< T, CounterT >::reset ( )
inline

Definition at line 606 of file shared_pointer.h.

template<typename T, typename CounterT>
void nvbio::WeakPointer< T, CounterT >::swap ( WeakPointer< T, CounterT > &  other)
inline

Definition at line 608 of file shared_pointer.h.

template<typename T, typename CounterT>
Counter_Type nvbio::WeakPointer< T, CounterT >::use_count ( ) const
inline

Definition at line 602 of file shared_pointer.h.

Friends And Related Function Documentation

template<typename T, typename CounterT>
template<typename U >
bool operator< ( const WeakPointer< T, CounterT > &  a,
const WeakPointer< U > &  b 
)
friend

Definition at line 627 of file shared_pointer.h.

template<typename T, typename CounterT>
template<typename U , typename UCounterT >
friend class SharedPointer
friend

Definition at line 622 of file shared_pointer.h.

template<typename T, typename CounterT>
template<typename U , typename UCounterT >
friend class WeakPointer
friend

Definition at line 624 of file shared_pointer.h.


The documentation for this class was generated from the following file: