27 return ptr->matches_id(unit_id);
96 return ptr->underlying_id() == uid;
static bool find_if_matches_helper(const unit_ptr &ptr, const std::string &unit_id)
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.
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.
static bool find_if_matches_uid_helper(const unit_ptr &ptr, size_t uid)
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.
boost::intrusive_ptr< unit > unit_ptr
void add(const unit_ptr &ptr)
Add a unit to the list.
GLsizei const GLcharARB ** string
std::vector< unit_ptr > recall_list_
The underlying data struture. TODO: Should this be a map based on underlying id instead?