FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
ragged_accessor< T, P, OP > Struct Template Reference

Accessor for ragged fields. More...

Public Member Functions

row operator[] (size_type i) const
 Get the row at an index point.
 
size_type size () const noexcept
 Return the number of rows.
 
util::span< element_type > span () const
 Get the elements without any row structure.
 
Offset total () const noexcept
 Return the number of elements across all rows.
 

Detailed Description

template<class T, Privileges P, Privileges OP = P>
struct flecsi::data::ragged_accessor< T, P, OP >

Accessor for ragged fields.

This class is supported for GPU execution.

Template Parameters
Pif write-only, rows do not change size but their elements are reinitialized
See also
the base class

Member Function Documentation

◆ operator[]()

template<class T , Privileges P, Privileges OP = P>
row operator[] ( size_type  i) const

Get the row at an index point.

Returns
util::span

◆ size()

template<class T , Privileges P, Privileges OP = P>
size_type size ( ) const
noexcept

Return the number of rows.

◆ total()

template<class T , Privileges P, Privileges OP = P>
Offset total ( ) const
noexcept

Return the number of elements across all rows.

◆ span()

template<class T , Privileges P, Privileges OP = P>
util::span< element_type > span ( ) const

Get the elements without any row structure.