NVIDIA IndeX: Math API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::base::Atom32 Class Reference

A 32-bit unsigned counter with atomic arithmetic, increments, and decrements. More...

#include <atom.h>

Public Member Functions

 Atom32 ()
 The default constructor initializes the counter to zero.
 
 Atom32 (const Uint32 value)
 This constructor initializes the counter to value.
 
 Atom32 (const mi::base::Atom32 &other)
 The copy constructor assigns the value of other to the counter.
 
mi::base::Atom32operator= (const mi::base::Atom32 &rhs)
 Assigns the value of rhs to the counter.
 
Uint32 operator= (const Uint32 rhs)
 Assigns rhs to the counter.
 
Uint32 operator+= (const Uint32 rhs)
 Adds rhs to the counter.
 
Uint32 operator-= (const Uint32 rhs)
 Subtracts rhs from the counter.
 
Uint32 operator++ ()
 Increments the counter by one (pre-increment).
 
Uint32 operator++ (int)
 Increments the counter by one (post-increment).
 
Uint32 operator-- ()
 Decrements the counter by one (pre-decrement).
 
Uint32 operator-- (int)
 Decrements the counter by one (post-decrement).
 
 operator Uint32 () const
 Conversion operator to mi::Uint32.
 
Uint32 swap (const Uint32 rhs)
 Assigns rhs to the counter and returns the old value of counter.
 

Detailed Description

A 32-bit unsigned counter with atomic arithmetic, increments, and decrements.


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