Belle II Software development
ax_type< T1, T2 > Struct Template Reference
Inheritance diagram for ax_type< T1, T2 >:

Public Types

using struct_maker = T2
 
using data_t = T1
 

Public Member Functions

constexpr ax_type (T1 t1)
 
constexpr ax_type operator= (T1 &&t1) const
 
constexpr ax_type operator= (const T1 &t1) const
 
template<typename T_IN >
constexpr ax_type operator() (T_IN &&t1) const
 
template<typename T_IN >
constexpr ax_type operator() (const T_IN &t1) const
 
constexpr ax_type operator= (T1 &&t1)
 
constexpr ax_typeoperator= (const T1 &t1)
 
template<typename T >
constexpr ax_typeoperator= (const ax_type< T1, T > &t1)
 
 operator T1 ()
 
 operator const T1 () const
 

Public Attributes

T1 v = {}
 

Friends

template<typename T_RHS >
constexpr bool operator< (const ax_type &lhs, const ax_type< T1, T_RHS > &rhs)
 
template<typename T_RHS >
constexpr bool operator<= (const ax_type &lhs, const ax_type< T1, T_RHS > &rhs)
 
template<typename T_RHS >
constexpr bool operator== (const ax_type &lhs, const ax_type< T1, T_RHS > &rhs)
 
template<typename T_RHS >
constexpr bool operator!= (const ax_type &lhs, const ax_type< T1, T_RHS > &rhs)
 
template<typename T_RHS >
constexpr bool operator>= (const ax_type &lhs, const ax_type< T1, T_RHS > &rhs)
 
template<typename T_RHS >
constexpr bool operator> (const ax_type &lhs, const ax_type< T1, T_RHS > &rhs)
 
constexpr bool operator< (const ax_type &lhs, const T1 &rhs)
 
constexpr bool operator< (const T1 lhs, const ax_type &rhs)
 
constexpr bool operator<= (const ax_type &lhs, const T1 &rhs)
 
constexpr bool operator<= (const T1 &lhs, const ax_type &rhs)
 
constexpr bool operator== (const ax_type &lhs, const T1 &rhs)
 
constexpr bool operator== (const T1 &lhs, const ax_type &rhs)
 
constexpr bool operator!= (const ax_type &lhs, const T1 &rhs)
 
constexpr bool operator!= (const T1 &lhs, const ax_type &rhs)
 
constexpr bool operator>= (const ax_type &lhs, const T1 &rhs)
 
constexpr bool operator>= (const T1 &lhs, const ax_type &rhs)
 
constexpr bool operator> (const ax_type &lhs, const T1 &rhs)
 
constexpr bool operator> (const T1 &lhs, const ax_type &rhs)
 
std::ostream & operator<< (std::ostream &out, const ax_type &self)
 

Detailed Description

template<typename T1, typename T2>
struct nt::ax_type< T1, T2 >

Definition at line 51 of file ntuples_full.h.

Member Typedef Documentation

◆ data_t

using data_t = T1

Definition at line 82 of file ntuples_full.h.

◆ struct_maker

using struct_maker = T2

Definition at line 81 of file ntuples_full.h.

Constructor & Destructor Documentation

◆ ax_type() [1/2]

constexpr ax_type ( )
inlineconstexpr

Definition at line 53 of file ntuples_full.h.

53{}

◆ ax_type() [2/2]

constexpr ax_type ( T1  t1)
inlineconstexpr

Definition at line 54 of file ntuples_full.h.

54: v(std::move(t1)) {}

Member Function Documentation

◆ operator const T1()

operator const T1 ( ) const
inline

Definition at line 89 of file ntuples_full.h.

90 {
91 return v;
92 }

◆ operator T1()

operator T1 ( )
inline

Definition at line 84 of file ntuples_full.h.

85 {
86 return v;
87 }

◆ operator()() [1/2]

constexpr ax_type operator() ( const T_IN &  t1) const
inlineconstexpr

Definition at line 62 of file ntuples_full.h.

62{ return ax_type(static_cast<T1>(t1)); }

◆ operator()() [2/2]

constexpr ax_type operator() ( T_IN &&  t1) const
inlineconstexpr

Definition at line 59 of file ntuples_full.h.

59{ return ax_type(std::move(static_cast<T1>(t1))); }

◆ operator=() [1/5]

constexpr ax_type & operator= ( const ax_type< T1, T > &  t1)
inlineconstexpr

Definition at line 75 of file ntuples_full.h.

76 {
77 v = t1.v;
78 return *this;
79 }

◆ operator=() [2/5]

constexpr ax_type & operator= ( const T1 &  t1)
inlineconstexpr

Definition at line 68 of file ntuples_full.h.

69 {
70 v = t1;
71 return *this;
72 }

◆ operator=() [3/5]

constexpr ax_type operator= ( const T1 &  t1) const
inlineconstexpr

Definition at line 56 of file ntuples_full.h.

56{ return ax_type(t1); }

◆ operator=() [4/5]

constexpr ax_type operator= ( T1 &&  t1)
inlineconstexpr

Definition at line 63 of file ntuples_full.h.

64 {
65 v = std::move(t1);
66 return *this;
67 }

◆ operator=() [5/5]

constexpr ax_type operator= ( T1 &&  t1) const
inlineconstexpr

Definition at line 55 of file ntuples_full.h.

55{ return ax_type(std::move(t1)); }

Friends And Related Function Documentation

◆ operator!= [1/3]

constexpr bool operator!= ( const ax_type< T1, T2 > &  lhs,
const ax_type< T1, T_RHS > &  rhs 
)
friend

Definition at line 113 of file ntuples_full.h.

114 {
115 return lhs.v != rhs.v;
116 }

◆ operator!= [2/3]

constexpr bool operator!= ( const ax_type< T1, T2 > &  lhs,
const T1 &  rhs 
)
friend

Definition at line 165 of file ntuples_full.h.

166 {
167 return lhs.v != rhs;
168 }

◆ operator!= [3/3]

constexpr bool operator!= ( const T1 &  lhs,
const ax_type< T1, T2 > &  rhs 
)
friend

Definition at line 170 of file ntuples_full.h.

171 {
172 return lhs != rhs.v;
173 }

◆ operator< [1/3]

constexpr bool operator< ( const ax_type< T1, T2 > &  lhs,
const ax_type< T1, T_RHS > &  rhs 
)
friend

Definition at line 95 of file ntuples_full.h.

96 {
97 return lhs.v < rhs.v;
98 }

◆ operator< [2/3]

constexpr bool operator< ( const ax_type< T1, T2 > &  lhs,
const T1 &  rhs 
)
friend

Definition at line 133 of file ntuples_full.h.

134 {
135 return lhs.v < rhs;
136 }

◆ operator< [3/3]

constexpr bool operator< ( const T1  lhs,
const ax_type< T1, T2 > &  rhs 
)
friend

Definition at line 137 of file ntuples_full.h.

138 {
139 return lhs < rhs.v;
140 }

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const ax_type< T1, T2 > &  self 
)
friend

Definition at line 198 of file ntuples_full.h.

199 {
200 out << self.get_name() << " : " << self.v;
201 return out;
202 }

◆ operator<= [1/3]

constexpr bool operator<= ( const ax_type< T1, T2 > &  lhs,
const ax_type< T1, T_RHS > &  rhs 
)
friend

Definition at line 101 of file ntuples_full.h.

102 {
103 return lhs.v <= rhs.v;
104 }

◆ operator<= [2/3]

constexpr bool operator<= ( const ax_type< T1, T2 > &  lhs,
const T1 &  rhs 
)
friend

Definition at line 143 of file ntuples_full.h.

144 {
145 return lhs.v <= rhs;
146 }

◆ operator<= [3/3]

constexpr bool operator<= ( const T1 &  lhs,
const ax_type< T1, T2 > &  rhs 
)
friend

Definition at line 148 of file ntuples_full.h.

149 {
150 return lhs <= rhs.v;
151 }

◆ operator== [1/3]

constexpr bool operator== ( const ax_type< T1, T2 > &  lhs,
const ax_type< T1, T_RHS > &  rhs 
)
friend

Definition at line 107 of file ntuples_full.h.

108 {
109 return lhs.v == rhs.v;
110 }

◆ operator== [2/3]

constexpr bool operator== ( const ax_type< T1, T2 > &  lhs,
const T1 &  rhs 
)
friend

Definition at line 154 of file ntuples_full.h.

155 {
156 return lhs.v == rhs;
157 }

◆ operator== [3/3]

constexpr bool operator== ( const T1 &  lhs,
const ax_type< T1, T2 > &  rhs 
)
friend

Definition at line 159 of file ntuples_full.h.

160 {
161 return lhs == rhs.v;
162 }

◆ operator> [1/3]

constexpr bool operator> ( const ax_type< T1, T2 > &  lhs,
const ax_type< T1, T_RHS > &  rhs 
)
friend

Definition at line 125 of file ntuples_full.h.

126 {
127 return lhs.v > rhs.v;
128 }

◆ operator> [2/3]

constexpr bool operator> ( const ax_type< T1, T2 > &  lhs,
const T1 &  rhs 
)
friend

Definition at line 187 of file ntuples_full.h.

188 {
189 return lhs.v > rhs;
190 }

◆ operator> [3/3]

constexpr bool operator> ( const T1 &  lhs,
const ax_type< T1, T2 > &  rhs 
)
friend

Definition at line 192 of file ntuples_full.h.

193 {
194 return lhs > rhs.v;
195 }

◆ operator>= [1/3]

constexpr bool operator>= ( const ax_type< T1, T2 > &  lhs,
const ax_type< T1, T_RHS > &  rhs 
)
friend

Definition at line 119 of file ntuples_full.h.

120 {
121 return lhs.v >= rhs.v;
122 }

◆ operator>= [2/3]

constexpr bool operator>= ( const ax_type< T1, T2 > &  lhs,
const T1 &  rhs 
)
friend

Definition at line 176 of file ntuples_full.h.

177 {
178 return lhs.v >= rhs;
179 }

◆ operator>= [3/3]

constexpr bool operator>= ( const T1 &  lhs,
const ax_type< T1, T2 > &  rhs 
)
friend

Definition at line 181 of file ntuples_full.h.

182 {
183 return lhs >= rhs.v;
184 }

Member Data Documentation

◆ v

T1 v = {}

Definition at line 52 of file ntuples_full.h.


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