Class LocalCellHandler

Nested Relationships

Nested Types

Class Documentation

class LocalCellHandler

Stores references to global cells to enable an iterator.

Public Functions

Cell &operator[](uint64_t cell_local_index)

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

const Cell &operator[](uint64_t cell_local_index) const

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

inline size_t LocalCellCount() const

Get the total number of local cells.

Returns:

Size of the native cell vector.

inline Iterator begin()
inline Iterator end()
inline ConstIterator begin() const
inline ConstIterator end() const
inline size_t size() const

Public Members

std::vector<std::shared_ptr<Cell>> &local_cells

Public Static Functions

static inline LocalCellHandler Create(std::vector<std::shared_ptr<Cell>> &native_cells)
class ConstIterator

Internal const iterator class.

Public Functions

inline ConstIterator(const LocalCellHandler &handler, size_t index)
inline ConstIterator operator++()
inline const Cell &operator*()
inline bool operator==(const ConstIterator &other) const
inline bool operator!=(const ConstIterator &other) const
class Iterator

Internal iterator class.

Public Functions

inline Iterator(LocalCellHandler &handler, size_t index)
inline Iterator &operator++()
inline Cell &operator*()
inline bool operator==(const Iterator &other) const
inline bool operator!=(const Iterator &other) const