| helics 3.6.1

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

`#include <MessageOperators.hpp>`

Inheritance diagram for helics::CustomMessageOperator:

## Public Member Functions
| CustomMessageOperator ()=default
| CustomMessageOperator (std::function< std::unique_ptr< Message >(std::unique_ptr< Message >)> userMessageFunction)
void | setMessageFunction (std::function< std::unique_ptr< Message >(std::unique_ptr< Message >)> userMessageFunction)
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 a message operator that can operate on any part of a message

## Constructor & Destructor Documentation

## ◆ CustomMessageOperator() [1/2]

helics::CustomMessageOperator::CustomMessageOperator | ( |  | ) |
| default

default constructor

## ◆ CustomMessageOperator() [2/2]

helics::CustomMessageOperator::CustomMessageOperator | ( | std::function< std::unique_ptr< Message >(std::unique_ptr< Message >)> | userMessageFunction | ) |
| explicit

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

## Member Function Documentation

## ◆ setMessageFunction()

void helics::CustomMessageOperator::setMessageFunction | ( | std::function< std::unique_ptr< Message >(std::unique_ptr< Message >)> | userMessageFunction | ) |

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