ivutils
Loading...
Searching...
No Matches
DiagnosticPointer< T, LocalInterface, Interfaces > Class Template Reference

LocalInterface made reverse compatible with CopyInterfaces of the LocalPointer. More...

#include <diagn_pointer.h>

Collaboration diagram for DiagnosticPointer< T, LocalInterface, Interfaces >:

Public Member Functions

template<class Interface >
const auto & get () const
 Returns a diagn value.
 

Protected Member Functions

T * get_local (std::size_t i)
 Gets local copy, resize if a threads number changes.
 

Detailed Description

template<typename T, class LocalInterface, class ... Interfaces>
class DiagnosticPointer< T, LocalInterface, Interfaces >

LocalInterface made reverse compatible with CopyInterfaces of the LocalPointer.

Member Function Documentation

◆ get()

template<typename T , class LocalInterface , class ... Interfaces>
template<class Interface >
const auto & DiagnosticPointer< T, LocalInterface, Interfaces >::get ( ) const
inline

Returns a diagn value.

Recommended to call after joins AND the barrier that garanties that all joins are done.

◆ get_local()

template<typename T , class LocalInterface , class ... Interfaces>
T * DiagnosticPointer< T, LocalInterface, Interfaces >::get_local ( std::size_t  i)
inlineprotected

Gets local copy, resize if a threads number changes.

It doesn't make sense to aquire constant value for pointer to diagnostics. We are writing into it, all obtainable values are generated by Interfaces.


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