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

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

#include <resource.h>

List of all members.

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 resourceoperator= (const resource &right)
 Assignment operator.
LEAN_INLINE ~resource () throw ()
 Destructor.
const ref_counter_typeref_counter () const
 Returns the reference counter of this resource.

Protected Attributes

ref_counter_type m_refCounter

Detailed Description

template<class Counter = long, class Allocator = std::allocator<Counter>, bool Lazy = false>
class lean::smart::resource< Counter, Allocator, Lazy >

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


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