lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Base class that may be used to tag a specific class as a resource. More...
#include <resource.h>
Public Member Functions | |
ref_counter_type::counter_type | ref_count () const |
Gets the reference count. | |
Protected Types | |
typedef resource | lean_resource_base |
Resource base type. | |
typedef ref_counter< Counter, Allocator > | ref_counter_type |
Reference counter type. | |
Protected Member Functions | |
resource () | |
Default constructor. | |
resource (const typename ref_counter_type::allocator_type &allocator) | |
Allocator constructor. | |
LEAN_INLINE | resource (const resource &right) |
Copy constructor. | |
LEAN_INLINE resource & | operator= (const resource &right) |
Assignment operator. | |
LEAN_INLINE | ~resource () throw () |
Destructor. | |
const ref_counter_type & | ref_counter () const |
Returns the reference counter of this resource. | |
Protected Attributes | |
ref_counter_type | m_refCounter |
Base class that may be used to tag a specific class as a resource.