JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::OSCBundle::Element Class Reference

An OSC bundle element. More...

#include <juce_OSCBundle.h>

Collaboration diagram for juce::OSCBundle::Element:

Public Member Functions

 Element (const Element &other)
 Copy constructor. More...
 
 Element (OSCBundle bundle)
 Constructs an OSCBundle Element from an OSCBundle. More...
 
 Element (OSCMessage message)
 Constructs an OSCBundle Element from an OSCMessage. More...
 
 ~Element ()
 Destructor. More...
 
const OSCBundlegetBundle () const
 Returns a reference to the contained OSCBundle. More...
 
const OSCMessagegetMessage () const
 Returns a reference to the contained OSCMessage. More...
 
bool isBundle () const noexcept
 Returns true if the OSCBundle element is an OSCBundle. More...
 
bool isMessage () const noexcept
 Returns true if the OSCBundle element is an OSCMessage. More...
 

Private Attributes

std::unique_ptr< OSCBundlebundle
 
std::unique_ptr< OSCMessagemessage
 

Detailed Description

An OSC bundle element.

An OSCBundle Element contains either one OSCMessage or one OSCBundle.

Constructor & Destructor Documentation

◆ Element() [1/3]

juce::OSCBundle::Element::Element ( OSCMessage  message)

Constructs an OSCBundle Element from an OSCMessage.

◆ Element() [2/3]

juce::OSCBundle::Element::Element ( OSCBundle  bundle)

Constructs an OSCBundle Element from an OSCBundle.

◆ Element() [3/3]

juce::OSCBundle::Element::Element ( const Element other)

Copy constructor.

◆ ~Element()

juce::OSCBundle::Element::~Element ( )

Destructor.

Member Function Documentation

◆ getBundle()

const OSCBundle& juce::OSCBundle::Element::getBundle ( ) const

Returns a reference to the contained OSCBundle.

If the OSCBundle element is not an OSCBundle, behaviour is undefined.

◆ getMessage()

const OSCMessage& juce::OSCBundle::Element::getMessage ( ) const

Returns a reference to the contained OSCMessage.

If the OSCBundle element is not an OSCMessage, behaviour is undefined.

◆ isBundle()

bool juce::OSCBundle::Element::isBundle ( ) const
noexcept

Returns true if the OSCBundle element is an OSCBundle.

◆ isMessage()

bool juce::OSCBundle::Element::isMessage ( ) const
noexcept

Returns true if the OSCBundle element is an OSCMessage.

Member Data Documentation

◆ bundle

std::unique_ptr<OSCBundle> juce::OSCBundle::Element::bundle
private

◆ message

std::unique_ptr<OSCMessage> juce::OSCBundle::Element::message
private

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