Sygaldry
Loading...
Searching...
No Matches
sygbp-session_data.hpp
1#pragma once
2/*
3Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music Interaction Laboratory
4(IDMIL), Centre for Interdisciplinary Research in Music Media and Technology
5(CIRMMT), McGill University, Montréal, Canada, and Univ. Lille, Inria, CNRS,
6Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
7
8SPDX-License-Identifier: MIT
9*/
10
11#include "sygac-components.hpp"
12#include "sygac-endpoints.hpp"
13
14namespace sygaldry { namespace sygbp {
19
20template<typename C>
21constexpr void for_each_session_datum(C& components, auto fn)
22{
23 for_each_endpoint(components, [&]<typename T>(T& endpoint)
24 {
25 if constexpr (tagged_session_data<T>) fn(endpoint);
26 });
27}
28
31} }