gz/rendering/base/BaseStorage.hh
Go to the documentation of this file.
T advance(T... args)
Definition: gz/rendering/base/BaseStorage.hh:201
virtual void DestroyByName(const std::string &_name)
Remove and destroy element with the given name. If the specified element does not exists in this stor...
Definition: gz/rendering/base/BaseStorage.hh:1192
virtual unsigned int GetStoreCount() const
Get number of Stores.
Definition: gz/rendering/base/BaseStorage.hh:1222
virtual TPtr RemoveById(unsigned int _id)
Remove element with the given ID. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1111
virtual void DestroyAll()
Remove and destroy all elements in store.
Definition: gz/rendering/base/BaseStorage.hh:1212
virtual TPtr GetByName(const std::string &_name) const
Get element with the given name.
Definition: gz/rendering/base/BaseStorage.hh:1054
virtual void DestroyByIndex(unsigned int _index)
Remove and destroy element at the given index. If the specified element does not exists in this store...
Definition: gz/rendering/base/BaseStorage.hh:1202
virtual bool Contains(ConstTPtr _object) const
Determine if store contains the given element.
Definition: gz/rendering/base/BaseStorage.hh:1003
virtual unsigned int Size() const
Get number of elements in this store.
Definition: gz/rendering/base/BaseStorage.hh:989
virtual void Destroy(TPtr _object)
Remove and destroy given element. If the given element does not exists, in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1168
virtual TPtr GetByIndex(unsigned int _index) const
Get element at the given index.
Definition: gz/rendering/base/BaseStorage.hh:1068
virtual void DestroyById(unsigned int _id)
Remove and destroy element with the given ID. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1182
virtual TPtr GetById(unsigned int _id) const
Get element with the given ID.
Definition: gz/rendering/base/BaseStorage.hh:1040
virtual TPtr RemoveByName(const std::string &_name)
Remove element with the given name. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1127
virtual TStorePtr GetStore(unsigned int _index) const
Get store at the given index. If no such store exists NULL will be returned.
Definition: gz/rendering/base/BaseStorage.hh:1240
virtual TPtr RemoveByIndex(unsigned int _index)
Remove element at the given index. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1143
virtual void RemoveAll()
Remove all elements from store.
Definition: gz/rendering/base/BaseStorage.hh:1158
virtual bool ContainsId(unsigned int _id) const
Determine if store contains the element with the given ID.
Definition: gz/rendering/base/BaseStorage.hh:1015
virtual TPtr Remove(TPtr _object)
Remove given element. If the given element does not exists in this store, then no work will be done.
Definition: gz/rendering/base/BaseStorage.hh:1095
virtual bool AddStore(TStorePtr _store)
Add the given store. If the given store already exists, then no work will be done.
Definition: gz/rendering/base/BaseStorage.hh:1253
virtual ~BaseCompositeStore()
Definition: gz/rendering/base/BaseStorage.hh:983
virtual TStorePtr RemoveStoreImpl(TStoreIter _iter)
Definition: gz/rendering/base/BaseStorage.hh:1301
BaseCompositeStore()
Definition: gz/rendering/base/BaseStorage.hh:977
virtual bool ContainsStore(ConstTStorePtr _store) const
Determine if given store exists.
Definition: gz/rendering/base/BaseStorage.hh:1229
virtual bool ContainsName(const std::string &_name) const
Determine if store contains the element with the given name.
Definition: gz/rendering/base/BaseStorage.hh:1027
TStoreList stores
Definition: gz/rendering/base/BaseStorage.hh:271
virtual TStorePtr RemoveStore(unsigned int _index)
Remove store at the given index. If no such store exists no work will be done and NULL will be return...
Definition: gz/rendering/base/BaseStorage.hh:1285
virtual bool Add(TPtr _object)
Add given element. If the element has already been added or its name or ID conflict with other existi...
Definition: gz/rendering/base/BaseStorage.hh:1086
virtual TStorePtr RemoveStore(TStorePtr _store)
Remove given store. If no such store exists no work will be done and NULL will be returned.
Definition: gz/rendering/base/BaseStorage.hh:1274
Definition: gz/rendering/base/BaseStorage.hh:374
Definition: gz/rendering/base/BaseStorage.hh:356
Definition: gz/rendering/base/BaseStorage.hh:40
virtual UPtr Derived(const std::string &_key) const
Definition: gz/rendering/base/BaseStorage.hh:519
virtual unsigned int Size() const
Get the number of elements in this map.
Definition: gz/rendering/base/BaseStorage.hh:403
virtual TPtr GetByIndex(unsigned int _index) const
Get the element at the given index.
Definition: gz/rendering/base/BaseStorage.hh:438
virtual bool ContainsValue(ConstTPtr _value) const
Determine if the given element exists in this map.
Definition: gz/rendering/base/BaseStorage.hh:417
virtual bool ContainsKey(const std::string &_key) const
Determine if an elements is mapped to the given key.
Definition: gz/rendering/base/BaseStorage.hh:410
virtual bool Put(const std::string &_key, TPtr _value)
Map to given element to the given key. If the given key is already in use, no work will be done.
Definition: gz/rendering/base/BaseStorage.hh:445
virtual ~BaseMap()
Definition: gz/rendering/base/BaseStorage.hh:397
virtual void RemoveAll()
Remove all elements from this map.
Definition: gz/rendering/base/BaseStorage.hh:511
virtual TPtr Get(const std::string &_key) const
Get the element mapped to the given key.
Definition: gz/rendering/base/BaseStorage.hh:430
virtual bool IsValidIter(ConstUIter _iter) const
Definition: gz/rendering/base/BaseStorage.hh:543
virtual void Remove(const std::string &_key)
Remove the element mapped to the given key. If the specified element does not exists,...
Definition: gz/rendering/base/BaseStorage.hh:481
virtual UPtr DerivedByIndex(unsigned int _index) const
Definition: gz/rendering/base/BaseStorage.hh:528
virtual void Remove(TPtr _value)
Remove the given element. If the given element does not exist no work will be done.
Definition: gz/rendering/base/BaseStorage.hh:493
Definition: gz/rendering/base/BaseStorage.hh:386
Definition: gz/rendering/base/BaseStorage.hh:338
Definition: gz/rendering/base/BaseStorage.hh:350
Definition: gz/rendering/base/BaseStorage.hh:344
Definition: gz/rendering/base/BaseStorage.hh:362
Definition: gz/rendering/base/BaseStorage.hh:279
UStorePtr store
Definition: gz/rendering/base/BaseStorage.hh:332
virtual void DestroyByName(const std::string &_name)
Remove and destroy element with the given name. If the specified element does not exists in this stor...
Definition: gz/rendering/base/BaseStorage.hh:1444
virtual void DestroyAll()
Remove and destroy all elements in store.
Definition: gz/rendering/base/BaseStorage.hh:1458
virtual TPtr GetById(unsigned int _id) const
Get element with the given ID.
Definition: gz/rendering/base/BaseStorage.hh:1358
virtual TPtr RemoveById(unsigned int _id)
Remove element with the given ID. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1399
virtual void DestroyByIndex(unsigned int _index)
Remove and destroy element at the given index. If the specified element does not exists in this store...
Definition: gz/rendering/base/BaseStorage.hh:1451
virtual bool Contains(ConstTPtr _object) const
Determine if store contains the given element.
Definition: gz/rendering/base/BaseStorage.hh:1335
BaseStoreWrapper(UStorePtr _store)
Definition: gz/rendering/base/BaseStorage.hh:1315
virtual ~BaseStoreWrapper()
Definition: gz/rendering/base/BaseStorage.hh:1322
virtual unsigned int Size() const
Get number of elements in this store.
Definition: gz/rendering/base/BaseStorage.hh:1328
virtual void Destroy(TPtr _object)
Remove and destroy given element. If the given element does not exists, in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1429
virtual TPtr Remove(TPtr _object)
Remove given element. If the given element does not exists in this store, then no work will be done.
Definition: gz/rendering/base/BaseStorage.hh:1390
virtual void DestroyById(unsigned int _id)
Remove and destroy element with the given ID. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1437
virtual TPtr GetByName(const std::string &_name) const
Get element with the given name.
Definition: gz/rendering/base/BaseStorage.hh:1366
virtual TPtr GetByIndex(unsigned int _index) const
Get element at the given index.
Definition: gz/rendering/base/BaseStorage.hh:1374
virtual void RemoveAll()
Remove all elements from store.
Definition: gz/rendering/base/BaseStorage.hh:1422
virtual bool ContainsId(unsigned int _id) const
Determine if store contains the element with the given ID.
Definition: gz/rendering/base/BaseStorage.hh:1343
virtual TPtr RemoveByName(const std::string &_name)
Remove element with the given name. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1407
virtual bool ContainsName(const std::string &_name) const
Determine if store contains the element with the given name.
Definition: gz/rendering/base/BaseStorage.hh:1350
virtual bool Add(TPtr _object)
Add given element. If the element has already been added or its name or ID conflict with other existi...
Definition: gz/rendering/base/BaseStorage.hh:1381
virtual TPtr RemoveByIndex(unsigned int _index)
Remove element at the given index. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:1415
Definition: gz/rendering/base/BaseStorage.hh:90
virtual UPtr RemoveImpl(UIter _iter)
Definition: gz/rendering/base/BaseStorage.hh:939
virtual void DestroyByName(const std::string &_name)
Remove and destroy element with the given name. If the specified element does not exists in this stor...
Definition: gz/rendering/base/BaseStorage.hh:712
virtual UIter Begin()
Return an iterator to the beginning.
Definition: gz/rendering/base/BaseStorage.hh:570
virtual UIter RemoveConstness(ConstUIter _iter)
Definition: gz/rendering/base/BaseStorage.hh:969
virtual void DestroyAll()
Remove and destroy all elements in store.
Definition: gz/rendering/base/BaseStorage.hh:728
virtual ConstUIter ConstIter(ConstTPtr _object) const
Definition: gz/rendering/base/BaseStorage.hh:817
virtual void DestroyByIndex(unsigned int _index)
Remove and destroy element at the given index. If the specified element does not exists in this store...
Definition: gz/rendering/base/BaseStorage.hh:720
virtual bool Contains(ConstTPtr _object) const
Determine if store contains the given element.
Definition: gz/rendering/base/BaseStorage.hh:585
virtual ~BaseStore()
Definition: gz/rendering/base/BaseStorage.hh:556
virtual UIter IterByIndex(unsigned int _index)
Definition: gz/rendering/base/BaseStorage.hh:906
virtual unsigned int Size() const
Get number of elements in this store.
Definition: gz/rendering/base/BaseStorage.hh:562
virtual bool AddDerived(UPtr _object)
Definition: gz/rendering/base/BaseStorage.hh:767
virtual UIter End()
Return an iterator to the end.
Definition: gz/rendering/base/BaseStorage.hh:578
virtual UPtr RemoveDerivedById(unsigned int _id)
Definition: gz/rendering/base/BaseStorage.hh:790
virtual TPtr RemoveByIndex(unsigned int _index)
Remove element at the given index. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:682
virtual void Destroy(TPtr _object)
Remove and destroy given element. If the given element does not exists, in this store,...
Definition: gz/rendering/base/BaseStorage.hh:696
virtual UIter IterByName(const std::string &_name)
Definition: gz/rendering/base/BaseStorage.hh:897
virtual void DestroyById(unsigned int _id)
Remove and destroy element with the given ID. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:704
virtual void DestroyImpl(UIter _iter)
Definition: gz/rendering/base/BaseStorage.hh:953
virtual TPtr Remove(TPtr _object)
Remove given element. If the given element does not exists in this store, then no work will be done.
Definition: gz/rendering/base/BaseStorage.hh:657
virtual UPtr RemoveDerivedByName(const std::string &_name)
Definition: gz/rendering/base/BaseStorage.hh:799
virtual TPtr GetById(unsigned int _id) const
Get element with the given ID.
Definition: gz/rendering/base/BaseStorage.hh:610
virtual TPtr RemoveById(unsigned int _id)
Remove element with the given ID. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:666
virtual TPtr GetByName(const std::string &_name) const
Get element with the given name.
Definition: gz/rendering/base/BaseStorage.hh:618
virtual void RemoveAll()
Remove all elements from store.
Definition: gz/rendering/base/BaseStorage.hh:689
virtual bool ContainsId(unsigned int _id) const
Determine if store contains the element with the given ID.
Definition: gz/rendering/base/BaseStorage.hh:593
virtual bool AddImpl(UPtr _object)
Definition: gz/rendering/base/BaseStorage.hh:914
virtual ConstUIter ConstIterById(unsigned int _id) const
Definition: gz/rendering/base/BaseStorage.hh:836
virtual UIter IterById(unsigned int _id)
Definition: gz/rendering/base/BaseStorage.hh:888
virtual UPtr RemoveDerived(UPtr _object)
Definition: gz/rendering/base/BaseStorage.hh:781
virtual UPtr RemoveDerivedByIndex(unsigned int _index)
Definition: gz/rendering/base/BaseStorage.hh:808
virtual TPtr GetByIndex(unsigned int _index) const
Get element at the given index.
Definition: gz/rendering/base/BaseStorage.hh:626
virtual UPtr DerivedByIndex(unsigned int _index) const
Definition: gz/rendering/base/BaseStorage.hh:759
virtual UIter Iter(ConstTPtr _object)
Definition: gz/rendering/base/BaseStorage.hh:879
virtual bool IsValidIter(ConstUIter _iter) const
Definition: gz/rendering/base/BaseStorage.hh:961
virtual TPtr RemoveByName(const std::string &_name)
Remove element with the given name. If the specified element does not exists in this store,...
Definition: gz/rendering/base/BaseStorage.hh:674
virtual bool ContainsName(const std::string &_name) const
Determine if store contains the element with the given name.
Definition: gz/rendering/base/BaseStorage.hh:601
virtual ConstUIter ConstIterByName(const std::string &_name) const
Definition: gz/rendering/base/BaseStorage.hh:855
virtual UPtr DerivedByName(const std::string &_name) const
Definition: gz/rendering/base/BaseStorage.hh:750
virtual bool Add(TPtr _object)
Add given element. If the element has already been added or its name or ID conflict with other existi...
Definition: gz/rendering/base/BaseStorage.hh:633
BaseStore()
Definition: gz/rendering/base/BaseStorage.hh:550
virtual UPtr DerivedById(unsigned int _id) const
Definition: gz/rendering/base/BaseStorage.hh:741
virtual ConstUIter ConstIterByIndex(unsigned int _index) const
Definition: gz/rendering/base/BaseStorage.hh:863
Definition: gz/rendering/base/BaseStorage.hh:380
Definition: gz/rendering/base/BaseStorage.hh:368
Represents a collection of Store objects, collectively working as a single composite store.
Definition: gz/rendering/Storage.hh:229
Storage map from std::string to template class T.
Definition: gz/rendering/Storage.hh:50
Simple wrapper class that allows a Store of type Derived to be treated as a Store of type Base,...
Definition: gz/rendering/Storage.hh:293
Multi-access storage structure of template class T. Template class T is expected to have functions Ge...
Definition: gz/rendering/Storage.hh:115
T empty(T... args)
T endl(T... args)
T find(T... args)
#define ignerr
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING