SUNphi  1.0
SUN.hpp File Reference

Header file for the inclusion of all color types. More...

#include <tens/TensComp.hpp>
#include <tens/TwinsComp.hpp>
#include <smet/Bind.hpp>

Go to the source code of this file.

Classes

struct  SUNphi::RwCol
 
struct  SUNphi::CnCol
 
struct  SUNphi::_TwinCompOf< RwCol >
 
struct  SUNphi::_TwinCompOf< CnCol >
 
struct  SUNphi::TwinTensCompOf< Col >
 

Typedefs

using SUNphi::Col = CnCol
 

Functions

Conditional< 0, decltype(maybeUnused(NCOMPL)), void > SUNphi::maybeUnusedFD ()
 
template<typename T >
decltype(auto) SUNphi::rwCol (T &&ref, const int id)
 
template<typename T >
decltype(auto) SUNphi::cnCol (T &&ref, const int id)
 
template<typename T >
decltype(auto) SUNphi::col (T &&ref, const int id)
 

Variables

constexpr const int SUNphi::NCOL = 3
 
constexpr const int SUNphi::NRW_Col = NCOL
 
constexpr const int SUNphi::NCN_Col = NCOL
 
template<>
constexpr bool SUNphi::hasTwin< RwCol > = true
 
template<>
constexpr bool SUNphi::hasTwin< CnCol > = true
 

Detailed Description

Header file for the inclusion of all color types.

Definition in file SUN.hpp.

Typedef Documentation

using SUNphi::Col = typedef CnCol

Declares an alias Col to be used when no column or row specified

Definition at line 15 of file SUN.hpp.

Function Documentation

template<typename T >
decltype(auto) SUNphi::cnCol ( T &&  ref,
const int  id 
)

Get a reference to the CnCol component id of ref

Parameters
refQuantity to be bind
idComponent to bind

Definition at line 15 of file SUN.hpp.

template<typename T >
decltype(auto) SUNphi::col ( T &&  ref,
const int  id 
)

< Name of the bindfun

Returns a binder to the only Rw Col or Cn Col type available

TensKind of binding expression

Tuple containing all Tk types

Check if row type is available

Check if column type is available

Check that not more than one type is available

Check that at least one type is available

Parameters
refQuantity to be bound
idComponent to bind

Definition at line 15 of file SUN.hpp.

Conditional< 0, decltype(maybeUnused(hasTwin< CnCol >)), void > SUNphi::maybeUnusedFD ( )

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCOMPL

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of ALIGNMENT

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NDIR

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NDUMMY_VOLUME

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NSPIN

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NRW_Spin

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCN_Spin

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< RwSpin >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< CnSpin >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCOL

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NRW_Col

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCN_Col

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< RwCol >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< CnCol >
template<typename T >
decltype(auto) SUNphi::rwCol ( T &&  ref,
const int  id 
)

Get a reference to the RwCol component id of ref

Parameters
refQuantity to be bind
idComponent to bind

Definition at line 15 of file SUN.hpp.

Variable Documentation

template<>
constexpr bool SUNphi::hasTwin< CnCol > = true
inline

Declare that CnCol has a twin

Definition at line 15 of file SUN.hpp.

template<>
constexpr bool SUNphi::hasTwin< RwCol > = true
inline

Declare that RwCol has a twin

Definition at line 15 of file SUN.hpp.

constexpr const int SUNphi::NCN_Col = NCOL

Maximal value for TensKind of type CnCol

Definition at line 15 of file SUN.hpp.

constexpr const int SUNphi::NCOL = 3

Number of components of Col type

Definition at line 15 of file SUN.hpp.

constexpr const int SUNphi::NRW_Col = NCOL

Maximal value for TensKind of type RwCol

Definition at line 15 of file SUN.hpp.