Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
pism::connected_components::details::CArray< T > Class Template Reference

#include <connected_components_impl.hh>

Public Member Functions

 CArray (T *array, int nrows, int ncols)
 
T & operator() (int r, int c)
 
T & operator() (int r, int c) const
 
std::array< int, 2 > shape () const
 

Private Attributes

T * m_array
 
int m_nrows
 
int m_ncols
 

Detailed Description

template<typename T>
class pism::connected_components::details::CArray< T >

Helper class wrapping a C-style 2D array using the row-major storage order. It is used to implement the interface required by connected_components::details::label().

Definition at line 55 of file connected_components_impl.hh.


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