ARB
|
Go to the source code of this file.
Classes | |
class | custom_dealloc_ptr< T, DEALLOC > |
class | auto_free_ptr< T > |
class | auto_delete_ptr< T > |
class | auto_delete_array_ptr< T > |
class | SmartPtr< T, C > |
Generic smart pointer. More... | |
class | Counted< T, AP > |
class | SmartPtr< T, C > |
Generic smart pointer. More... | |
Macros | |
#define | tpl_assert(bed) arb_assert(bed) |
#define | SmartArrayPtr(type) SmartPtr<type, Counted<type, auto_delete_array_ptr<type> > > |
#define | SmartMallocPtr(type) SmartPtr<type, Counted<type, auto_free_ptr<type> > > |
#define | SmartCustomPtr(type, deallocator) SmartPtr<type, Counted<type, custom_dealloc_ptr<type, deallocator> > > |
#define | DUMP_SMART_PTRS_DO(cmd) |
#define | RETURN_LOCAL_ALLOC(mallocation) |
#define | RETURN_ONETIME_ALLOC(allocated) |
Functions | |
template<class T , class C > | |
bool | operator== (const SmartPtr< T, C > &s1, const SmartPtr< T, C > &s2) |
template<class T , class C > | |
bool | operator!= (const SmartPtr< T, C > &s1, const SmartPtr< T, C > &s2) |
typedef | SmartMallocPtr (char) SmartCharPtr |
#define tpl_assert | ( | bed | ) | arb_assert(bed) |
Definition at line 28 of file smartptr.h.
Referenced by Counted< T, AP >::Counted(), Counted< T, AP >::free_reference(), SmartPtr< PS_Node >::operator*(), SmartPtr< PS_Node >::operator->(), and SmartPtr< PS_Node >::sameObject().
Definition at line 44 of file smartptr.h.
Definition at line 45 of file smartptr.h.
Referenced by GB_command_interpreter_in_env(), and readable_probe().
#define SmartCustomPtr | ( | type, | |
deallocator | |||
) | SmartPtr<type, Counted<type, custom_dealloc_ptr<type, deallocator> > > |
Definition at line 46 of file smartptr.h.
Referenced by getIcon().
#define DUMP_SMART_PTRS_DO | ( | cmd | ) |
Definition at line 73 of file smartptr.h.
Referenced by auto_delete_array_ptr< T >::auto_delete_array_ptr(), auto_delete_ptr< T >::auto_delete_ptr(), auto_free_ptr< T >::auto_free_ptr(), Counted< T, AP >::Counted(), custom_dealloc_ptr< T, DEALLOC >::custom_dealloc_ptr(), Counted< T, AP >::free_reference(), Counted< T, AP >::new_reference(), auto_delete_array_ptr< T >::~auto_delete_array_ptr(), auto_delete_ptr< T >::~auto_delete_ptr(), auto_free_ptr< T >::~auto_free_ptr(), and custom_dealloc_ptr< T, DEALLOC >::~custom_dealloc_ptr().
#define RETURN_LOCAL_ALLOC | ( | mallocation | ) |
Definition at line 310 of file smartptr.h.
Referenced by GB_get_db_path(), GBS_nameserver_tag(), jobLabel(), PT_FamilyFinder::results2string(), shorttimekeep(), ACI_Labeler::speciesLabel(), and upcase().
#define RETURN_ONETIME_ALLOC | ( | allocated | ) |
Definition at line 315 of file smartptr.h.
Referenced by flagDir(), GB_getcwd(), GBS_ptserver_logname(), runDir(), and unitTesterDir().
bool operator== | ( | const SmartPtr< T, C > & | s1, |
const SmartPtr< T, C > & | s2 | ||
) |
Definition at line 297 of file smartptr.h.
References SmartPtr< T, C >::sameObject().
bool operator!= | ( | const SmartPtr< T, C > & | s1, |
const SmartPtr< T, C > & | s2 | ||
) |
Definition at line 301 of file smartptr.h.
References SmartPtr< T, C >::sameObject().
typedef SmartMallocPtr | ( | char | ) |