mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixed some syntax errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@52 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -34,6 +34,8 @@ class IndexMap : private vector<Value> {
|
||||
using vector<Value>::size;
|
||||
using vector<Value>::iterator;
|
||||
using vector<Value>::const_iterator;
|
||||
using vector<Value>::reference;
|
||||
using vector<Value>::const_reference;
|
||||
using vector<Value>::begin;
|
||||
using vector<Value>::end;
|
||||
|
||||
@@ -60,13 +62,13 @@ class IndexMap : private vector<Value> {
|
||||
inline bool contains(const Value& value) const {
|
||||
assert(value);
|
||||
size_t index = get_key(value)->index;
|
||||
return index < this.size() && (*this)[index] == value
|
||||
return index < this->size() && (*this)[index] == value;
|
||||
}
|
||||
|
||||
/// Is a key in the domain of this index map?
|
||||
inline bool containsKey(const Key& key) const {
|
||||
assert(key);
|
||||
return key->index < this.size() && get_key((*this)[key->index]) == key
|
||||
return key->index < this.size() && get_key((*this)[key->index]) == key;
|
||||
}
|
||||
|
||||
/// Find a value given the key name, return an iterator
|
||||
|
||||
Reference in New Issue
Block a user