pixled-lib  1.0
Public Member Functions | List of all members
pixled::chrono::T Class Reference

#include <chrono.h>

Inheritance diagram for pixled::chrono::T:
Inheritance graph
[legend]
Collaboration diagram for pixled::chrono::T:
Collaboration graph
[legend]

Public Member Functions

time operator() (led l, time t) const override
 
Tcopy () const override
 

Additional Inherited Members

- Public Types inherited from pixled::base::Function< time >
typedef time Type
 

Detailed Description

Function that returns the current time.

Examples
pixled/function/function.cpp, pixled/signal/sawtooth.cpp, pixled/signal/sine.cpp, pixled/signal/square.cpp, and pixled/signal/triangle.cpp.

Member Function Documentation

◆ operator()()

time pixled::chrono::T::operator() ( led  l,
time  t 
) const
inlineoverridevirtual

Computes the value of this Function for led l at time t.

Parameters
lled
ttime
Returns
Result of this Function, evaluated on led l at time t. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example.

Implements pixled::base::Function< time >.

◆ copy()

T* pixled::chrono::T::copy ( ) const
inlineoverridevirtual

Returns a dynamically allocated copy of this function.

Returns
copy of this function

Implements pixled::base::Function< time >.


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