CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
CanNodeDataModelVisitor Struct Reference

#include <modelvisitor.h>

Inheritance diagram for CanNodeDataModelVisitor:
Collaboration diagram for CanNodeDataModelVisitor:

Public Member Functions

template<class... Fs>
 Visitor (Fs &&... fs)
 
- Public Member Functions inherited from Visitor< CanNodeDataModelVisitor, CanRawViewModel, CanRawSenderModel, CanDeviceModel >
auto operator() (T &t) -> std::enable_if_t< is_within< T, visitable_types >::value, void >
 
 Visitor (Fs &&... fs)
 

Additional Inherited Members

- Public Types inherited from Visitor< CanNodeDataModelVisitor, CanRawViewModel, CanRawSenderModel, CanDeviceModel >
using visitable_types = std::tuple< Visitables... >
 

Detailed Description

Example usage with VisitableWith<CanNodeDataModelVisitor>:

auto m = node.nodeDataModel();
, [this](CanRawSenderModel& a) { } };
assert(nullptr != m);
apply_model_visitor(*m, std::move(v));
// or apply_model_visitor(*m, std::move(std::ref(v)));
// or apply_model_visitor(*m, [](CanRawViewModel&) {}, [](CanRawSenderModel&) {});
The class provides node graphical representation of CanRawSender.
Definition canrawsendermodel.h:17
The class provides node graphical representation of CanRawView.
Definition canrawviewmodel.h:17
void apply_model_visitor(QtNodes::NodeDataModel &m, CanNodeDataModelVisitor v)
Definition modelvisitor.h:47
Definition modelvisitor.h:41

Member Function Documentation

◆ Visitor()

template<class... Fs>
Visitor< Tag, Visitables >::Visitor ( Fs &&...  fs)
inline

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