PolyFEM
Loading...
Searching...
No Matches
polyfem::mesh::ArrayRow< T > Class Template Reference

Contiguous view of one row of a JaggedArray (like std::span). More...

#include <Mesh3DStorage.hpp>

Public Member Functions

 ArrayRow (T *begin, T *end)
 
T * begin () const
 
T * end () const
 
size_t size () const
 
bool empty () const
 
T & operator[] (const size_t i) const
 
T & front () const
 
T & back () const
 
std::vector< std::remove_const_t< T > > to_vector () const
 Copy of the row.
 

Private Attributes

T * begin_
 
T * end_
 

Detailed Description

template<typename T>
class polyfem::mesh::ArrayRow< T >

Contiguous view of one row of a JaggedArray (like std::span).

Definition at line 21 of file Mesh3DStorage.hpp.

Constructor & Destructor Documentation

◆ ArrayRow()

template<typename T >
polyfem::mesh::ArrayRow< T >::ArrayRow ( T *  begin,
T *  end 
)
inline

Definition at line 24 of file Mesh3DStorage.hpp.

Member Function Documentation

◆ back()

template<typename T >
T & polyfem::mesh::ArrayRow< T >::back ( ) const
inline

Definition at line 36 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::end_.

◆ begin()

template<typename T >
T * polyfem::mesh::ArrayRow< T >::begin ( ) const
inline

Definition at line 26 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::begin_.

◆ empty()

template<typename T >
bool polyfem::mesh::ArrayRow< T >::empty ( ) const
inline

◆ end()

template<typename T >
T * polyfem::mesh::ArrayRow< T >::end ( ) const
inline

Definition at line 27 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::end_.

◆ front()

template<typename T >
T & polyfem::mesh::ArrayRow< T >::front ( ) const
inline

Definition at line 35 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::begin_.

◆ operator[]()

template<typename T >
T & polyfem::mesh::ArrayRow< T >::operator[] ( const size_t  i) const
inline

Definition at line 30 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::begin_, and polyfem::mesh::ArrayRow< T >::size().

Here is the call graph for this function:

◆ size()

template<typename T >
size_t polyfem::mesh::ArrayRow< T >::size ( ) const
inline

Definition at line 28 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::begin_, and polyfem::mesh::ArrayRow< T >::end_.

Referenced by polyfem::mesh::ArrayRow< T >::operator[]().

Here is the caller graph for this function:

◆ to_vector()

template<typename T >
std::vector< std::remove_const_t< T > > polyfem::mesh::ArrayRow< T >::to_vector ( ) const
inline

Copy of the row.

Definition at line 39 of file Mesh3DStorage.hpp.

References polyfem::mesh::ArrayRow< T >::begin_, and polyfem::mesh::ArrayRow< T >::end_.

Member Data Documentation

◆ begin_

◆ end_


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