Skip to content

Commit

Permalink
help: implement for jit plugin too
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 21, 2024
1 parent a6d8aa0 commit d2c13a5
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/score-plugin-jit/Bytebeat/Bytebeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,11 @@ EffectProcessFactory_T<Jit::BytebeatModel>::descriptor(QString d) const noexcept
{
return Metadata<Descriptor_k, Jit::BytebeatModel>::get();
}

template <>
Process::Descriptor EffectProcessFactory_T<Jit::BytebeatModel>::descriptor(
const Process::ProcessModel& d) const noexcept
{
return descriptor(d.effect());
}
}
4 changes: 4 additions & 0 deletions src/plugins/score-plugin-jit/Bytebeat/Bytebeat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ EffectProcessFactory_T<Jit::BytebeatModel>::customConstructionData() const noexc
template <>
Process::Descriptor
EffectProcessFactory_T<Jit::BytebeatModel>::descriptor(QString d) const noexcept;

template <>
Process::Descriptor EffectProcessFactory_T<Jit::BytebeatModel>::descriptor(
const Process::ProcessModel& d) const noexcept;
}
class QPlainTextEdit;
namespace Jit
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/score-plugin-jit/JitCpp/AvndJit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,12 @@ EffectProcessFactory_T<AvndJit::Model>::descriptor(QString d) const noexcept
return Metadata<Descriptor_k, AvndJit::Model>::get();
}

template <>
Process::Descriptor EffectProcessFactory_T<AvndJit::Model>::descriptor(
const Process::ProcessModel& d) const noexcept
{
return descriptor(d.effect());
}
}
namespace AvndJit
{
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/score-plugin-jit/JitCpp/AvndJit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ QString EffectProcessFactory_T<AvndJit::Model>::customConstructionData() const n
template <>
Process::Descriptor
EffectProcessFactory_T<AvndJit::Model>::descriptor(QString d) const noexcept;

template <>
Process::Descriptor EffectProcessFactory_T<AvndJit::Model>::descriptor(
const Process::ProcessModel& d) const noexcept;
}

namespace AvndJit
Expand Down
7 changes: 7 additions & 0 deletions src/plugins/score-plugin-jit/JitCpp/JitModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,14 @@ EffectProcessFactory_T<Jit::JitEffectModel>::descriptor(QString d) const noexcep
return Metadata<Descriptor_k, Jit::JitEffectModel>::get();
}

template <>
Process::Descriptor EffectProcessFactory_T<Jit::JitEffectModel>::descriptor(
const Process::ProcessModel& d) const noexcept
{
return descriptor(d.effect());
}
}

namespace Execution
{

Expand Down
4 changes: 4 additions & 0 deletions src/plugins/score-plugin-jit/JitCpp/JitModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ EffectProcessFactory_T<Jit::JitEffectModel>::customConstructionData() const noex
template <>
Process::Descriptor
EffectProcessFactory_T<Jit::JitEffectModel>::descriptor(QString d) const noexcept;

template <>
Process::Descriptor EffectProcessFactory_T<Jit::JitEffectModel>::descriptor(
const Process::ProcessModel& d) const noexcept;
}

namespace Execution
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/score-plugin-jit/Texgen/Texgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,10 @@ EffectProcessFactory_T<Jit::TexgenModel>::descriptor(QString d) const noexcept
return Metadata<Descriptor_k, Jit::TexgenModel>::get();
}

template <>
Process::Descriptor EffectProcessFactory_T<Jit::TexgenModel>::descriptor(
const Process::ProcessModel& d) const noexcept
{
return descriptor(d.effect());
}
}
3 changes: 3 additions & 0 deletions src/plugins/score-plugin-jit/Texgen/Texgen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ EffectProcessFactory_T<Jit::TexgenModel>::customConstructionData() const noexcep
template <>
Process::Descriptor
EffectProcessFactory_T<Jit::TexgenModel>::descriptor(QString d) const noexcept;
template <>
Process::Descriptor EffectProcessFactory_T<Jit::TexgenModel>::descriptor(
const Process::ProcessModel& d) const noexcept;
}
class QPlainTextEdit;
namespace Jit
Expand Down

0 comments on commit d2c13a5

Please sign in to comment.