Legion Runtime
Classes | Public Member Functions | List of all members
Legion::Span< FT, PM > Class Template Reference

#include <legion_domain.h>

Classes

class  iterator
 
class  reverse_iterator
 

Public Member Functions

 Span (FT *b, size_t e, size_t s=sizeof(FT))
 
iterator begin (void) const
 
iterator end (void) const
 
reverse_iterator rbegin (void) const
 
reverse_iterator rend (void) const
 
FT & front (void) const
 
FT & back (void) const
 
FT & operator[] (int index) const
 
FT * data (void) const
 
uintptr_t get_base (void) const
 
size_t size (void) const
 
size_t step (void) const
 
bool empty (void) const
 

Detailed Description

template<typename FT, PrivilegeMode PM = LEGION_READ_WRITE>
class Legion::Span< FT, PM >

A span class is used for handing back allocations of elements with a uniform stride that users can safely access simply by indexing the pointer as an array of elements. Note that the Legion definition of a span does not guarantee that elements are contiguous the same as the c++20 definition of a span.


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