C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::parallel::cache_wrapper< Type, CacheSize > Struct Template Reference

#include <tpf_parallel.hpp>

Public Member Functions

 cache_wrapper (Type v=Type{})
 
 cache_wrapper (const cache_wrapper &)=default
 
cache_wrapperoperator= (const cache_wrapper &)=default
 
 cache_wrapper (cache_wrapper &&)=default
 
cache_wrapperoperator= (cache_wrapper &&)=default
 
const Type & get () const noexcept
 
 operator const Type & () const noexcept
 
 operator Type & () noexcept
 
Type * operator& () noexcept
 
const Type * operator& () const noexcept
 

Friends

bool operator< (const cache_wrapper &left, const cache_wrapper &right)
 
bool operator<= (const cache_wrapper &left, const cache_wrapper &right)
 
bool operator> (const cache_wrapper &left, const cache_wrapper &right)
 
bool operator>= (const cache_wrapper &left, const cache_wrapper &right)
 
bool operator== (const cache_wrapper &left, const cache_wrapper &right)
 
bool operator!= (const cache_wrapper &left, const cache_wrapper &right)
 

Detailed Description

template<typename Type, size_t CacheSize = cache_line_size>
struct tpf::parallel::cache_wrapper< Type, CacheSize >

Definition at line 234 of file tpf_parallel.hpp.

Constructor & Destructor Documentation

◆ cache_wrapper() [1/3]

template<typename Type , size_t CacheSize = cache_line_size>
tpf::parallel::cache_wrapper< Type, CacheSize >::cache_wrapper ( Type  v = Type{})
inline

Definition at line 240 of file tpf_parallel.hpp.

◆ cache_wrapper() [2/3]

template<typename Type , size_t CacheSize = cache_line_size>
tpf::parallel::cache_wrapper< Type, CacheSize >::cache_wrapper ( const cache_wrapper< Type, CacheSize > &  )
default

◆ cache_wrapper() [3/3]

template<typename Type , size_t CacheSize = cache_line_size>
tpf::parallel::cache_wrapper< Type, CacheSize >::cache_wrapper ( cache_wrapper< Type, CacheSize > &&  )
default

Member Function Documentation

◆ get()

template<typename Type , size_t CacheSize = cache_line_size>
const Type & tpf::parallel::cache_wrapper< Type, CacheSize >::get ( ) const
inlinenoexcept

Definition at line 248 of file tpf_parallel.hpp.

Here is the caller graph for this function:

◆ operator const Type &()

template<typename Type , size_t CacheSize = cache_line_size>
tpf::parallel::cache_wrapper< Type, CacheSize >::operator const Type & ( ) const
inlinenoexcept

Definition at line 253 of file tpf_parallel.hpp.

◆ operator Type &()

template<typename Type , size_t CacheSize = cache_line_size>
tpf::parallel::cache_wrapper< Type, CacheSize >::operator Type & ( )
inlinenoexcept

Definition at line 258 of file tpf_parallel.hpp.

◆ operator&() [1/2]

template<typename Type , size_t CacheSize = cache_line_size>
const Type * tpf::parallel::cache_wrapper< Type, CacheSize >::operator& ( ) const
inlinenoexcept

Definition at line 268 of file tpf_parallel.hpp.

◆ operator&() [2/2]

template<typename Type , size_t CacheSize = cache_line_size>
Type * tpf::parallel::cache_wrapper< Type, CacheSize >::operator& ( )
inlinenoexcept

Definition at line 263 of file tpf_parallel.hpp.

◆ operator=() [1/2]

template<typename Type , size_t CacheSize = cache_line_size>
cache_wrapper & tpf::parallel::cache_wrapper< Type, CacheSize >::operator= ( cache_wrapper< Type, CacheSize > &&  )
default

◆ operator=() [2/2]

template<typename Type , size_t CacheSize = cache_line_size>
cache_wrapper & tpf::parallel::cache_wrapper< Type, CacheSize >::operator= ( const cache_wrapper< Type, CacheSize > &  )
default

Friends And Related Function Documentation

◆ operator!=

template<typename Type , size_t CacheSize = cache_line_size>
bool operator!= ( const cache_wrapper< Type, CacheSize > &  left,
const cache_wrapper< Type, CacheSize > &  right 
)
friend

Definition at line 298 of file tpf_parallel.hpp.

◆ operator<

template<typename Type , size_t CacheSize = cache_line_size>
bool operator< ( const cache_wrapper< Type, CacheSize > &  left,
const cache_wrapper< Type, CacheSize > &  right 
)
friend

Definition at line 273 of file tpf_parallel.hpp.

◆ operator<=

template<typename Type , size_t CacheSize = cache_line_size>
bool operator<= ( const cache_wrapper< Type, CacheSize > &  left,
const cache_wrapper< Type, CacheSize > &  right 
)
friend

Definition at line 278 of file tpf_parallel.hpp.

◆ operator==

template<typename Type , size_t CacheSize = cache_line_size>
bool operator== ( const cache_wrapper< Type, CacheSize > &  left,
const cache_wrapper< Type, CacheSize > &  right 
)
friend

Definition at line 293 of file tpf_parallel.hpp.

◆ operator>

template<typename Type , size_t CacheSize = cache_line_size>
bool operator> ( const cache_wrapper< Type, CacheSize > &  left,
const cache_wrapper< Type, CacheSize > &  right 
)
friend

Definition at line 283 of file tpf_parallel.hpp.

◆ operator>=

template<typename Type , size_t CacheSize = cache_line_size>
bool operator>= ( const cache_wrapper< Type, CacheSize > &  left,
const cache_wrapper< Type, CacheSize > &  right 
)
friend

Definition at line 288 of file tpf_parallel.hpp.


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