Empirical
|
A specialized version of FunctionSet for void functions. More...
#include <FunctionSet.h>
Public Types | |
using | base_t = emp::vector< std::function< void(ARGS...)>> |
using | value_type = typename base_t::value_type |
using | return_t = void |
using | iterator = iterator_wrapper< typename stdv_t::iterator > |
using | const_iterator = iterator_wrapper< typename stdv_t::const_iterator > |
using | reverse_iterator = iterator_wrapper< typename stdv_t::reverse_iterator > |
using | const_reverse_iterator = iterator_wrapper< typename stdv_t::const_reverse_iterator > |
using | size_type = typename stdv_t::size_type |
using | reference = typename stdv_t::reference |
using | const_reference = typename stdv_t::const_reference |
Public Member Functions | |
FunctionSet () | |
~FunctionSet () | |
size_t | GetSize () const |
How many functions are in this FunctionSet? More... | |
void | Add (const std::function< void(ARGS...)> &in_fun) |
Add a new function to this FunctionSet. More... | |
void | Remove (size_t pos) |
Remove the function at the designated position from this FunctionSet. More... | |
void | Run (ARGS...args) const |
Run all functions in the FunctionSet. More... | |
size_t | size () const |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
void | resize (size_t new_size) |
void | resize (size_t new_size, const std::function< void(ARGS...)> &val) |
std::function< void(ARGS...)> & | operator[] (size_t pos) |
const std::function< void(ARGS...)> & | operator[] (size_t pos) const |
std::function< void(ARGS...)> & | back () |
const std::function< void(ARGS...)> & | back () const |
std::function< void(ARGS...)> & | front () |
const std::function< void(ARGS...)> & | front () const |
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 | |
int | revision |
Setup a revision number - iterators must match the revision of their vector. More... | |
A specialized version of FunctionSet for void functions.
using emp::FunctionSet< void(ARGS...)>::base_t = emp::vector<std::function<void(ARGS...)>> |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
using emp::FunctionSet< void(ARGS...)>::return_t = void |
|
inherited |
|
inherited |
using emp::FunctionSet< void(ARGS...)>::value_type = typename base_t::value_type |
|
inline |
|
inline |
|
inline |
Add a new function to this FunctionSet.
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
How many functions are in this FunctionSet?
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Remove the function at the designated position from this FunctionSet.
|
inlineinherited |
|
inlineinherited |
|
inline |
Run all functions in the FunctionSet.
|
inlineinherited |
|
inherited |
Setup a revision number - iterators must match the revision of their vector.