Empirical
|
A vector that can be indexed with a WorldPosition. More...
#include <World_structure.h>
Public Types | |
using | base_t = emp::array< emp::vector< T >, 2 > |
using | iterator = iterator_wrapper< typename base_t::iterator > |
using | const_iterator = iterator_wrapper< typename base_t::const_iterator > |
using | reverse_iterator = iterator_wrapper< typename base_t::reverse_iterator > |
using | const_reverse_iterator = iterator_wrapper< typename base_t::const_reverse_iterator > |
using | value_type = emp::vector< T > |
using | size_type = typename base_t::size_type |
using | reference = typename base_t::reference |
using | const_reference = typename base_t::const_reference |
Public Member Functions | |
bool | IsValid (WorldPosition pos) const |
Test if a position is currently valid. More... | |
void | MakeValid (WorldPosition pos) |
Make sure position is valid; if not expand relevant vector. More... | |
T & | operator() (WorldPosition pos) |
const T & | operator() (WorldPosition pos) const |
operator std::array< emp::vector< T >, N > () | |
constexpr size_t | size () const |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
emp::vector< T > & | operator[] (size_t pos) |
const emp::vector< T > & | operator[] (size_t pos) const |
emp::vector< T > & | back () |
const emp::vector< T > & | back () const |
emp::vector< T > & | front () |
const emp::vector< T > & | front () const |
void | fill (const emp::vector< T > &val) |
void | resize (size_t new_size) |
void | resize (size_t new_size, const emp::vector< T > &val) |
void | push_back (PB_Ts &&...args) |
void | pop_back () |
iterator | insert (ARGS &&...args) |
iterator | erase (ARGS &&...args) |
iterator | emplace (ARGS &&...args) |
void | emplace_back (ARGS &&...args) |
Public Attributes | |
bool | valid |
A vector that can be indexed with a WorldPosition.
using emp::WorldVector< T >::base_t = emp::array<emp::vector<T>, 2> |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Test if a position is currently valid.
|
inline |
Make sure position is valid; if not expand relevant vector.
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |