LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::Transient< T > Class Template Reference

#include "Transient.h"

Public Types

using value_type = T
 

Public Member Functions

 Transient (T value={})
 
 operator T () const
 
Transientoperator= (T rh)
 
T const & get () const noexcept
 
T & get () noexcept
 

Private Attributes

value_
 

Detailed Description

template<typename T>
class art::Transient< T >

Definition at line 16 of file Transient.h.

Member Typedef Documentation

template<typename T>
using art::Transient< T >::value_type = T

Definition at line 18 of file Transient.h.

Constructor & Destructor Documentation

template<typename T>
art::Transient< T >::Transient ( value = {})
inline

Definition at line 19 of file Transient.h.

19 {}) : value_(value) {}
double value
Definition: spectrum.C:18

Member Function Documentation

template<typename T>
T const& art::Transient< T >::get ( ) const
inlinenoexcept

Definition at line 28 of file Transient.h.

29  {
30  return value_;
31  }
template<typename T>
T& art::Transient< T >::get ( )
inlinenoexcept

Definition at line 33 of file Transient.h.

34  {
35  return value_;
36  }
template<typename T>
art::Transient< T >::operator T ( ) const
inline

Definition at line 20 of file Transient.h.

References art::Transient< T >::value_.

20 { return value_; }
template<typename T>
Transient& art::Transient< T >::operator= ( rh)
inline

Definition at line 22 of file Transient.h.

23  {
24  value_ = rh;
25  return *this;
26  }

Member Data Documentation


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