|
|
| DetailsPool (const DocumentWeakPtr &document) |
| | Constructor.
|
| |
|
void | add (std::string_view nodeName, const std::shared_ptr< DetailsBase > &instance) |
| | DetailsPool version of ObjectPool::add.
|
| |
|
template<typename T , typename = std::enable_if_t<is_pool_type_v<DetailsPool, T>>> |
| MusxInstanceList< T > | getArray (Cmper partId) const |
| | version of ObjectPool::getArray for getting all of them
|
| |
|
template<typename T , typename std::enable_if_t<!std::is_base_of_v< EntryDetailsBase, T >, int > = 0> |
| MusxInstanceList< T > | getArray (Cmper partId, Cmper cmper1, std::optional< Cmper > cmper2=std::nullopt) const |
| | DetailsPool version of ObjectPool::getArray.
|
| |
|
template<typename T , typename std::enable_if_t< std::is_base_of_v< EntryDetailsBase, T >, int > = 0> |
| MusxInstanceList< T > | getArray (Cmper partId, EntryNumber entnum) const |
| | EntryDetailsPool version of ObjectPool::getArray.
|
| |
|
template<typename T , typename std::enable_if_t<!std::is_base_of_v< EntryDetailsBase, T >, int > = 0> |
| MusxInstance< T > | get (Cmper partId, Cmper cmper1, Cmper cmper2, std::optional< Inci > inci=std::nullopt) const |
| | Get a single DetailsBase item out of the pool (not EntryDetailsBase)
|
| |
|
template<typename T , typename std::enable_if_t< std::is_base_of_v< EntryDetailsBase, T >, int > = 0> |
| MusxInstance< T > | get (Cmper partId, EntryNumber entnum, std::optional< Inci > inci=std::nullopt) const |
| | Get a single EntryDetailsBase item out of the pool.
|
| |
| template<typename T , typename std::enable_if_t< std::is_base_of_v< NoteDetailsBase, T >, int > = 0> |
| MusxInstance< T > | getForNote (const NoteInfoPtr ¬eInfo, const std::optional< Cmper > &forPartId=std::nullopt) |
| | Returns the detail for a particular note.
|
| |
A pool that manages collections of DetailsBase objects, organized by XML node names and Cmper values.
Examples of OneCmperBase classes are OthersBase and TextsBase.