adapnex::core::InputValueMapping

InputValueMapping provides an interface for input drivers to pass values to an application. The value can be accessed via the value() method or by mapping a variable that will hold the value.

Synopsis

Declared in <adapnex/core/mapping.h>

template<typename T>
class InputValueMapping
    : public boost::noncopyable

Base Classes

Name Description

boost::noncopyable

Member Functions

Name

Description

operator>>

Maps a variable that will hold the value produced by the input driver.

operator>>

Maps an atomic variable that will hold the value produced by the input driver. Using an atomic variable enables safe accesses across task groups. However, consumers in other task groups must consider, that the value may change during their cycle, as updates are not synchronized.

value

Returns a reference to the value produced by the input driver.

Protected Member Functions

Name

Update

Protected Data Members

Name

target

val

Friends

Name Description

adapnex::core::Mapping_InputValueMapping_Test

Derived Classes