33 template<
class T,
class HashFunc = HashTrait<T>,
class EqualsFunc = EqualsTrait<T> >
51 return (
int)memberTable.
size();
64 memberTable.
getCreate(member, isNew) =
true;
72 bool remove(
const T& member) {
73 return memberTable.
remove(member);
83 return memberTable.
getRemove(member, removed, ignore);
125 return !(*
this == other);
138 return it == other.
it;
166 operator T*()
const {
178 return Iterator(memberTable.
begin());
186 const Iterator
end()
const {
187 return Iterator(memberTable.
end());
bool isValid() const
Definition: Set.h:128
const Iterator end() const
Definition: Set.h:186
bool getRemove(const Key &key, Key &removedKey, Value &removedValue)
Definition: Table.h:660
bool contains(const T &member) const
Definition: Set.h:54
void deleteAll()
Definition: Set.h:105
void clear()
Definition: Table.h:578
size_t size() const
Definition: Table.h:589
void clear()
Definition: Set.h:101
Iterator begin() const
Definition: Table.h:562
shared_ptr< class MemoryManager > Ref
Definition: MemoryManager.h:31
Table< T, bool >::Iterator it
Definition: Set.h:119
T * operator->() const
Definition: Set.h:162
Iterator(const typename Table< T, bool >::Iterator &it)
Definition: Set.h:121
Table< T, bool, HashFunc, EqualsFunc > memberTable
Definition: Set.h:40
Iterator operator++(int)
Definition: Set.h:152
virtual ~Set()
Definition: Set.h:48
void getMembers(Array< T > &keyArray) const
Definition: Set.h:97
const T & operator*() const
Definition: Set.h:158
void G3D_DEPRECATED deleteAll()
Definition: Array.h:988
int size() const
Definition: Set.h:50
bool insert(const T &member)
Definition: Set.h:62
bool remove(const Key &key, Key &removedKey, Value &removedValue, bool updateRemoved)
Definition: Table.h:606
bool getRemove(const T &member, T &removed)
Definition: Set.h:81
bool hasMore() const
Definition: Set.h:133
Value & getCreate(const Key &key)
Definition: Table.h:861
Iterator & operator++()
Definition: Set.h:144
const T * getPointer(const T &member) const
Definition: Set.h:89
const Iterator end() const
Definition: Table.h:570
bool operator!=(const Iterator &other) const
Definition: Set.h:124
Array< Key > getKeys() const
Definition: Table.h:907
const Key * getKeyPointer(const Key &key) const
Definition: Table.h:701
Array< T > getMembers() const
Definition: Set.h:93
Iterator begin() const
Definition: Set.h:177
bool operator==(const Iterator &other) const
Definition: Set.h:137
void clearAndSetMemoryManager(const MemoryManager::Ref &m)
Definition: Table.h:309
void clearAndSetMemoryManager(const MemoryManager::Ref &m)
Definition: Set.h:44
bool containsKey(const Key &key) const
Definition: Table.h:874