Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::ContextType Class Reference

#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/detail/ContextType.hpp>

+ Inheritance diagram for Acts::ContextType:

Public Member Functions

 ContextType ()=default
 
template<typename T >
 ContextType (T &&value)
 

Detailed Description

Strong type wrapper around std::any. This has all the flexibility of std::any, but it does not convert-construct from anything. You have to call one of the explicit constructors manually to populate the internal std::any. You can then access and modify the any as desired.

Note
This is used for the context types, and should probably not be used outside of this use-case.

Definition at line 22 of file ContextType.hpp.

View newest version in sPHENIX GitHub at line 22 of file ContextType.hpp

Constructor & Destructor Documentation

Acts::ContextType::ContextType ( )
default

Default constructor, does nothing

template<typename T >
Acts::ContextType::ContextType ( T &&  value)
inlineexplicit

Move construct a new Context Type object from anything. Must be explicit.

Template Parameters
TThe type of the value to construct from
Parameters
valueThe value to construct from

Definition at line 33 of file ContextType.hpp.

View newest version in sPHENIX GitHub at line 33 of file ContextType.hpp

References testing::internal::move(), and value.

+ Here is the call graph for this function:


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