OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia::constant_curve Class Referencefinal

The constant_curve class A curve that always return a same single value. More...

Inheritance diagram for ossia::constant_curve:
ossia::curve_abstract

Detailed Description

The constant_curve class A curve that always return a same single value.

It is useful if for instance one wants to automate on the first value of the following list :

[ 1, "a string", [ "another", 'c' ] ]

while keeping the rest of the list intact.

Public Member Functions

 constant_curve (ossia::value v)
 constant_curve (const constant_curve &)=delete
 constant_curve (constant_curve &&)=delete
constant_curve & operator= (const constant_curve &)=delete
constant_curve & operator= (constant_curve &&)=delete
ossia::value value () const
curve_type get_type () const override
 get the type of both coordinates
void reset () override
 Clear internal data structures of the curve.

Member Function Documentation

◆ get_type()

curve_type ossia::constant_curve::get_type ( ) const
inlinenodiscardoverridevirtual

get the type of both coordinates

Implements ossia::curve_abstract.

◆ reset()

void ossia::constant_curve::reset ( )
inlineoverridevirtual

Clear internal data structures of the curve.

Call before a new execution.

Implements ossia::curve_abstract.