Go to the documentation of this file.
30 #include <unordered_map>
33 #include "../Variant.h"
39 template <
typename AronTypeT,
typename DerivedT>
67 const auto& n =
dynamic_cast<const DerivedT&
>(other);
74 return *(this->
aron) == *(other.aron);
78 type::dto::GenericTypePtr
108 return dynamic_cast<DerivedT&
>(n);
111 static const DerivedT&
114 return dynamic_cast<const DerivedT&
>(n);
117 static std::shared_ptr<DerivedT>
120 return std::dynamic_pointer_cast<DerivedT>(n);
123 static std::shared_ptr<DerivedT>
131 auto casted = std::dynamic_pointer_cast<DerivedT>(n);
137 typename AronTypeT::PointerType
aron;
type::dto::GenericTypePtr toAronDTO() const override
convert this variant to a dto object.
std::shared_ptr< Variant > VariantPtr
type::Maybe getMaybe() const override
get the maybe type
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
bool operator==(const Variant &other) const override
VariantPtr navigateRelative(const Path &path) const override
navigate relative
virtual VariantPtr navigateAbsolute(const Path &path) const =0
naviate absolute
bool operator==(const DerivedT &other) const
void setMaybe(const type::Maybe m) override
set the maybetype of this type
SpecializedVariantBase(const AronTypeT &o, const type::Descriptor &descriptor, const Path &path)
static DerivedT & DynamicCast(Variant &n)
AronTypeT::PointerType aron
static std::shared_ptr< DerivedT > DynamicCastAndCheck(const VariantPtr &n)
Path getWithoutPrefix(const Path &) const
static std::shared_ptr< DerivedT > DynamicCast(const VariantPtr &n)
virtual ~SpecializedVariantBase()=default
SpecializedVariantBase(const type::Descriptor &descriptor, const Path &path)
const type::Descriptor descriptor
static const DerivedT & DynamicCast(const Variant &n)