MUSX Document Model
Loading...
Searching...
No Matches
musx::dom::ObjectPool< ObjectBaseType, TopKeyElementType >::ObjectKey Struct Reference

key type for storing in pool More...

#include <ObjectPool.h>

Public Member Functions

 ObjectKey (const TopKeyElementType n, Cmper p, std::optional< Cmper > c1=std::nullopt, std::optional< Cmper > c2=std::nullopt, std::optional< Inci > i=std::nullopt)
 explicit constructor for optional parameters
 
bool operator< (const ObjectKey &other) const
 comparison operator for std::map
 
std::string nodeString () const
 Returns a string version of the nodeId for inclusion in messages.
 

Public Attributes

TopKeyElementType nodeId
 the identifier for this node. usually the XML node name.
 
Cmper partId
 the part this item is associated with (or 0 for score).
 
std::optional< Cmpercmper1
 optional cmper1 for Others, Texts, Details.
 
std::optional< Cmpercmper2
 optional cmper2 for Details.
 
std::optional< Inciinci
 optional inci for multi-inci classes
 

Detailed Description

template<typename ObjectBaseType, typename TopKeyElementType = std::string>
struct musx::dom::ObjectPool< ObjectBaseType, TopKeyElementType >::ObjectKey

key type for storing in pool