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

#include <TranslatorOperations.hpp>

+ Inheritance diagram for helics::CustomTranslatorOperator:

Public Member Functions

 CustomTranslatorOperator ()=default
 
void setToValueFunction (std::function< SmallBuffer(std::unique_ptr< Message > message)> userToValueFunction)
 
void setToMessageFunction (std::function< std::unique_ptr< Message >(const SmallBuffer &value)> userToMessageFunction)
 
- Public Member Functions inherited from helics::TranslatorOperator
 TranslatorOperator ()=default
 
virtual ~TranslatorOperator ()=default
 
virtual Time computeNewMessageTime (Time valueTime)
 
virtual Time computeNewValueTime (Time messageTime)
 

Additional Inherited Members

- Public Attributes inherited from helics::TranslatorOperator
Time minDelay {Time::epsilon()}
 

Detailed Description

class defining a custom Translator operator

Constructor & Destructor Documentation

◆ CustomTranslatorOperator()

helics::CustomTranslatorOperator::CustomTranslatorOperator ( )
default

default constructor

Member Function Documentation

◆ setToMessageFunction()

void helics::CustomTranslatorOperator::setToMessageFunction ( std::function< std::unique_ptr< Message >(const SmallBuffer &value)>  userToMessageFunction)
inline

set the function to modify the data of the message

◆ setToValueFunction()

void helics::CustomTranslatorOperator::setToValueFunction ( std::function< SmallBuffer(std::unique_ptr< Message > message)>  userToValueFunction)
inline

set the function to modify the data of the message


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