Real Time Open Sound Control librtosc: /build/rtosc/src/rtosc-0.3.1/include/rtosc/bundle-foreach.h File Reference

Real Time Open Sound Control librtosc

Loading...
Searching...
No Matches
Functions
bundle-foreach.h File Reference

Define the bundle_foreach template function. More...

`#include <cctype>`
`#include <cstdlib>`
`#include <cstdio>`
`#include "ports.h"`

Go to the source code of this file.

## Functions
template<class F >
void | rtosc::bundle_foreach (const struct Port &p, const char *name, char *old_end, const char *name_buffer, const struct Ports &base, void *data, void *runtime, const F &ftor, bool expand_bundles=true, bool cut_afterwards=true, bool ranges=false)
| Execute a callback for all bundle elements of a bundle port.
void | rtosc::bundle_foreach_do_nothing (const Port *, const char *, const char *, const Ports &, void *, void *)

## Detailed Description

Define the bundle_foreach template function.

Note
  Include this file only from cpp files

## Function Documentation

## ◆ bundle_foreach()

template<class F >

void rtosc::bundle_foreach | ( | const struct Port & | p,
|  | const char * | name,
|  | char * | old_end,
|  | const char * | name_buffer,
|  | const struct Ports & | base,
|  | void * | data,
|  | void * | runtime,
|  | const F & | ftor,
|  | bool | expand_bundles = `true`,
|  | bool | cut_afterwards = `true`,
|  | bool | ranges = `false`
| ) |  |

Execute a callback for all bundle elements of a bundle port.

Parameters

  name | Should be p.name TODO: pass base as pointer, so it can be null?