17 #ifndef RECALL_LIST_MGR_HPP
18 #define RECALL_LIST_MGR_HPP
26 class readonly_context_impl;
54 iterator
erase(iterator it);
size_t size() const
Get the number of units on the list.
unit_const_ptr operator[](size_t index) const
vector style dereference
const_iterator end() const
end const iterator
const_iterator begin() const
begin const iterator
unit_ptr operator[](size_t index)
vector style dereference
unit_ptr find_if_matches_underlying_id(size_t uid)
Find a unit by underlying id. Null pointer if not found.
unit_ptr extract_if_matches_id(const std::string &unit_id)
Find a unit by id, and extract from this object if found. Null if not found.
A small explanation about what's going on here: Each action has access to two game_info objects First...
unit_ptr extract_if_matches_underlying_id(size_t uid)
Find a unit by underlying id, and extract if found. Null if not found.
unit_ptr find_if_matches_id(const std::string &unit_id)
Find a unit by id. Null pointer if not found.
std::vector< unit_ptr >::const_iterator const_iterator
bool empty() const
Is it empty?
iterator begin()
begin iterator
iterator end()
end iterator
void erase_if_matches_id(const std::string &unit_id)
Erase any unit with this id.
iterator erase_index(size_t index)
Erase by index.
void erase_by_underlying_id(size_t uid)
Erase any unit with this underlying id.
iterator erase(iterator it)
Erase an iterator to this object.
size_t find_index(const std::string &unit_id) const
Find the index of a unit by its id.
void add(const unit_ptr &ptr)
Add a unit to the list.
GLsizei const GLcharARB ** string
std::vector< unit_ptr >::iterator iterator
std::vector< unit_ptr > recall_list_
The underlying data struture. TODO: Should this be a map based on underlying id instead?