Add mate::TrackableObject

This commit is contained in:
Cheng Zhao 2015-06-24 14:36:05 +08:00
parent 15f350edcb
commit 7f0658efa7
7 changed files with 95 additions and 2 deletions

View file

@ -55,6 +55,10 @@ void IDWeakMap::Remove(int32_t id) {
map_.erase(iter);
}
void IDWeakMap::Clear() {
map_.clear();
}
int32_t IDWeakMap::GetNextID() {
return ++next_id_;
}