mongo::Atomic< T >::tran Class Reference

#include <value.h>

Inheritance diagram for mongo::Atomic< T >::tran:
Inheritance graph
[legend]

List of all members.

Public Member Functions

T & ref ()
 tran (Atomic< T > &a)

Private Attributes

Atomic< T > & _a

Detailed Description

template<typename T>
class mongo::Atomic< T >::tran

example: Atomic<int> q; ... { Atomic<int>::tran t(q); if( q.ref() > 0 ) q.ref()--; }

Definition at line 55 of file value.h.


Constructor & Destructor Documentation

template<typename T>
mongo::Atomic< T >::tran::tran ( Atomic< T > &  a  )  [inline]

Definition at line 58 of file value.h.


Member Function Documentation

template<typename T>
T& mongo::Atomic< T >::tran::ref (  )  [inline]

Definition at line 59 of file value.h.


Member Data Documentation

template<typename T>
Atomic<T>& mongo::Atomic< T >::tran::_a [private]

Definition at line 56 of file value.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:53 2013