![]() |
helics
3.0.1
|
#include <FilterInfo.hpp>
Public Member Functions | |
FilterInfo (GlobalBrokerId core_id_, InterfaceHandle handle_, const std::string &key_, const std::string &type_in_, const std::string &type_out_, bool destFilter_) | |
void | addDestinationEndpoint (GlobalHandle dest, const std::string &destName, const std::string &destType) |
void | addSourceEndpoint (GlobalHandle dest, const std::string &sourceName, const std::string &sourceType) |
void | removeTarget (GlobalHandle targetId) |
const std::string & | getSourceEndpoints () const |
const std::string & | getDestinationEndpoints () const |
Public Attributes | |
const GlobalBrokerId | core_id |
id of the core that manages the filter | |
const InterfaceHandle | handle |
id handle of the filter | |
const std::string | key |
the identifier of the filter | |
const std::string | inputType |
the type of data for the filter | |
const std::string | outputType |
the outputType of data of the filter | |
std::vector< GlobalHandle > | sourceTargets |
std::vector< GlobalHandle > | destTargets |
const bool | dest_filter = false |
bool | cloning = false |
indicator that the filter is a destination filter More... | |
uint16_t | flags = 0 |
flags for the filter | |
std::shared_ptr< FilterOperator > | filterOp |
the callback operation of the filter | |
data class defining the information about a filter
|
inline |
constructor from all fields
void helics::FilterInfo::addDestinationEndpoint | ( | GlobalHandle | dest, |
const std::string & | destName, | ||
const std::string & | destType | ||
) |
add a target target
now update the target information
void helics::FilterInfo::addSourceEndpoint | ( | GlobalHandle | dest, |
const std::string & | sourceName, | ||
const std::string & | sourceType | ||
) |
add a source to an endpoint
now update the target information
const std::string & helics::FilterInfo::getDestinationEndpoints | ( | ) | const |
get a string with the names of the destination endpoints
const std::string & helics::FilterInfo::getSourceEndpoints | ( | ) | const |
get a string with the names of the source endpoints
void helics::FilterInfo::removeTarget | ( | GlobalHandle | targetId | ) |
remove a target from connection
bool helics::FilterInfo::cloning = false |
indicator that the filter is a destination filter
indicator that the filter is a cloning filter
Referenced by helics::FilterFederate::createFilter().