| helics 3.6.1

Public Member Functions | List of all members
helics::MessageDataOperator Class Reference

`#include <MessageOperators.hpp>`

Inheritance diagram for helics::MessageDataOperator:

## Public Member Functions
| MessageDataOperator ()=default
| MessageDataOperator (std::function< void(SmallBuffer &)> userDataFunction)
void | setDataFunction (std::function< void(SmallBuffer &)> userDataFunction)
Public Member Functions inherited from helics::FilterOperator
| FilterOperator ()=default
virtual | ~FilterOperator ()=default
virtual std::vector< std::unique_ptr< Message > > | processVector (std::unique_ptr< Message > message)
std::unique_ptr< Message > | operator() (std::unique_ptr< Message > message)
virtual bool | isMessageGenerating () const

## Detailed Description

class defining an message operator that operates purely on the data aspect of a message

## Constructor & Destructor Documentation

## ◆ MessageDataOperator() [1/2]

helics::MessageDataOperator::MessageDataOperator | ( |  | ) |
| default

default constructor

## ◆ MessageDataOperator() [2/2]

helics::MessageDataOperator::MessageDataOperator | ( | std::function< void(SmallBuffer &)> | userDataFunction | ) |
| explicit

set the function to modify the data of the message in the constructor

## Member Function Documentation

## ◆ setDataFunction()

void helics::MessageDataOperator::setDataFunction | ( | std::function< void(SmallBuffer &)> | userDataFunction | ) |

set the function to modify the data of the message

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

- MessageOperators.hpp
- MessageOperators.cpp