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

Reference counter structure. More...

#include <ref_counter.h>

List of all members.

Public Types

typedef allocator_type_ allocator_type
 Allocator type.

Static Public Member Functions

static ref_countscreate (allocator_type allocator, Counter references, Counter weakReferences)
 Allocates and constructs a new internal reference counting object from the given parameters.
static void destroy (const ref_counts *counts)
 Destructs and deallocates the given internal reference counting object.

Public Attributes

Counter references
 Reference counter.
Counter weakReferences
 Weak reference count.

Protected Member Functions

 ref_counts (const allocator_type_ &allocator, Counter references, Counter weakReferences)
 Constructor.

Detailed Description

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

Reference counter structure.


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