VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
UbTypeOp< T > Class Template Reference

A class implements a tuple. More...

#include <UbTuple.h>

Public Types

using ArgT = T
 
using BareT = T
 
using ConstT = const T
 
using RefT = T &
 
using RefBareT = T &
 
using RefConstT = const T &
 

Detailed Description

template<typename T>
class UbTypeOp< T >

A class implements a tuple.

usage: ...
Advanced UbTuple Example: create and use tuple with only c1 field

val<1>(t1) += 42;
std::cout << t1.v1() << std::endl;
T1 & v1()
Definition UbTuple.h:179
std::shared_ptr< T > SPtr

create and use duo:

std::cout << val<1>(t2) << ", ";
std::cout << t2.v1() << std::endl;

create and use triple:

val<1>(t3) = true; // new values via: val< pos >(triple) = ...
val<2>(t3) = 42;
val<3>(t3) = 0.2;
t3 = makeUbTuple(false, 23, 13.13);
std::cout << val<1>(t3) << ", ";
std::cout << val<2>(t3) << ", ";
std::cout << val<3>(t3) << std::endl;
UbTuple< T1 > makeUbTuple(T1 const &a1)
Definition UbTuple.h:554

create and use quadruple:

UbType<bool,int,float,double> t4(true,42,13,1.95583);
std::cout << val<4>(t4) << std::endl; //<- option 2 (std)
std::cout << t4.v2().v2().v2() << std::endl; //<- option 2

Definition at line 80 of file UbTuple.h.

Member Typedef Documentation

◆ ArgT

template<typename T >
using UbTypeOp< T >::ArgT = T

Definition at line 83 of file UbTuple.h.

◆ BareT

template<typename T >
using UbTypeOp< T >::BareT = T

Definition at line 84 of file UbTuple.h.

◆ ConstT

template<typename T >
using UbTypeOp< T >::ConstT = const T

Definition at line 85 of file UbTuple.h.

◆ RefBareT

template<typename T >
using UbTypeOp< T >::RefBareT = T &

Definition at line 87 of file UbTuple.h.

◆ RefConstT

template<typename T >
using UbTypeOp< T >::RefConstT = const T &

Definition at line 88 of file UbTuple.h.

◆ RefT

template<typename T >
using UbTypeOp< T >::RefT = T &

Definition at line 86 of file UbTuple.h.


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