CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::P2GTCandidate::Optional< T > Struct Template Reference

#include <P2GTCandidate.h>

Public Member Functions

 operator bool () const
 
 operator T () const
 
bool operator!= (bool rhs) const
 
bool operator== (bool rhs) const
 
 Optional ()
 
 Optional (T value)
 

Private Attributes

bool set_
 
T value_
 

Detailed Description

template<typename T>
struct l1t::P2GTCandidate::Optional< T >

Definition at line 52 of file P2GTCandidate.h.

Constructor & Destructor Documentation

◆ Optional() [1/2]

template<typename T>
l1t::P2GTCandidate::Optional< T >::Optional ( )
inline

Definition at line 53 of file P2GTCandidate.h.

◆ Optional() [2/2]

template<typename T>
l1t::P2GTCandidate::Optional< T >::Optional ( T  value)
inline

Definition at line 54 of file P2GTCandidate.h.

Member Function Documentation

◆ operator bool()

template<typename T>
l1t::P2GTCandidate::Optional< T >::operator bool ( ) const
inline

Definition at line 57 of file P2GTCandidate.h.

57 { return set_; }

◆ operator T()

template<typename T>
l1t::P2GTCandidate::Optional< T >::operator T ( ) const
inline

Definition at line 56 of file P2GTCandidate.h.

References l1t::P2GTCandidate::Optional< T >::value_.

◆ operator!=()

template<typename T>
bool l1t::P2GTCandidate::Optional< T >::operator!= ( bool  rhs) const
inline

Definition at line 60 of file P2GTCandidate.h.

60 { return set_ != rhs; }

◆ operator==()

template<typename T>
bool l1t::P2GTCandidate::Optional< T >::operator== ( bool  rhs) const
inline

Definition at line 59 of file P2GTCandidate.h.

59 { return set_ == rhs; }

Member Data Documentation

◆ set_

template<typename T>
bool l1t::P2GTCandidate::Optional< T >::set_
private

◆ value_

template<typename T>
T l1t::P2GTCandidate::Optional< T >::value_
private

Definition at line 63 of file P2GTCandidate.h.

Referenced by l1t::P2GTCandidate::Optional< T >::operator T().