My Project
Public Attributes | List of all members
NPLInterface::intrusive_ptr_single_thread_base Class Reference

single-threaded reference counted base class for boost::intrusive_ptr all boost::intrusive_ptr<T>, should derive from this class. More...

#include <NPLInterface.hpp>

Inheritance diagram for NPLInterface::intrusive_ptr_single_thread_base:
NPLInterface::NPLObjectBase NPLInterface::NPLBoolObject NPLInterface::NPLNumberObject NPLInterface::NPLStringObject NPLInterface::NPLTable

Public Attributes

long m_ref_count
 

Detailed Description

single-threaded reference counted base class for boost::intrusive_ptr all boost::intrusive_ptr<T>, should derive from this class.

this is NOT thead safe, use a lock when used by multiple thread. e.g. Class Foo : public intrusive_ptr_single_thread_base { members } so now Foo_ptr is the same as boost::shared_ptr typedef boost::intrusive_ptr<Foo> Foo_ptr;


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