ChimeraTK-ApplicationCore 04.07.00
Loading...
Searching...
No Matches
ChimeraTK::VoidInput Class Reference

Convenience class for input accessors. More...

#include <VoidAccessor.h>

+ Inheritance diagram for ChimeraTK::VoidInput:
+ Collaboration diagram for ChimeraTK::VoidInput:

Public Member Functions

 VoidInput (Module *owner, const std::string &name, const std::string &description, const std::unordered_set< std::string > &tags={})
 
 VoidInput ()=default
 
VoidAccessoroperator= (VoidAccessor &other)=delete
 
VoidAccessoroperator= (VoidAccessor &&other) noexcept
 Move assignment.
 
- Public Member Functions inherited from ChimeraTK::VoidAccessor
void replace (const ChimeraTK::NDRegisterAccessorAbstractor< ChimeraTK::Void > &newAccessor)=delete
 
VoidAccessoroperator= (VoidAccessor &other)=delete
 
 VoidAccessor (VoidAccessor &&other) noexcept
 Move constructor.
 
VoidAccessoroperator= (VoidAccessor &&other) noexcept
 Move assignment.
 
bool write (ChimeraTK::VersionNumber versionNumber)=delete
 
bool writeDestructively (ChimeraTK::VersionNumber versionNumber)=delete
 
bool write ()
 
bool writeDestructively ()
 
 ~VoidAccessor ()
 
- Public Member Functions inherited from ChimeraTK::InversionOfControlAccessor< VoidAccessor >
virtual ~InversionOfControlAccessor ()
 Unregister at its owner when deleting.
 
void setMetaData (const std::optional< std::string > &name, const std::optional< std::string > &unit={}, const std::optional< std::string > &description={}, const std::optional< std::unordered_set< std::string > > &tags={})
 Change meta data (name, unit, description and optionally tags).
 
void addTag (const std::string &tag)
 Add a tag.
 
void addTags (const std::unordered_set< std::string > &tags)
 Add multiple tags.
 
const std::unordered_set< std::string > & getTags ()
 Return set of tags.
 
 operator VariableNetworkNode ()
 Convert into VariableNetworkNode.
 
 operator VariableNetworkNode () const
 
void replace (VoidAccessor &&other)
 Replace with other accessor.
 
EntityOwnergetOwner () const
 Return the owning module.
 
Model::ProcessVariableProxy getModel () const
 
bool checkMetadataWriteDifference ()
 Checks whether a writeIfDifferent would have to issue a write, even if the payload data is unchanged.
 

Additional Inherited Members

- Protected Member Functions inherited from ChimeraTK::VoidAccessor
 VoidAccessor (Module *owner, const std::string &name, VariableDirection direction, std::string &unit, UpdateMode mode, const std::string &description, const std::unordered_set< std::string > &tags={})
 
 VoidAccessor (Module *owner, const std::string &name, VariableDirection direction, UpdateMode mode, const std::string &description, const std::unordered_set< std::string > &tags={})
 
 VoidAccessor ()=default
 Default constructor creates a dysfunctional accessor (to be assigned with a real accessor later)
 
- Protected Member Functions inherited from ChimeraTK::InversionOfControlAccessor< VoidAccessor >
 InversionOfControlAccessor (Module *owner, const std::string &name, VariableDirection direction, std::string unit, size_t nElements, UpdateMode mode, const std::string &description, const std::type_info *valueType, const std::unordered_set< std::string > &tags={})
 Constructor, only used by child class accessors.
 
 InversionOfControlAccessor ()=default
 Default constructor creates a dysfunctional accessor (to be assigned with a real accessor later)
 
std::string completeDescription (EntityOwner *owner, const std::string &description) const
 complete the description with the full description from the owner
 
void registerInModel ()
 Register the variable in the model.
 
void init ()
 Late initialisation of stuff we cannot do in our constructor.
 
void deinit ()
 Early deinitialisation of stuff we cannot do in our destructor.
 
- Protected Attributes inherited from ChimeraTK::InversionOfControlAccessor< VoidAccessor >
VariableNetworkNode _node
 

Detailed Description

Convenience class for input accessors.

For Void there is only UpdateMode::push

Definition at line 58 of file VoidAccessor.h.

Constructor & Destructor Documentation

◆ VoidInput() [1/2]

ChimeraTK::VoidInput::VoidInput ( Module owner,
const std::string &  name,
const std::string &  description,
const std::unordered_set< std::string > &  tags = {} 
)
inline

Definition at line 60 of file VoidAccessor.h.

◆ VoidInput() [2/2]

ChimeraTK::VoidInput::VoidInput ( )
default

Member Function Documentation

◆ operator=() [1/2]

VoidAccessor & ChimeraTK::VoidAccessor::operator= ( VoidAccessor &&  other)
inlinenoexcept

Move assignment.

Definition at line 30 of file VoidAccessor.h.

◆ operator=() [2/2]

VoidAccessor & ChimeraTK::VoidAccessor::operator= ( VoidAccessor other)
delete

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