ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trig::EmulContext::HolderT< T, Enable > Class Template Reference
Inheritance diagram for Trig::EmulContext::HolderT< T, Enable >:
Collaboration diagram for Trig::EmulContext::HolderT< T, Enable >:

Public Member Functions

 HolderT (std::unique_ptr< T > &&value)
 
const std::type_info & type () const
 
const T * value () const
 

Private Attributes

std::unique_ptr< T > m_value
 

Detailed Description

template<typename T, typename Enable = std::enable_if_t<std::is_nothrow_move_constructible<T>::value>>
class Trig::EmulContext::HolderT< T, Enable >

Definition at line 27 of file EmulContext.h.

Constructor & Destructor Documentation

◆ HolderT()

template<typename T , typename Enable = std::enable_if_t<std::is_nothrow_move_constructible<T>::value>>
Trig::EmulContext::HolderT< T, Enable >::HolderT ( std::unique_ptr< T > &&  value)

Definition at line 60 of file EmulContext.h.

61  : m_value( std::move(value) )
62  {}

Member Function Documentation

◆ type()

template<typename T , typename Enable = std::enable_if_t<std::is_nothrow_move_constructible<T>::value>>
const std::type_info & Trig::EmulContext::HolderT< T, Enable >::type ( ) const
virtual

Implements Trig::EmulContext::IHolder.

Definition at line 65 of file EmulContext.h.

65  {
66  return typeid(T);
67  }

◆ value()

template<typename T , typename Enable = std::enable_if_t<std::is_nothrow_move_constructible<T>::value>>
const T * Trig::EmulContext::HolderT< T, Enable >::value ( ) const

Definition at line 70 of file EmulContext.h.

70  {
71  return m_value.get();
72  }

Member Data Documentation

◆ m_value

template<typename T , typename Enable = std::enable_if_t<std::is_nothrow_move_constructible<T>::value>>
std::unique_ptr<T> Trig::EmulContext::HolderT< T, Enable >::m_value
private

Definition at line 36 of file EmulContext.h.


The documentation for this class was generated from the following file:
Trig::EmulContext::HolderT::value
const T * value() const
Definition: EmulContext.h:70
Trig::EmulContext::HolderT::m_value
std::unique_ptr< T > m_value
Definition: EmulContext.h:36
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35