pixled-lib  1.0
Public Member Functions | List of all members
pixled::arithmetic::Plus< R, P1, P2 > Class Template Reference

#include <arithmetic.h>

Inheritance diagram for pixled::arithmetic::Plus< R, P1, P2 >:
Inheritance graph
[legend]
Collaboration diagram for pixled::arithmetic::Plus< R, P1, P2 >:
Collaboration graph
[legend]

Public Member Functions

operator() (led l, time t) const override
 
- Public Member Functions inherited from pixled::Function< Plus< R, P1, P2 >, R, P1, P2 >
 Function (Fcts &&... fcts)
 
const base::Function< typename std::tuple_element< i, decltype(args)>::type::Type > & arg () const
 
std::tuple_element< i, decltype(args)>::type::Type call (led l, time t) const
 

Additional Inherited Members

- Public Types inherited from pixled::Function< Plus< R, P1, P2 >, R, P1, P2 >
using Type = typename base::Function< R >::Type
 
- Public Types inherited from pixled::base::Function< R >
typedef R Type
 
- Protected Member Functions inherited from pixled::Function< Plus< R, P1, P2 >, R, P1, P2 >
base::Function< R > * copy () const override
 
- Protected Attributes inherited from pixled::Function< Plus< R, P1, P2 >, R, P1, P2 >
std::tuple< const FctWrapper< Args >... > args
 

Detailed Description

template<typename R, typename P1, typename P2>
class pixled::arithmetic::Plus< R, P1, P2 >

Plus operator implementation.

Template Parameters
Roperation fundamental result type
P1fundamental left operand type
P2fundamental right operand type
Parameters
P1left operand
P2right operand
Return values
Rresult of the + operation

Member Function Documentation

◆ operator()()

template<typename R , typename P1 , typename P2 >
R pixled::arithmetic::Plus< R, P1, P2 >::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< R >.


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