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

Detailed description

template< typename CounterT>
class nvbio::internals::CountedBase< CounterT >

Definition at line 58 of file shared_pointer.h.

#include <shared_pointer.h>

Inheritance diagram for nvbio::internals::CountedBase< CounterT >:
nvbio::internals::CountedBase_impl< PtrT, DeleterT, CounterT >

Public Types

typedef CounterT Counter_Type
 

Public Methods

 CountedBase ()
 
virtual ~CountedBase ()
 
virtual void dispose ()=0
 called when m_shcount goes to 0 More...
 
virtual void destroy ()
 called when m_wkcount goes to 0 More...
 
virtual void * get_deleter (const std::type_info &)=0
 
void add_ref_copy ()
 
void add_ref_lock ()
 
void release ()
 
void weak_add_ref ()
 
void weak_release ()
 
Counter_Type use_count () const
 

Member Typedef Documentation

template<typename CounterT>
typedef CounterT nvbio::internals::CountedBase< CounterT >::Counter_Type

Definition at line 60 of file shared_pointer.h.

Constructor & Destructor Documentation

template<typename CounterT>
nvbio::internals::CountedBase< CounterT >::CountedBase ( )
inline

Definition at line 61 of file shared_pointer.h.

template<typename CounterT>
virtual nvbio::internals::CountedBase< CounterT >::~CountedBase ( )
inlinevirtual

Definition at line 66 of file shared_pointer.h.

Member Function Documentation

template<typename CounterT>
void nvbio::internals::CountedBase< CounterT >::add_ref_copy ( )
inline

Definition at line 76 of file shared_pointer.h.

template<typename CounterT>
void nvbio::internals::CountedBase< CounterT >::add_ref_lock ( )
inline

Definition at line 78 of file shared_pointer.h.

template<typename CounterT>
virtual void nvbio::internals::CountedBase< CounterT >::destroy ( )
inlinevirtual

called when m_wkcount goes to 0

Definition at line 72 of file shared_pointer.h.

template<typename CounterT>
virtual void nvbio::internals::CountedBase< CounterT >::dispose ( )
pure virtual

called when m_shcount goes to 0

Implemented in nvbio::internals::CountedBase_impl< PtrT, DeleterT, CounterT >.

template<typename CounterT>
virtual void* nvbio::internals::CountedBase< CounterT >::get_deleter ( const std::type_info &  )
pure virtual
template<typename CounterT>
void nvbio::internals::CountedBase< CounterT >::release ( )
inline

Definition at line 80 of file shared_pointer.h.

template<typename CounterT>
Counter_Type nvbio::internals::CountedBase< CounterT >::use_count ( ) const
inline

Definition at line 94 of file shared_pointer.h.

template<typename CounterT>
void nvbio::internals::CountedBase< CounterT >::weak_add_ref ( )
inline

Definition at line 87 of file shared_pointer.h.

template<typename CounterT>
void nvbio::internals::CountedBase< CounterT >::weak_release ( )
inline

Definition at line 88 of file shared_pointer.h.


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