gz/rendering/Storage.hh
Go to the documentation of this file.
Represents a collection of Store objects, collectively working as a single composite store.
Definition: gz/rendering/Storage.hh:229
virtual bool AddStore(TStorePtr _store)=0
Add the given store. If the given store already exists, then no work will be done.
virtual ~CompositeStore()
Deconstructor.
Definition: gz/rendering/Storage.hh:247
virtual TStorePtr GetStore(unsigned int _index) const =0
Get store at the given index. If no such store exists NULL will be returned.
virtual unsigned int GetStoreCount() const =0
Get number of Stores.
virtual TStorePtr RemoveStore(unsigned int _index)=0
Remove store at the given index. If no such store exists no work will be done and NULL will be return...
virtual bool ContainsStore(ConstTStorePtr _store) const =0
Determine if given store exists.
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:50
virtual bool ContainsValue(ConstTPtr _value) const =0
Determine if the given element exists in this map.
virtual void Remove(TPtr _value)=0
Remove the given element. If the given element does not exist no work will be done.
virtual unsigned int Size() const =0
Get the number of elements in this map.
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 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.
virtual void Remove(const std::string &_key)=0
Remove the element mapped to the given key. If the specified element does not exists,...
virtual TPtr GetByIndex(unsigned int _index) const =0
Get the element at the given index.
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
virtual ~StoreWrapper()
Definition: gz/rendering/Storage.hh:294
Multi-access storage structure of template class T. Template class T is expected to have functions Ge...
Definition: gz/rendering/Storage.hh:115
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,...
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...
virtual unsigned int Size() const =0
Get number of elements in this store.
virtual void DestroyAll()=0
Remove and destroy all elements in store.
virtual TPtr RemoveById(unsigned int _id)=0
Remove element with the given ID. If the specified element does not exists 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 TPtr GetByName(const std::string &_name) const =0
Get element with the given name.
virtual TPtr RemoveByName(const std::string &_name)=0
Remove element with the given name. If the specified element does not exists in this store,...
virtual bool ContainsId(unsigned int _id) const =0
Determine if store contains the element with the given ID.
virtual TPtr GetById(unsigned int _id) const =0
Get element with the given ID.
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 void Destroy(TPtr _object)=0
Remove and destroy given element. If the given element does not exists, in this store,...
virtual bool ContainsName(const std::string &_name) const =0
Determine if store contains the element with the given name.
virtual TPtr RemoveByIndex(unsigned int _index)=0
Remove element at the given index. If the specified element does not exists in this store,...
virtual ~Store()
Deconstructor.
Definition: gz/rendering/Storage.hh:125
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 TPtr GetByIndex(unsigned int _index) const =0
Get element at the given index.
virtual bool Contains(ConstTPtr _object) const =0
Determine if store contains the given element.
CompositeStore< Node > NodeCompositeStore
Definition: gz/rendering/Storage.hh:346
std::shared_ptr< MaterialMap > MaterialMapPtr
Definition: gz/rendering/Storage.hh:378
std::shared_ptr< NodeStore > NodeStorePtr
Definition: gz/rendering/Storage.hh:354
std::shared_ptr< VisualStore > VisualStorePtr
Definition: gz/rendering/Storage.hh:366
std::shared_ptr< GeometryStore > GeometryStorePtr
Definition: gz/rendering/Storage.hh:370
std::shared_ptr< SubMeshStore > SubMeshStorePtr
Definition: gz/rendering/Storage.hh:374
std::shared_ptr< LightStore > LightStorePtr
Definition: gz/rendering/Storage.hh:358
std::shared_ptr< SceneStore > SceneStorePtr
Definition: gz/rendering/Storage.hh:350
Store< Geometry > GeometryStore
Definition: gz/rendering/Storage.hh:334
std::shared_ptr< NodeCompositeStore > NodeCompositeStorePtr
Definition: gz/rendering/Storage.hh:382
Store< SubMesh > SubMeshStore
Definition: gz/rendering/Storage.hh:338
std::shared_ptr< SensorStore > SensorStorePtr
Definition: gz/rendering/Storage.hh:362