Chi-Tech
chi_mesh::LocalCellHandler Class Reference

#include <chi_meshcontinuum_localcellhandler.h>

Data Structures

class  const_iterator
 
class  iterator
 

Public Member Functions

chi_mesh::Celloperator[] (uint64_t cell_local_index)
 
const chi_mesh::Celloperator[] (uint64_t cell_local_index) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 

Data Fields

std::vector< std::unique_ptr< chi_mesh::Cell > > & native_cells
 

Private Member Functions

 LocalCellHandler (std::vector< std::unique_ptr< chi_mesh::Cell > > &in_native_cells)
 

Friends

class MeshContinuum
 

Detailed Description

Stores references to global cells to enable an iterator.

Definition at line 11 of file chi_meshcontinuum_localcellhandler.h.

Constructor & Destructor Documentation

◆ LocalCellHandler()

chi_mesh::LocalCellHandler::LocalCellHandler ( std::vector< std::unique_ptr< chi_mesh::Cell > > &  in_native_cells)
inlineexplicitprivate

Constructor.

Definition at line 20 of file chi_meshcontinuum_localcellhandler.h.

Member Function Documentation

◆ begin() [1/2]

iterator chi_mesh::LocalCellHandler::begin ( )
inline

Definition at line 68 of file chi_meshcontinuum_localcellhandler.h.

◆ begin() [2/2]

const_iterator chi_mesh::LocalCellHandler::begin ( ) const
inline

Definition at line 72 of file chi_meshcontinuum_localcellhandler.h.

◆ end() [1/2]

iterator chi_mesh::LocalCellHandler::end ( )
inline

Definition at line 70 of file chi_meshcontinuum_localcellhandler.h.

◆ end() [2/2]

const_iterator chi_mesh::LocalCellHandler::end ( ) const
inline

Definition at line 74 of file chi_meshcontinuum_localcellhandler.h.

◆ operator[]() [1/2]

chi_mesh::Cell & chi_mesh::LocalCellHandler::operator[] ( uint64_t  cell_local_index)

Returns a reference to a local cell, given a local cell index.

Definition at line 5 of file chi_meshcontinuum_localcellhandler.cc.

◆ operator[]() [2/2]

const chi_mesh::Cell & chi_mesh::LocalCellHandler::operator[] ( uint64_t  cell_local_index) const

Returns a const reference to a local cell, given a local cell index.

Definition at line 35 of file chi_meshcontinuum_localcellhandler.cc.

◆ size()

size_t chi_mesh::LocalCellHandler::size ( ) const
inline

Definition at line 76 of file chi_meshcontinuum_localcellhandler.h.

Friends And Related Function Documentation

◆ MeshContinuum

friend class MeshContinuum
friend

Definition at line 13 of file chi_meshcontinuum_localcellhandler.h.

Field Documentation

◆ native_cells

std::vector<std::unique_ptr<chi_mesh::Cell> >& chi_mesh::LocalCellHandler::native_cells

Definition at line 15 of file chi_meshcontinuum_localcellhandler.h.


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