MUSX Document Model
Loading...
Searching...
No Matches
musx::factory::PartSharingFactory Class Reference

Initializes a partially shared part object from its score object. More...

#include <PoolFactory.h>

Static Public Member Functions

template<typename T >
static void initializePartial (const std::shared_ptr< T > &partInstance, const std::shared_ptr< const T > &scoreInstance)
 Copies score values into a partial part object.
 

Detailed Description

Initializes a partially shared part object from its score object.

Member Function Documentation

◆ initializePartial()

template<typename T >
static void musx::factory::PartSharingFactory::initializePartial ( const std::shared_ptr< T > &  partInstance,
const std::shared_ptr< const T > &  scoreInstance 
)
inlinestatic

Copies score values into a partial part object.

This operation is independent of the source representation. It preserves the part object's identity and sharing mode, rebinds contained-object ownership, and leaves the caller to apply the part fields supplied by XML, a binary reader, or another source.