MUSX Document Model
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
musx::dom::EntryPool Class Reference

Entry pool. More...

#include <ObjectPool.h>

+ Inheritance diagram for musx::dom::EntryPool:

Public Member Functions

void add (EntryNumber entryNumber, const std::shared_ptr< Entry > &instance)
 EntryPool version of ObjectPool::add.
 
template<typename T >
std::shared_ptr< T > get (EntryNumber entryNumber) const
 EntryPool version of ObjectPool::get.
 

Additional Inherited Members

- Protected Types inherited from musx::dom::ObjectPool< Entry, EntryNumber >
using ObjectPtr = std::shared_ptr< Entry >
 shared pointer to ObjectBaseType
 
virtual ~ObjectPool ()=default
 virtual destructor
 
void add (const ObjectKey &key, ObjectPtr object)
 Adds an OthersBase object to the pool.
 
std::vector< std::shared_ptr< T > > getArray (const ObjectKey &key) const
 Retrieves a vector of objects of a specific type from the pool.
 
std::vector< std::shared_ptr< T > > getArrayForPart (const ObjectKey &key) const
 Retrieves a vector of objects of a specific type from the pool.
 
std::shared_ptr< T > get (const ObjectKey &key) const
 Retrieves the first (and usually only) object of a specific type from the pool.
 
std::shared_ptr< T > getEffectiveForPart (const ObjectKey &key) const
 Retrieves the first (and usually only) object of a specific type from the pool for a part.
 

Detailed Description

Entry pool.