DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::timing::stol< T > Struct Template Reference

#include <toolbox.hxx>

Public Member Functions

 BOOST_STATIC_ASSERT ((boost::is_signed< T >::value))
 operator T () const

Public Attributes

value

Friends

std::istream & operator>> (std::istream &in, stol &out)

Detailed Description

template<typename T>
struct dunedaq::timing::stol< T >

Definition at line 29 of file toolbox.hxx.

Member Function Documentation

◆ BOOST_STATIC_ASSERT()

template<typename T>
dunedaq::timing::stol< T >::BOOST_STATIC_ASSERT ( (boost::is_signed< T >::value) )

◆ operator T()

template<typename T>
dunedaq::timing::stol< T >::operator T ( ) const
inline

Definition at line 34 of file toolbox.hxx.

34{ return value; }

◆ operator>>

template<typename T>
std::istream & operator>> ( std::istream & in,
stol< T > & out )
friend

Definition at line 36 of file toolbox.hxx.

37 {
39 in >> buf;
40 out.value = strtol(buf.c_str(), NULL, 0);
41 return in;
42 }

Member Data Documentation

◆ value

template<typename T>
T dunedaq::timing::stol< T >::value

Definition at line 32 of file toolbox.hxx.


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