DIY  3.0
data-parallel out-of-core C++ library
 All Classes Namespaces Functions Typedefs Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
diy::GridRef< C, D > Struct Template Reference
Inheritance diagram for diy::GridRef< C, D >:
diy::Grid< C, D >

Public Types

typedef C Value
 
typedef Point< int, D > Vertex
 
typedef size_t Index
 

Public Member Functions

template<class Int >
 GridRef (C *data, const Point< Int, D > &shape, bool c_order=true)
 
 GridRef (Grid< C, D > &g)
 
template<class Int >
operator() (const Point< Int, D > &v) const
 
template<class Int >
C & operator() (const Point< Int, D > &v)
 
operator() (Index i) const
 
C & operator() (Index i)
 
const Vertexshape () const
 
const C * data () const
 
C * data ()
 
GridRefoperator= (C value)
 
GridRefoperator/= (C value)
 
Vertex vertex (Index idx) const
 
Index index (const Vertex &v) const
 
Index size () const
 
void swap (GridRef &other)
 
bool c_order () const
 

Static Public Member Functions

static constexpr unsigned dimension ()
 

Protected Member Functions

void set_stride ()
 
void set_shape (const Vertex &v)
 
void set_data (C *data)
 
void set_c_order (bool order)
 

Static Protected Member Functions

static Index size (const Vertex &v)
 

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