C++ Device API Reference Manual
Reference documentation for the Simics C++ Device API.
 
Loading...
Searching...
No Matches
simics::ConnectConfig Class Reference

By default, all interfaces in the Connect class are required. More...

#include <connect.h>

Public Member Functions

 ConnectConfig ()=default
 
bool is_optional (const std::string &iface_name) const
 

Static Public Member Functions

template<typename FirstIface , typename... RestIfaces>
static ConnectConfig optional ()
 

Detailed Description

By default, all interfaces in the Connect class are required.

Attempting to connect an object that does not implement the required interfaces will cause a runtime error. Use this class and pass it as CTOR param of Connect class to make the interface check optional. Optional interfaces can be verified by testing if the get_iface member of the interface has a nullptr value.

Constructor & Destructor Documentation

◆ ConnectConfig()

simics::ConnectConfig::ConnectConfig ( )
default

Member Function Documentation

◆ is_optional()

bool simics::ConnectConfig::is_optional ( const std::string &  iface_name) const
inline

◆ optional()

template<typename FirstIface , typename... RestIfaces>
static ConnectConfig simics::ConnectConfig::optional ( )
inlinestatic

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