ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Methods | List of all members
ScopeStoreHelper< T, TStackedThreadValues > Struct Template Reference

Class Description

template<typename T, bool TStackedThreadValues>
struct aworx::lib::lox::detail::ScopeStoreHelper< T, TStackedThreadValues >

A helper class that has two specializations to implement different versions of methods ScopeStore::Walk and ScopeStore::access for each boolean value of template argument TStackedThreadValues.
The helper is needed to support If C++ 11 and the current Microsoft compiler by ALib. (With C++ 17, the helper would not be needed.)

Template Parameters
TThe stored object type.
TStackedThreadValuesIf true, values stored for thread scopes will be always replaced instead of appended. This is for example false for Log Data and Log Once and true for Scope Domains and Prefix Logables.

Definition at line 94 of file scopestore.inl.

Public Methods

doAccess (ScopeStore< T, TStackedThreadValues > &self, int cmd, T value)
 
doWalk (ScopeStore< T, TStackedThreadValues > &self)
 

Member Function Documentation

◆ doAccess()

T doAccess ( ScopeStore< T, TStackedThreadValues > &  self,
int  cmd,
value 
)

Implements ScopeStore::access with two specializations.

Parameters
selfThe ScopeStore that invoked us.
cmdParameter cmd of the original method.
valueParameter value of the original method.
Returns
The result as specified in ScopeStore::access.

◆ doWalk()

T doWalk ( ScopeStore< T, TStackedThreadValues > &  self)

Implements ScopeStore::Walk with two specializations.

Parameters
selfThe ScopeStore that invoked us.
Returns
The result as specified in ScopeStore::Walk.

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