SUNphi  1.0
Reference.hpp File Reference

Defines a class which defines a reference to another SmET. More...

#include <smet/BaseSmET.hpp>

Go to the source code of this file.

Macros

#define PROVIDE_SMET_REF(NUM)
 Provide the reference to the object. More...
 

Typedefs

template<typename T , typename = ConstrainIsSmET<T>, bool IsStoring = Unqualified<T>::isStoring, bool IsLvalue = isLvalue<T>>
using SUNphi::Reference = RefIf< IsStoring and IsLvalue, RemRef< T >>
 

Detailed Description

Defines a class which defines a reference to another SmET.

Todo:
This should be the place where the instantiation depending on the cost of the expression is made

Definition in file Reference.hpp.

Macro Definition Documentation

#define PROVIDE_SMET_REF (   NUM)
Value:
\
using Ref ## NUM= \
_Ref ## NUM; \ \
Reference<Ref ## NUM> ref ## NUM

Provide the reference to the object.

Definition at line 29 of file Reference.hpp.

Typedef Documentation

template<typename T , typename = ConstrainIsSmET<T>, bool IsStoring = Unqualified<T>::isStoring, bool IsLvalue = isLvalue<T>>
using SUNphi::Reference = typedef RefIf<IsStoring and IsLvalue,RemRef<T>>

Reference to T or new type, depending on wheter the class isStoring

Const qualifier is passed throughout

Todo:
add functionality as in Eigen

Definition at line 24 of file Reference.hpp.