MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ try_vector()

const std::vector< double > * MayaFlux::Core::InputValue::try_vector ( ) const
noexcept

Safe vector extraction.

Returns
Pointer to vector, or nullptr if this is not a VECTOR.

Definition at line 268 of file InputBinding.cpp.

269{
270 if (type != Type::VECTOR)
271 return nullptr;
272 return &std::get<std::vector<double>>(data);
273}
@ VECTOR
Multiple float values (e.g., accelerometer xyz)
std::variant< double, std::vector< double >, std::vector< uint8_t >, MIDIMessage, OSCMessage > data

References data, type, and VECTOR.