comet::invariant_lock_impl::enforcer< CLASS > Struct Template Reference

#include <invariant_lock.h>

Inheritance diagram for comet::invariant_lock_impl::enforcer< CLASS >:

Inheritance graph
[legend]
Collaboration diagram for comet::invariant_lock_impl::enforcer< CLASS >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 enforcer (const CLASS *pobj, void(CLASS::*passert)() const)

Public Attributes

void(CLASS::* m_passert )() const
const CLASS * m_pobj

Detailed Description

template<typename CLASS>
struct comet::invariant_lock_impl::enforcer< CLASS >

A version of invariant_lock able to call any void member of a class. The member should provide an assertable condition that gets asserted on creation and destruction of the lock.
See also:
create_invariant_lock


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