Template Class LiveCellIterator

Inheritance Relationships

Base Type

  • public emp::vector::const_iterator< dish2::Cell< Spec > >

Derived Type

Class Documentation

template<typename Spec>
class dish2::LiveCellIterator : public emp::vector::const_iterator<dish2::Cell<Spec>>

Subclassed by dish2::GenotypeConstWrapper< Spec >

Public Types

using value_type = dish2::Cell<Spec>
using pointer = value_type*
using reference = value_type&
using iterator_category = std::forward_iterator_tag
using difference_type = typename parent_t::difference_type

Public Functions

LiveCellIterator(const LiveCellIterator&) = default
const value_type &operator*() const
const value_type *operator->() const
LiveCellIterator &operator++()
LiveCellIterator operator++(int)
LiveCellIterator &operator--()
LiveCellIterator operator--(int)
bool operator==(const LiveCellIterator &other) const
bool operator!=(const LiveCellIterator &other) const
size_t CalcDistance(const parent_t &from) const

Public Static Functions

LiveCellIterator make_begin(const emp::vector<dish2::Cell<Spec>> &population)
LiveCellIterator make_end(const emp::vector<dish2::Cell<Spec>> &population)