lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Member Functions | Protected Types | Protected Member Functions
lean::smart::resource_interface< Counter, Allocator > Class Template Reference

Interface that may be used to tag a specific class as a resource. More...

#include <resource.h>

List of all members.

Public Member Functions

virtual ~resource_interface () throw ()
 Destructor.
virtual
ref_counter_type::counter_type 
ref_count () const =0
 Gets the reference count.

Protected Types

typedef ref_counter< Counter,
Allocator > 
ref_counter_type
 Reference counter type.

Protected Member Functions

LEAN_INLINE resource_interfaceoperator= (const resource_interface &right)
 Assignment operator.
virtual const ref_counter_typeref_counter () const =0
 Returns the reference counter of this resource.

Detailed Description

template<class Counter = long, class Allocator = std::allocator<Counter>>
class lean::smart::resource_interface< Counter, Allocator >

Interface that may be used to tag a specific class as a resource.


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