VisionCpp  0.0.1
Static Public Member Functions | List of all members
visioncpp::internal::CompareIdBasedScope< Conds, LDSize, GDSize, T > Struct Template Reference

this is used for range check to make sure the index is within the range. More...

#include <memory_access.hpp>

Collaboration diagram for visioncpp::internal::CompareIdBasedScope< Conds, LDSize, GDSize, T >:

Static Public Member Functions

static bool get (T &l, int &i, T &g)
 function get More...
 

Detailed Description

template<bool Conds, size_t LDSize, size_t GDSize, typename T>
struct visioncpp::internal::CompareIdBasedScope< Conds, LDSize, GDSize, T >

this is used for range check to make sure the index is within the range.

It uses the local value when the Conds are true. template parameters:

Template Parameters
Condsdetermines whether or not the local variable should be used
LDSize: determines the local dimension size
GDSizedetermines the global dimension size
Tdetermines the type of the dimension index

Definition at line 39 of file memory_access.hpp.

Member Function Documentation

◆ get()

template<bool Conds, size_t LDSize, size_t GDSize, typename T >
static bool visioncpp::internal::CompareIdBasedScope< Conds, LDSize, GDSize, T >::get ( T &  l,
int &  i,
T &  g 
)
inlinestatic

function get

returns the local range check:

Parameters
lis the local dimension size
gis the global dimension size
iis the offset needed to be added to the local dimension before comparison
Returns
bool

Definition at line 47 of file memory_access.hpp.

Referenced by visioncpp::internal::get_compare().

Here is the caller graph for this function:

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