Converter< ReaderImplementation, WriterImplementation, DerivedT > Struct Template Reference

Converter struct providing the needed methods. More...

#include <RobotAPI/libraries/aron/core/data/converter/Converter.h>

Public Types

using ReaderInputType = typename ReaderImplementation::InputType
 
using ReaderInputTypeNonConst = typename ReaderImplementation::InputTypeNonConst
 
using ReaderType = ReaderImplementation
 
using This = DerivedT
 
using WriterReturnType = typename WriterImplementation::ReturnType
 
using WriterType = WriterImplementation
 

Public Member Functions

data::Descriptor getDescriptor (ReaderInputType &o) final
 
void visitBool (ReaderInputType &o) final
 
void visitDict (ReaderInputType &o) final
 
void visitDouble (ReaderInputType &o) final
 
void visitFloat (ReaderInputType &o) final
 
void visitInt (ReaderInputType &o) final
 
void visitList (ReaderInputType &o) final
 
void visitLong (ReaderInputType &o) final
 
void visitNDArray (ReaderInputType &o) final
 
void visitString (ReaderInputType &o) final
 
void visitUnknown (ReaderInputType &o) final
 
virtual ~Converter ()=default
 

Public Attributes

WriterReturnType last_returned
 
ReaderImplementation r
 
WriterImplementation w
 

Detailed Description

template<class ReaderImplementation, class WriterImplementation, class DerivedT>
struct armarx::aron::data::Converter< ReaderImplementation, WriterImplementation, DerivedT >

Converter struct providing the needed methods.

WriterImplementation is a writer class, TODO: add concepts

Definition at line 35 of file Converter.h.

Member Typedef Documentation

◆ ReaderInputType

using ReaderInputType = typename ReaderImplementation::InputType

Definition at line 54 of file Converter.h.

◆ ReaderInputTypeNonConst

using ReaderInputTypeNonConst = typename ReaderImplementation::InputTypeNonConst

Definition at line 55 of file Converter.h.

◆ ReaderType

using ReaderType = ReaderImplementation

Definition at line 51 of file Converter.h.

◆ This

using This = DerivedT

Definition at line 52 of file Converter.h.

◆ WriterReturnType

using WriterReturnType = typename WriterImplementation::ReturnType

Definition at line 53 of file Converter.h.

◆ WriterType

using WriterType = WriterImplementation

Definition at line 50 of file Converter.h.

Constructor & Destructor Documentation

◆ ~Converter()

virtual ~Converter ( )
virtualdefault

Member Function Documentation

◆ getDescriptor()

data::Descriptor getDescriptor ( ReaderInputType o)
inlinefinal

Definition at line 63 of file Converter.h.

◆ visitBool()

void visitBool ( ReaderInputType o)
inlinefinal

Definition at line 139 of file Converter.h.

◆ visitDict()

void visitDict ( ReaderInputType o)
inlinefinal

Definition at line 68 of file Converter.h.

◆ visitDouble()

void visitDouble ( ReaderInputType o)
inlinefinal

Definition at line 131 of file Converter.h.

◆ visitFloat()

void visitFloat ( ReaderInputType o)
inlinefinal

Definition at line 123 of file Converter.h.

◆ visitInt()

void visitInt ( ReaderInputType o)
inlinefinal

Definition at line 107 of file Converter.h.

◆ visitList()

void visitList ( ReaderInputType o)
inlinefinal

Definition at line 83 of file Converter.h.

◆ visitLong()

void visitLong ( ReaderInputType o)
inlinefinal

Definition at line 115 of file Converter.h.

◆ visitNDArray()

void visitNDArray ( ReaderInputType o)
inlinefinal

Definition at line 97 of file Converter.h.

◆ visitString()

void visitString ( ReaderInputType o)
inlinefinal

Definition at line 147 of file Converter.h.

◆ visitUnknown()

void visitUnknown ( ReaderInputType o)
inlinefinal

Definition at line 155 of file Converter.h.

Member Data Documentation

◆ last_returned

WriterReturnType last_returned

Definition at line 59 of file Converter.h.

◆ r

ReaderImplementation r

Definition at line 57 of file Converter.h.

◆ w

WriterImplementation w

Definition at line 58 of file Converter.h.


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