gz/rendering/Storage.hh
virtual TStorePtr RemoveStore(TStorePtr _store)=0
Remove given store. If no such store exists no work will be done and NULL will be returned.
Storage map from std::string to template class T.
Definition: gz/rendering/Storage.hh:49
virtual unsigned int GetStoreCount() const =0
Get number of Stores.
virtual void Remove(const std::string &_key)=0
Remove the element mapped to the given key. If the specified element does not exists,...
virtual void DestroyByName(const std::string &_name)=0
Remove and destroy element with the given name. If the specified element does not exists in this stor...
std::shared_ptr< LightStore > LightStorePtr
Definition: gz/rendering/Storage.hh:358
STL class.
std::shared_ptr< GeometryStore > GeometryStorePtr
Definition: gz/rendering/Storage.hh:370
virtual TPtr RemoveByIndex(unsigned int _index)=0
Remove element at the given index. If the specified element does not exists in this store,...
virtual TPtr GetById(unsigned int _id) const =0
Get element with the given ID.
virtual bool ContainsName(const std::string &_name) const =0
Determine if store contains the element with the given name.
virtual bool ContainsStore(ConstTStorePtr _store) const =0
Determine if given store exists.
std::shared_ptr< SensorStore > SensorStorePtr
Definition: gz/rendering/Storage.hh:362
virtual void DestroyByIndex(unsigned int _index)=0
Remove and destroy element at the given index. If the specified element does not exists in this store...
virtual ~StoreWrapper()
Definition: gz/rendering/Storage.hh:294
virtual bool Put(const std::string &_key, TPtr _value)=0
Map to given element to the given key. If the given key is already in use, no work will be done.
std::shared_ptr< SceneStore > SceneStorePtr
Definition: gz/rendering/Storage.hh:350
std::shared_ptr< MaterialMap > MaterialMapPtr
Definition: gz/rendering/Storage.hh:378
virtual void DestroyById(unsigned int _id)=0
Remove and destroy element with the given ID. If the specified element does not exists in this store,...
Multi-access storage structure of template class T. Template class T is expected to have functions Ge...
Definition: gz/rendering/Storage.hh:114
std::shared_ptr< NodeStore > NodeStorePtr
Definition: gz/rendering/Storage.hh:354
virtual TPtr Get(const std::string &_key) const =0
Get the element mapped to the given key.
virtual bool ContainsKey(const std::string &_key) const =0
Determine if an elements is mapped to the given key.
virtual TPtr GetByIndex(unsigned int _index) const =0
Get the element at the given index.
virtual bool Add(TPtr _object)=0
Add given element. If the element has already been added or its name or ID conflict with other existi...
virtual ~Store()
Deconstructor.
Definition: gz/rendering/Storage.hh:125
virtual ~CompositeStore()
Deconstructor.
Definition: gz/rendering/Storage.hh:247
Simple wrapper class that allows a Store of type Derived to be treated as a Store of type Base,...
Definition: gz/rendering/Storage.hh:291
virtual TPtr RemoveByName(const std::string &_name)=0
Remove element with the given name. If the specified element does not exists in this store,...
Store< SubMesh > SubMeshStore
Definition: gz/rendering/Storage.hh:338
virtual bool ContainsId(unsigned int _id) const =0
Determine if store contains the element with the given ID.
CompositeStore< Node > NodeCompositeStore
Definition: gz/rendering/Storage.hh:346
std::shared_ptr< SubMeshStore > SubMeshStorePtr
Definition: gz/rendering/Storage.hh:374
virtual TPtr GetByName(const std::string &_name) const =0
Get element with the given name.
std::shared_ptr< VisualStore > VisualStorePtr
Definition: gz/rendering/Storage.hh:366
virtual bool Contains(ConstTPtr _object) const =0
Determine if store contains the given element.
virtual bool ContainsValue(ConstTPtr _value) const =0
Determine if the given element exists in this map.
Represents a collection of Store objects, collectively working as a single composite store.
Definition: gz/rendering/Storage.hh:227
virtual void Destroy(TPtr _object)=0
Remove and destroy given element. If the given element does not exists, in this store,...
virtual unsigned int Size() const =0
Get the number of elements in this map.
Store< Geometry > GeometryStore
Definition: gz/rendering/Storage.hh:334
virtual TPtr RemoveById(unsigned int _id)=0
Remove element with the given ID. If the specified element does not exists in this store,...
virtual void DestroyAll()=0
Remove and destroy all elements in store.
virtual TPtr GetByIndex(unsigned int _index) const =0
Get element at the given index.
virtual unsigned int Size() const =0
Get number of elements in this store.
virtual TPtr Remove(TPtr _object)=0
Remove given element. If the given element does not exists in this store, then no work will be done.
virtual TStorePtr GetStore(unsigned int _index) const =0
Get store at the given index. If no such store exists NULL will be returned.
std::shared_ptr< NodeCompositeStore > NodeCompositeStorePtr
Definition: gz/rendering/Storage.hh:382
virtual bool AddStore(TStorePtr _store)=0
Add the given store. If the given store already exists, then no work will be done.