Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::SharedVectorTag Struct Reference

Indicate a contiguous chunk of shared memory. More...

Inheritance diagram for dg::SharedVectorTag:
[legend]

Detailed Description

Indicate a contiguous chunk of shared memory.

With this tag a class promises that the data it holds lies in a contiguous chunk that can be traversed knowing the pointer to its first element. Sub-Tags indicate addtional functionality like data resize.

Note
We assume a class with this Tag has the following methods
  • size() returns the size (in number of elements) of the contiguous data
  • data() returns a pointer (or something for which the thrust::pointer_traits are specialized) to the first element of the contiguous data. The return type must be convertible to (const) value_type*

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