Belle II Software release-09-00-01
ax_type< T1, T2 > Struct Template Reference
Inheritance diagram for ax_type< T1, T2 >:
Collaboration 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 151 of file ntuples_full.h.

Member Typedef Documentation

◆ data_t

using data_t = T1

Definition at line 182 of file ntuples_full.h.

◆ struct_maker

using struct_maker = T2

Definition at line 181 of file ntuples_full.h.

Constructor & Destructor Documentation

◆ ax_type() [1/2]

constexpr ax_type ( )
inlineconstexpr

Definition at line 153 of file ntuples_full.h.

153{}

◆ ax_type() [2/2]

constexpr ax_type ( T1  t1)
inlineconstexpr

Definition at line 154 of file ntuples_full.h.

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

Member Function Documentation

◆ operator const T1()

operator const T1 ( ) const
inline

Definition at line 189 of file ntuples_full.h.

190 {
191 return v;
192 }

◆ operator T1()

operator T1 ( )
inline

Definition at line 184 of file ntuples_full.h.

185 {
186 return v;
187 }

◆ operator()() [1/2]

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

Definition at line 162 of file ntuples_full.h.

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

◆ operator()() [2/2]

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

Definition at line 159 of file ntuples_full.h.

159{ 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 175 of file ntuples_full.h.

176 {
177 v = t1.v;
178 return *this;
179 }

◆ operator=() [2/5]

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

Definition at line 168 of file ntuples_full.h.

169 {
170 v = t1;
171 return *this;
172 }

◆ operator=() [3/5]

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

Definition at line 156 of file ntuples_full.h.

156{ return ax_type(t1); }

◆ operator=() [4/5]

constexpr ax_type operator= ( T1 &&  t1)
inlineconstexpr

Definition at line 163 of file ntuples_full.h.

164 {
165 v = std::move(t1);
166 return *this;
167 }

◆ operator=() [5/5]

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

Definition at line 155 of file ntuples_full.h.

155{ 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 213 of file ntuples_full.h.

214 {
215 return lhs.v != rhs.v;
216 }

◆ operator!= [2/3]

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

Definition at line 265 of file ntuples_full.h.

266 {
267 return lhs.v != rhs;
268 }

◆ operator!= [3/3]

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

Definition at line 270 of file ntuples_full.h.

271 {
272 return lhs != rhs.v;
273 }

◆ operator< [1/3]

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

Definition at line 195 of file ntuples_full.h.

196 {
197 return lhs.v < rhs.v;
198 }

◆ operator< [2/3]

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

Definition at line 233 of file ntuples_full.h.

234 {
235 return lhs.v < rhs;
236 }

◆ operator< [3/3]

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

Definition at line 237 of file ntuples_full.h.

238 {
239 return lhs < rhs.v;
240 }

◆ operator<<

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

Definition at line 298 of file ntuples_full.h.

299 {
300 out << self.get_name() << " : " << self.v;
301 return out;
302 }

◆ operator<= [1/3]

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

Definition at line 201 of file ntuples_full.h.

202 {
203 return lhs.v <= rhs.v;
204 }

◆ operator<= [2/3]

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

Definition at line 243 of file ntuples_full.h.

244 {
245 return lhs.v <= rhs;
246 }

◆ operator<= [3/3]

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

Definition at line 248 of file ntuples_full.h.

249 {
250 return lhs <= rhs.v;
251 }

◆ operator== [1/3]

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

Definition at line 207 of file ntuples_full.h.

208 {
209 return lhs.v == rhs.v;
210 }

◆ operator== [2/3]

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

Definition at line 254 of file ntuples_full.h.

255 {
256 return lhs.v == rhs;
257 }

◆ operator== [3/3]

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

Definition at line 259 of file ntuples_full.h.

260 {
261 return lhs == rhs.v;
262 }

◆ operator> [1/3]

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

Definition at line 225 of file ntuples_full.h.

226 {
227 return lhs.v > rhs.v;
228 }

◆ operator> [2/3]

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

Definition at line 287 of file ntuples_full.h.

288 {
289 return lhs.v > rhs;
290 }

◆ operator> [3/3]

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

Definition at line 292 of file ntuples_full.h.

293 {
294 return lhs > rhs.v;
295 }

◆ operator>= [1/3]

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

Definition at line 219 of file ntuples_full.h.

220 {
221 return lhs.v >= rhs.v;
222 }

◆ operator>= [2/3]

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

Definition at line 276 of file ntuples_full.h.

277 {
278 return lhs.v >= rhs;
279 }

◆ operator>= [3/3]

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

Definition at line 281 of file ntuples_full.h.

282 {
283 return lhs >= rhs.v;
284 }

Member Data Documentation

◆ v

T1 v = {}

Definition at line 152 of file ntuples_full.h.


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