Finite Volume Solver  prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
Public Member Functions | Private Attributes | List of all members
fub::OmpLocal< T, Allocator > Class Template Reference

#include <omp.hpp>

Public Member Functions

 OmpLocal ()=default
 
 OmpLocal (const T &value, Allocator alloc=Allocator())
 
T & Get () noexcept
 
const T & Get () const noexcept
 
T * operator-> () noexcept
 
const T * operator-> () const noexcept
 
T & operator* () noexcept
 
const T & operator* () const noexcept
 
const T & Min () const noexcept
 
template<typename BinaryOperation = std::plus<>>
auto Accumulate (BinaryOperation op=BinaryOperation()) const noexcept
 
template<typename BinaryOperator >
auto Accumulate (BinaryOperator op) const noexcept
 

Private Attributes

std::vector< T, Allocator > instances_
 

Constructor & Destructor Documentation

◆ OmpLocal() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
fub::OmpLocal< T, Allocator >::OmpLocal ( )
default

◆ OmpLocal() [2/2]

template<typename T , typename Allocator >
fub::OmpLocal< T, Allocator >::OmpLocal ( const T &  value,
Allocator  alloc = Allocator() 
)
explicit

Member Function Documentation

◆ Accumulate() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
template<typename BinaryOperation = std::plus<>>
auto fub::OmpLocal< T, Allocator >::Accumulate ( BinaryOperation  op = BinaryOperation()) const
noexcept

◆ Accumulate() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
template<typename BinaryOperator >
auto fub::OmpLocal< T, Allocator >::Accumulate ( BinaryOperator  op) const
noexcept

◆ Get() [1/2]

template<typename T , typename Allocator >
const T & fub::OmpLocal< T, Allocator >::Get
noexcept

◆ Get() [2/2]

template<typename T , typename Allocator >
T & fub::OmpLocal< T, Allocator >::Get
noexcept

◆ Min()

template<typename T , typename Allocator >
const T & fub::OmpLocal< T, Allocator >::Min
noexcept

◆ operator*() [1/2]

template<typename T , typename Allocator >
const T & fub::OmpLocal< T, Allocator >::operator*
noexcept

◆ operator*() [2/2]

template<typename T , typename Allocator >
T & fub::OmpLocal< T, Allocator >::operator*
noexcept

◆ operator->() [1/2]

template<typename T , typename Allocator >
const T * fub::OmpLocal< T, Allocator >::operator->
noexcept

◆ operator->() [2/2]

template<typename T , typename Allocator >
T * fub::OmpLocal< T, Allocator >::operator->
noexcept

Member Data Documentation

◆ instances_

template<typename T , typename Allocator = std::allocator<T>>
std::vector<T, Allocator> fub::OmpLocal< T, Allocator >::instances_
private

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