Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::TrackFactory Class Reference

Factory for tracks. More...

#include <src/structure/tracks/track_factory.h>

Data Structures

class  Builder

Public Types

using DependenciesProvider = std::function<FinalTrackDependencies ()>

Public Member Functions

 TrackFactory (DependenciesProvider dependencies_provider)
template<typename TrackT>
auto get_builder () const
template<FinalTrackSubclass TrackT>
TrackUuidReference create_empty_track () const
TrackUuidReference create_empty_track (Track::Type type) const
template<typename TrackT>
auto clone_new_object_identity (const TrackT &other) const
template<typename TrackT>
auto clone_object_snapshot (const TrackT &other, QObject &owner) const

Detailed Description

Factory for tracks.

Definition at line 14 of file track_factory.h.

Member Typedef Documentation

◆ DependenciesProvider

using zrythm::structure::tracks::TrackFactory::DependenciesProvider = std::function<FinalTrackDependencies ()>

Definition at line 17 of file track_factory.h.

Constructor & Destructor Documentation

◆ TrackFactory()

zrythm::structure::tracks::TrackFactory::TrackFactory ( DependenciesProvider dependencies_provider)
inline

Definition at line 19 of file track_factory.h.

Member Function Documentation

◆ clone_new_object_identity()

template<typename TrackT>
auto zrythm::structure::tracks::TrackFactory::clone_new_object_identity ( const TrackT & other) const
inline

Definition at line 100 of file track_factory.h.

◆ clone_object_snapshot()

template<typename TrackT>
auto zrythm::structure::tracks::TrackFactory::clone_object_snapshot ( const TrackT & other,
QObject & owner ) const
inline

Definition at line 108 of file track_factory.h.

◆ create_empty_track() [1/2]

template<FinalTrackSubclass TrackT>
TrackUuidReference zrythm::structure::tracks::TrackFactory::create_empty_track ( ) const
inline

Definition at line 60 of file track_factory.h.

◆ create_empty_track() [2/2]

TrackUuidReference zrythm::structure::tracks::TrackFactory::create_empty_track ( Track::Type type) const
inline

Definition at line 66 of file track_factory.h.

◆ get_builder()

template<typename TrackT>
auto zrythm::structure::tracks::TrackFactory::get_builder ( ) const
inline

Definition at line 53 of file track_factory.h.


The documentation for this class was generated from the following file: