Public Types | Public Member Functions | Private Attributes | List of all members
art::Transient< T > Class Template Reference

#include <Transient.h>

Public Types

typedef T value_type
 

Public Member Functions

 Transient (T value=T())
 
 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>
typedef T art::Transient< T >::value_type

Definition at line 18 of file Transient.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file Transient.h.

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.

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

template<typename T>
T art::Transient< T >::value_
private

Definition at line 39 of file Transient.h.


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