v0.14.0
Public Types | Public Member Functions | Private Attributes | List of all members
MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 > Struct Template Reference

#include <include/Templates.hpp>

Collaboration diagram for MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >:
[legend]

Public Types

typedef KeyExtractor1::result_type result_type
 

Public Member Functions

 KeyFromKey (const KeyExtractor1 &key1_=KeyExtractor1(), const KeyExtractor2 &key2_=KeyExtractor2())
 
template<typename Arg >
result_type operator() (Arg &arg) const
 

Private Attributes

KeyExtractor1 key1
 
KeyExtractor2 key2
 

Detailed Description

template<class KeyExtractor1, class KeyExtractor2>
struct MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >

This small utility that cascades two key extractors will be used throughout the boost example http://www.boost.org/doc/libs/1_53_0/libs/multi_index/example/complex_structs.cpp

Definition at line 71 of file Templates.hpp.

Member Typedef Documentation

◆ result_type

template<class KeyExtractor1 , class KeyExtractor2 >
typedef KeyExtractor1::result_type MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >::result_type

Definition at line 73 of file Templates.hpp.

Constructor & Destructor Documentation

◆ KeyFromKey()

template<class KeyExtractor1 , class KeyExtractor2 >
MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >::KeyFromKey ( const KeyExtractor1 &  key1_ = KeyExtractor1(),
const KeyExtractor2 &  key2_ = KeyExtractor2() 
)
inline

Definition at line 75 of file Templates.hpp.

77  : key1(key1_), key2(key2_) {}

Member Function Documentation

◆ operator()()

template<class KeyExtractor1 , class KeyExtractor2 >
template<typename Arg >
result_type MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >::operator() ( Arg &  arg) const
inline

Definition at line 79 of file Templates.hpp.

79  {
80  return key1(key2(arg));
81  }

Member Data Documentation

◆ key1

template<class KeyExtractor1 , class KeyExtractor2 >
KeyExtractor1 MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >::key1
private

Definition at line 84 of file Templates.hpp.

◆ key2

template<class KeyExtractor1 , class KeyExtractor2 >
KeyExtractor2 MoFEM::KeyFromKey< KeyExtractor1, KeyExtractor2 >::key2
private

Definition at line 85 of file Templates.hpp.


The documentation for this struct was generated from the following file:
MoFEM::KeyFromKey::key2
KeyExtractor2 key2
Definition: Templates.hpp:85
MoFEM::KeyFromKey::key1
KeyExtractor1 key1
Definition: Templates.hpp:84