JUCE
Public Member Functions | List of all members
OSCBundle::Element Class Reference

An OSC bundle element. More...

Public Member Functions

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

Detailed Description

An OSC bundle element.

An OSCBundle Element contains either one OSCMessage or one OSCBundle.

Constructor & Destructor Documentation

◆ Element() [1/3]

OSCBundle::Element::Element ( OSCMessage  message)

Constructs an OSCBundle Element from an OSCMessage.

◆ Element() [2/3]

OSCBundle::Element::Element ( OSCBundle  bundle)

Constructs an OSCBundle Element from an OSCBundle.

◆ Element() [3/3]

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

Copy constructor.

◆ ~Element()

OSCBundle::Element::~Element ( )

Destructor.

Member Function Documentation

◆ isMessage()

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

Returns true if the OSCBundle element is an OSCMessage.

◆ isBundle()

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

Returns true if the OSCBundle element is an OSCBundle.

◆ getMessage()

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

Returns a reference to the contained OSCMessage.

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

◆ getBundle()

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

Returns a reference to the contained OSCBundle.

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


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