class Gambit::omp_safe_ptr

[No description available] More…

#include <util_types.hpp>

Inherits from Gambit::safe_ptr< TYPE >

Public Functions

Name
omp_safe_ptr(TYPE * in_ptr =NULL)
Constructor.
virtual const TYPE &operator*() const
Dereference pointer.

Additional inherited members

Public Functions inherited from Gambit::safe_ptr< TYPE >

Name
safe_ptr(TYPE * in_ptr =NULL)
Construct-o-safe_ptr.
virtual voidset(TYPE * in_ptr)
Set pointer.
virtual const TYPE &operator[](int index) const
Dereference pointer as if it is an array.
virtual const TYPE *operator->() const
Access is allowed to const member functions only.
virtual boolisNull() const

Protected Functions inherited from Gambit::safe_ptr< TYPE >

Name
voiddieGracefully()
Failure message invoked when the user tries to dereference a null safe_ptr.

Protected Attributes inherited from Gambit::safe_ptr< TYPE >

Name
const TYPE *ptr
The actual underlying pointer, interpreted as a pointer to constant value.

Detailed Description

template <typename TYPE >
class Gambit::omp_safe_ptr;

A safe pointer designed to point at an array, and return the entry in that array corresponding to the current OpenMP thread.

Public Functions Documentation

function omp_safe_ptr

inline omp_safe_ptr(
    TYPE * in_ptr =NULL
)

Constructor.

function operator*

inline virtual const TYPE & operator*() const

Dereference pointer.

Reimplements: Gambit::safe_ptr::operator*


Updated on 2023-06-26 at 21:36:50 +0000