BioDynaMo  v1.05.119-a4ff3934
Classes | Functions
bdm::detail Namespace Reference

Classes

struct  ExtractUid
 
struct  GetIndexImpl
 
struct  GetIndexImpl< T, Counter, FirstType >
 
struct  GetIndexImpl< T, Counter, FirstType, RemainingTypes... >
 
struct  InitializeGPUData
 

Functions

void ConcatNextPart (std::ostringstream *ss)
 Appends the closing string to the message. More...
 
template<typename T , typename... Args>
void ConcatNextPart (std::ostringstream *ss, const T &arg, const Args &... parts)
 Appends the next part of the message. More...
 
template<typename TTuple , typename TFunction , size_t TIndex>
void ApplyImpl (TTuple *t, TFunction &&function)
 
template<typename TTuple , typename TFunction , size_t... TIndices>
void Apply (TTuple *t, size_t index, TFunction &&f, std::index_sequence< TIndices... >)
 

Function Documentation

◆ Apply()

template<typename TTuple , typename TFunction , size_t... TIndices>
void bdm::detail::Apply ( TTuple *  t,
size_t  index,
TFunction &&  f,
std::index_sequence< TIndices... >   
)

Does the translation of runtime index to compile time index by using a look up table (lut) array of ApplyImpl functions. Forwards the call to ApplyImpl

Definition at line 42 of file tuple.h.

◆ ApplyImpl()

template<typename TTuple , typename TFunction , size_t TIndex>
void bdm::detail::ApplyImpl ( TTuple *  t,
TFunction &&  function 
)

Applies the given function on tuple element TIndex This function is called from detail::Apply. It has a compile time index to be used in std::get to obtain the right type within the tuple. The obtained type is then passed to function.

Definition at line 34 of file tuple.h.

◆ ConcatNextPart() [1/2]

void bdm::detail::ConcatNextPart ( std::ostringstream *  ss)
inline

Appends the closing string to the message.

Parameters
[in]ssthe stringstream that holds the message

Definition at line 44 of file string.h.

◆ ConcatNextPart() [2/2]

template<typename T , typename... Args>
void bdm::detail::ConcatNextPart ( std::ostringstream *  ss,
const T &  arg,
const Args &...  parts 
)
inline

Appends the next part of the message.

Parameters
[in]ssthe stringstream that holds the message
[in]argthe part to be appended next
[in]partsthe rest of the parts, waiting to be appended

Definition at line 53 of file string.h.