SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
vector_with_callback< T > Struct Template Reference

Public Types

using callback_type = std::function< void(const T &)>
 
using iterator = typename std::vector< T >::const_iterator
 

Public Member Functions

void register_callback (callback_type c)
 
iterator begin () const
 
iterator end () const
 
void push_back (T x)
 
void find_and_erase (const T &x)
 
void find_and_erase_unordered (const T &x)
 
const std::vector< T > & data () const
 
const T & operator[] (size_t i) const
 
size_t size () const
 
bool empty () const
 
void reset_callbacks ()