The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::tagged_bool_ns::tagged_bool< Tag > Class Template Reference

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/TaggedBool.h>

Public Member Functions

constexpr tagged_bool (bool v)
constexpr tagged_bool (int)=delete
constexpr tagged_bool (double)=delete
constexpr tagged_bool (void *)=delete
template<typename OtherTag>
constexpr tagged_bool (tagged_bool< OtherTag > b)
constexpr operator bool () const
constexpr tagged_bool operator! () const

Private Attributes

bool value

Friends

template<typename>
class tagged_bool
constexpr bool operator== (tagged_bool l, tagged_bool r)
constexpr bool operator!= (tagged_bool l, tagged_bool r)

Detailed Description

template<typename Tag>
class Gaudi::tagged_bool_ns::tagged_bool< Tag >

Definition at line 15 of file TaggedBool.h.

Constructor & Destructor Documentation

◆ tagged_bool() [1/5]

template<typename Tag>
Gaudi::tagged_bool_ns::tagged_bool< Tag >::tagged_bool ( bool v)
inlineexplicitconstexpr

Definition at line 21 of file TaggedBool.h.

◆ tagged_bool() [2/5]

template<typename Tag>
Gaudi::tagged_bool_ns::tagged_bool< Tag >::tagged_bool ( int )
explicitconstexprdelete

◆ tagged_bool() [3/5]

template<typename Tag>
Gaudi::tagged_bool_ns::tagged_bool< Tag >::tagged_bool ( double )
explicitconstexprdelete

◆ tagged_bool() [4/5]

template<typename Tag>
Gaudi::tagged_bool_ns::tagged_bool< Tag >::tagged_bool ( void * )
explicitconstexprdelete

◆ tagged_bool() [5/5]

template<typename Tag>
template<typename OtherTag>
Gaudi::tagged_bool_ns::tagged_bool< Tag >::tagged_bool ( tagged_bool< OtherTag > b)
inlineexplicitconstexpr

Definition at line 28 of file TaggedBool.h.

Member Function Documentation

◆ operator bool()

template<typename Tag>
Gaudi::tagged_bool_ns::tagged_bool< Tag >::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 30 of file TaggedBool.h.

30{ return value; }

◆ operator!()

template<typename Tag>
tagged_bool Gaudi::tagged_bool_ns::tagged_bool< Tag >::operator! ( ) const
inlineconstexpr

Definition at line 31 of file TaggedBool.h.

31{ return tagged_bool{ !value }; }
friend class tagged_bool
Definition TaggedBool.h:18

◆ operator!=

template<typename Tag>
bool operator!= ( tagged_bool< Tag > l,
tagged_bool< Tag > r )
friend

Definition at line 34 of file TaggedBool.h.

34{ return l.value != r.value; }

◆ operator==

template<typename Tag>
bool operator== ( tagged_bool< Tag > l,
tagged_bool< Tag > r )
friend

Definition at line 33 of file TaggedBool.h.

33{ return l.value == r.value; }

◆ tagged_bool

template<typename Tag>
template<typename>
friend class tagged_bool
friend

Definition at line 18 of file TaggedBool.h.

Member Data Documentation

◆ value

template<typename Tag>
bool Gaudi::tagged_bool_ns::tagged_bool< Tag >::value
private

Definition at line 16 of file TaggedBool.h.


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