base::AutoFlag Class Reference

Automatically ensures a flag is cleared before a function returns. ~AutoFlag() will be invoked regardless of an unexpected early return or exception. More...

#include <_src_base_auto_flag.hh>

List of all members.

Public Member Functions

 AutoFlag (SafePtr< bool > pFlag)
 ~AutoFlag (void)

Private Attributes

const SafePtr< bool > mFlag


Detailed Description

Automatically ensures a flag is cleared before a function returns. ~AutoFlag() will be invoked regardless of an unexpected early return or exception.

Constructor & Destructor Documentation

base::AutoFlag::AutoFlag ( SafePtr< bool >  pFlag  )  [inline]

base::AutoFlag::~AutoFlag ( void   )  [inline]


Member Data Documentation

const SafePtr<bool> base::AutoFlag::mFlag [private]


The documentation for this class was generated from the following file:
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010