An OSC bundle. More...
#include <juce_OSCBundle.h>
Classes | |
class | Element |
An OSC bundle element. More... | |
Public Member Functions | |
OSCBundle () | |
Constructs an OSCBundle with no content and a default time tag ("immediately"). More... | |
OSCBundle (OSCTimeTag timeTag) | |
Constructs an OSCBundle with no content and a given time tag. More... | |
void | addElement (const OSCBundle::Element &element) |
Adds an OSCBundleElement to the OSCBundle's content. More... | |
OSCBundle::Element * | begin () const noexcept |
Returns a pointer to the first element of the OSCBundle. More... | |
OSCBundle::Element * | end () const noexcept |
Returns a pointer past the last element of the OSCBundle. More... | |
OSCTimeTag | getTimeTag () const noexcept |
Returns the OSCBundle's OSC time tag. More... | |
bool | isEmpty () const noexcept |
Returns true if the bundle contains no elements; false otherwise. More... | |
OSCBundle::Element & | operator[] (const int i) noexcept |
Returns a reference to the OSCBundle element at index i in this bundle. More... | |
const OSCBundle::Element & | operator[] (const int i) const noexcept |
void | setTimeTag (OSCTimeTag newTimeTag) noexcept |
Sets the OSCBundle's OSC time tag. More... | |
int | size () const noexcept |
Returns the number of elements contained in the bundle. More... | |
Private Attributes | |
Array< OSCBundle::Element > | elements |
OSCTimeTag | timeTag |
An OSC bundle.
An OSCBundle contains an OSCTimeTag and zero or more OSCBundle Elements. The elements of a bundle can be OSC messages or other OSC bundles (this means that OSC bundles can be nested).
This is an advanced OSC structure useful to bundle OSC messages together whose effects must occur simultaneously at some given time. For most use cases it is probably enough to send and receive plain OSC messages.
{OSC}
juce::OSCBundle::OSCBundle | ( | ) |
Constructs an OSCBundle with no content and a default time tag ("immediately").
juce::OSCBundle::OSCBundle | ( | OSCTimeTag | timeTag | ) |
Constructs an OSCBundle with no content and a given time tag.
|
inline |
Adds an OSCBundleElement to the OSCBundle's content.
s
|
inlinenoexcept |
Returns a pointer to the first element of the OSCBundle.
|
inlinenoexcept |
Returns a pointer past the last element of the OSCBundle.
|
inlinenoexcept |
Returns the OSCBundle's OSC time tag.
|
inlinenoexcept |
Returns true if the bundle contains no elements; false otherwise.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Sets the OSCBundle's OSC time tag.
|
inlinenoexcept |
Returns the number of elements contained in the bundle.
|
private |
|
private |