Lines Matching defs:MapItem
16 MapItem::MapItem(int id, void* item) : item_id_(id), item_pointer_(item)
20 MapItem::~MapItem()
24 void* MapItem::GetItem()
29 int MapItem::GetId()
34 unsigned int MapItem::GetUnsignedId()
39 void MapItem::SetItem(void* ptr)
70 map_[id] = new MapItem(id,ptr);
74 MapItem* MapWrapper::First() const
76 std::map<int, MapItem*>::const_iterator it = map_.begin();
84 MapItem* MapWrapper::Last() const
86 std::map<int, MapItem*>::const_reverse_iterator it = map_.rbegin();
94 MapItem* MapWrapper::Next(MapItem* item) const
100 std::map<int, MapItem*>::const_iterator it = map_.find(item->item_id_);
112 MapItem* MapWrapper::Previous(MapItem* item) const
119 std::map<int, MapItem*>::const_iterator it = map_.find(item->item_id_);
129 MapItem* MapWrapper::Find(int id) const
131 std::map<int, MapItem*>::const_iterator it = map_.find(id);
139 int MapWrapper::Erase(MapItem* item)
145 std::map<int, MapItem*>::iterator it = map_.find(item->item_id_);
157 std::map<int, MapItem*>::iterator it = map_.find(id);