Nektar++
Loading...
Searching...
No Matches
Macros
SwitchLevel2.h File Reference
#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/arithmetic/mul.hpp>
#include <boost/preprocessor/comparison/not_equal.hpp>
#include <boost/preprocessor/repetition/for.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include "Operators/SwitchLimits.h"

Go to the source code of this file.

Macros

#define NM(i)   BOOST_PP_TUPLE_ELEM(0, i)
 
#define NM_P1(i)   BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(0, i))
 
#define NQ(i)   BOOST_PP_TUPLE_ELEM(1, i)
 
#define NQ_M1(i)   BOOST_PP_DEC(BOOST_PP_TUPLE_ELEM(1, i))
 
#define STDLEV2TEST(r, state)
 
#define STDLEV2TEST1(r, state)
 
#define STDLEV2UPDATE(r, state)
 
#define STDLEV2UPDATE1(r, state)
 

Macro Definition Documentation

◆ NM

#define NM (   i)    BOOST_PP_TUPLE_ELEM(0, i)

Definition at line 47 of file SwitchLevel2.h.

◆ NM_P1

#define NM_P1 (   i)    BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(0, i))

Definition at line 49 of file SwitchLevel2.h.

◆ NQ

#define NQ (   i)    BOOST_PP_TUPLE_ELEM(1, i)

Definition at line 51 of file SwitchLevel2.h.

◆ NQ_M1

#define NQ_M1 (   i)    BOOST_PP_DEC(BOOST_PP_TUPLE_ELEM(1, i))

Definition at line 53 of file SwitchLevel2.h.

◆ STDLEV2TEST

#define STDLEV2TEST (   r,
  state 
)
Value:
BOOST_PP_NOT_EQUAL(BOOST_PP_TUPLE_ELEM(0, state), \
BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(2, state)))

Macro tests the values of the tuple 'state' to see if the first element, given by BOOST_PP_TUPLE_ELEM(0, state), is not equal to the second element plus one, given by BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(1, state)) and returns 1 if not equal otherwise zero

Definition at line 60 of file SwitchLevel2.h.

◆ STDLEV2TEST1

#define STDLEV2TEST1 (   r,
  state 
)
Value:
BOOST_PP_NOT_EQUAL(BOOST_PP_TUPLE_ELEM(1, state), \
BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(2, state)))

Definition at line 64 of file SwitchLevel2.h.

◆ STDLEV2UPDATE

#define STDLEV2UPDATE (   r,
  state 
)
Value:
(BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(0, state)), \
BOOST_PP_TUPLE_ELEM(1, state), BOOST_PP_TUPLE_ELEM(2, state))

Macro returns an updated tuple where the first element, given by BOOST_PP_TUPLE_ELEM(0, state), is incremented by one and the second element, given by BOOST_PP_TUPLE_ELEM(1, state) remains the same

Definition at line 72 of file SwitchLevel2.h.

◆ STDLEV2UPDATE1

#define STDLEV2UPDATE1 (   r,
  state 
)
Value:
(BOOST_PP_TUPLE_ELEM(0, state), \
BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(1, state)), \
BOOST_PP_TUPLE_ELEM(2, state))

Definition at line 76 of file SwitchLevel2.h.