Go to the documentation of this file.
30 #include "../../Descriptor.h"
31 #include "../../Exception.h"
41 template <
class VisitorImplementation>
42 void visit(VisitorImplementation&
v,
typename VisitorImplementation::Input& t)
44 auto descriptor =
v.getDescriptor(t);
48 return v.visitObject(t);
50 return v.visitList(t);
52 return v.visitDict(t);
54 return v.visitPair(t);
56 return v.visitTuple(t);
58 return v.visitNDArray(t);
60 return v.visitMatrix(t);
62 return v.visitImage(t);
64 return v.visitPointCloud(t);
66 return v.visitQuaternion(t);
70 return v.visitLong(t);
72 return v.visitFloat(t);
74 return v.visitDouble(t);
76 return v.visitString(t);
78 return v.visitBool(t);
80 return v.visitAnyObject(t);
82 return v.visitIntEnum(t);
84 return v.visitUnknown(t);
virtual ~Visitor()=default
const nlohmann::json Input
A base class for aron exceptions.
virtual void visitObject(Input &)
virtual void visitIntEnum(Input &)
virtual void visitAnyObject(Input &)
virtual void visitBool(Input &)
virtual void visitOrientation(Input &)
virtual void visitList(Input &)
virtual void visitInt(Input &)
virtual void visitQuaternion(Input &)
virtual void visitPointCloud(Input &)
virtual void visitTuple(Input &)
virtual void visitPosition(Input &)
virtual void visitPose(Input &)
virtual void visitString(Input &)
virtual void visitLong(Input &)
virtual type::Descriptor getDescriptor(Input &)=0
virtual void visitUnknown(Input &)
A convenience header to include all aron files (full include, not forward declared)
virtual void visitDict(Input &)
double v(double t, double v0, double a0, double j)
virtual void visitPair(Input &)
void visit(VisitorImplementation &v, typename VisitorImplementation::Input &t)
The visit function.
virtual void visitNDArray(Input &)
virtual void visitMatrix(Input &)
const nlohmann::json Input
virtual void visitDouble(Input &)
virtual void visitFloat(Input &)
virtual ~VisitorBase()=default
virtual void visitImage(Input &)