Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXAtomicPtr< EType > Class Template Reference

An atomically modifyable pointer. More...

#include <FXAtomic.h>

List of all members.

Public Member Functions

 FXAtomicPtr (EType *p=NULL)
FXAtomicPtroperator= (EType *p)
 operator EType * () const
EType & operator* () const
EType * operator-> () const
EType * get () const
EType * set (EType *p)
EType * cas (EType *expect, EType *p)


Detailed Description

template<class EType>
class FX::FXAtomicPtr< EType >

An atomically modifyable pointer.

Constructor & Destructor Documentation

template<class EType>
FX::FXAtomicPtr< EType >::FXAtomicPtr ( EType *  p = NULL  )  [inline]

Constructs an atomic pointer with a given initial value.


Member Function Documentation

template<class EType>
FXAtomicPtr& FX::FXAtomicPtr< EType >::operator= ( EType *  p  )  [inline]

Assign from pointer.

template<class EType>
FX::FXAtomicPtr< EType >::operator EType * (  )  const [inline]

Returns current value of the pointer.

template<class EType>
EType& FX::FXAtomicPtr< EType >::operator* (  )  const [inline]

Dereference operator.

template<class EType>
EType* FX::FXAtomicPtr< EType >::operator-> (  )  const [inline]

Follow pointer operator.

template<class EType>
EType* FX::FXAtomicPtr< EType >::get (  )  const [inline]

Returns current value of the pointer.

template<class EType>
EType* FX::FXAtomicPtr< EType >::set ( EType *  p  )  [inline]

Set pointer to p; return old value.

template<class EType>
EType* FX::FXAtomicPtr< EType >::cas ( EType *  expect,
EType *  p 
) [inline]

If pointer is equal to expect, set it to p; returns old value.

Copyright © 1997-2010 Jeroen van der Zijp