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 149 of file ntuples_full.h.

Member Typedef Documentation

◆ data_t

using data_t = T1

Definition at line 180 of file ntuples_full.h.

◆ struct_maker

using struct_maker = T2

Definition at line 179 of file ntuples_full.h.

Constructor & Destructor Documentation

◆ ax_type() [1/2]

constexpr ax_type ( )
inlineconstexpr

Definition at line 151 of file ntuples_full.h.

151{}

◆ ax_type() [2/2]

constexpr ax_type ( T1  t1)
inlineconstexpr

Definition at line 152 of file ntuples_full.h.

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

Member Function Documentation

◆ operator const T1()

operator const T1 ( ) const
inline

Definition at line 187 of file ntuples_full.h.

188 {
189 return v;
190 }

◆ operator T1()

operator T1 ( )
inline

Definition at line 182 of file ntuples_full.h.

183 {
184 return v;
185 }

◆ operator()() [1/2]

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

Definition at line 160 of file ntuples_full.h.

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

◆ operator()() [2/2]

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

Definition at line 157 of file ntuples_full.h.

157{ 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 173 of file ntuples_full.h.

174 {
175 v = t1.v;
176 return *this;
177 }

◆ operator=() [2/5]

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

Definition at line 166 of file ntuples_full.h.

167 {
168 v = t1;
169 return *this;
170 }

◆ operator=() [3/5]

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

Definition at line 154 of file ntuples_full.h.

154{ return ax_type(t1); }

◆ operator=() [4/5]

constexpr ax_type operator= ( T1 &&  t1)
inlineconstexpr

Definition at line 161 of file ntuples_full.h.

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

◆ operator=() [5/5]

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

Definition at line 153 of file ntuples_full.h.

153{ 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 211 of file ntuples_full.h.

212 {
213 return lhs.v != rhs.v;
214 }

◆ operator!= [2/3]

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

Definition at line 257 of file ntuples_full.h.

258 {
259 return lhs.v != rhs;
260 }

◆ operator!= [3/3]

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

Definition at line 262 of file ntuples_full.h.

263 {
264 return lhs != rhs.v;
265 }

◆ operator< [1/3]

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

Definition at line 193 of file ntuples_full.h.

194 {
195 return lhs.v < rhs.v;
196 }

◆ operator< [2/3]

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

Definition at line 228 of file ntuples_full.h.

229 {
230 return lhs.v < rhs;
231 }

◆ operator< [3/3]

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

Definition at line 232 of file ntuples_full.h.

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

◆ operator<<

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

Definition at line 287 of file ntuples_full.h.

288 {
289 out << self.get_name() << " : " << self.v;
290 return out;
291 }

◆ operator<= [1/3]

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

Definition at line 199 of file ntuples_full.h.

200 {
201 return lhs.v <= rhs.v;
202 }

◆ operator<= [2/3]

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

Definition at line 237 of file ntuples_full.h.

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

◆ operator<= [3/3]

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

Definition at line 242 of file ntuples_full.h.

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

◆ operator== [1/3]

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

Definition at line 205 of file ntuples_full.h.

206 {
207 return lhs.v == rhs.v;
208 }

◆ operator== [2/3]

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

Definition at line 247 of file ntuples_full.h.

248 {
249 return lhs.v == rhs;
250 }

◆ operator== [3/3]

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

Definition at line 252 of file ntuples_full.h.

253 {
254 return lhs == rhs.v;
255 }

◆ operator> [1/3]

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

Definition at line 223 of file ntuples_full.h.

224 {
225 return lhs.v > rhs.v;
226 }

◆ operator> [2/3]

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

Definition at line 277 of file ntuples_full.h.

278 {
279 return lhs.v > rhs;
280 }

◆ operator> [3/3]

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

Definition at line 282 of file ntuples_full.h.

283 {
284 return lhs > rhs.v;
285 }

◆ operator>= [1/3]

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

Definition at line 217 of file ntuples_full.h.

218 {
219 return lhs.v >= rhs.v;
220 }

◆ operator>= [2/3]

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

Definition at line 267 of file ntuples_full.h.

268 {
269 return lhs.v >= rhs;
270 }

◆ operator>= [3/3]

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

Definition at line 272 of file ntuples_full.h.

273 {
274 return lhs >= rhs.v;
275 }

Member Data Documentation

◆ v

T1 v = {}

Definition at line 150 of file ntuples_full.h.


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