TreeDataVisitor Class Reference

#include <RobotAPI/libraries/armem_gui/instance/tree_visitors/TreeDataVisitor.h>

+ Inheritance diagram for TreeDataVisitor:

Public Member Functions

 TreeDataVisitorBase ()
 
 TreeDataVisitorBase (QTreeWidgetItem *root)
 
void visitBool (const aron::data::VariantPtr &b) override
 
void visitDictOnEnter (const aron::data::VariantPtr &n) override
 
void visitDictOnExit (const aron::data::VariantPtr &) override
 
void visitDouble (const aron::data::VariantPtr &d) override
 
void visitFloat (const aron::data::VariantPtr &f) override
 
void visitInt (const aron::data::VariantPtr &i) override
 
void visitListOnEnter (const aron::data::VariantPtr &n) override
 
void visitListOnExit (const aron::data::VariantPtr &) override
 
void visitLong (const aron::data::VariantPtr &l) override
 
void visitNDArray (const aron::data::VariantPtr &array) override
 
void visitString (const aron::data::VariantPtr &string) override
 
- Public Member Functions inherited from RecursiveConstVariantVisitor
data::Descriptor getDescriptor (Input &n) override
 
MapElements getDictElements (Input &n) override
 
ListElements getListElements (Input &n) override
 
virtual void visitAronVariant (const data::BoolPtr &)
 
virtual void visitAronVariant (const data::DoublePtr &)
 
virtual void visitAronVariant (const data::FloatPtr &)
 
virtual void visitAronVariant (const data::IntPtr &)
 
virtual void visitAronVariant (const data::LongPtr &)
 
virtual void visitAronVariant (const data::NDArrayPtr &)
 
virtual void visitAronVariant (const data::StringPtr &)
 
virtual void visitAronVariantOnEnter (const data::DictPtr &)
 
virtual void visitAronVariantOnEnter (const data::ListPtr &)
 
virtual void visitAronVariantOnExit (const data::DictPtr &)
 
virtual void visitAronVariantOnExit (const data::ListPtr &)
 
void visitBool (Input &i) override
 
void visitDictOnEnter (Input &i) override
 
void visitDictOnExit (Input &i) override
 
void visitDouble (Input &i) override
 
void visitFloat (Input &i) override
 
void visitInt (Input &i) override
 
void visitListOnEnter (Input &i) override
 
void visitListOnExit (Input &i) override
 
void visitLong (Input &i) override
 
void visitNDArray (Input &i) override
 
void visitString (Input &i) override
 
virtual ~RecursiveConstVariantVisitor ()=default
 
- Public Member Functions inherited from RecursiveVisitor< const data::VariantPtr >
virtual void visitUnknown (Input &element)
 
virtual ~RecursiveVisitor ()=default
 
- Public Member Functions inherited from VisitorBase< const data::VariantPtr >
virtual data::Descriptor getDescriptor (Input &)=0
 
virtual ~VisitorBase ()=default
 
- Public Member Functions inherited from TreeDataVisitorBase
void setColumns (int key, int value, int type)
 
 TreeDataVisitorBase ()
 
 TreeDataVisitorBase (QTreeWidgetItem *root)
 
virtual ~TreeDataVisitorBase ()
 

Additional Inherited Members

- Public Types inherited from RecursiveVisitor< const data::VariantPtr >
using Input = typename VisitorBase< const data::VariantPtr >::Input
 
using InputNonConst = typename std::remove_const< Input >::type
 
using ListElements = std::vector< InputNonConst >
 
using MapElements = std::map< std::string, InputNonConst >
 
- Public Types inherited from VisitorBase< const data::VariantPtr >
using Input = const data::VariantPtr
 
- Static Public Member Functions inherited from RecursiveConstVariantVisitor
static MapElements GetDictElements (Input &n)
 
static ListElements GetListElements (Input &n)
 
- Public Attributes inherited from TreeDataVisitorBase
int columnKey = 0
 
int columnType = 2
 
int columnValue = 1
 
std::stack< QTreeWidgetItem * > items
 
std::stack< QTreeWidgetItem * > rootItems
 
- Protected Member Functions inherited from TreeDataVisitorBase
bool _visitEnter (const std::string &key, const std::string &type, size_t numChildren)
 
bool _visitExit ()
 
template<class Navigator >
bool addValueRow (const std::string &key, Navigator &n, const std::string &typeName)
 
QStringList makeValueRowStrings (const std::string &key, const std::string &value, const std::string &typeName) const
 
template<class Navigator >
QStringList makeValueRowStrings (const std::string &key, Navigator &n, const std::string &typeName) const
 
void streamValueText (const aron::data::Bool &n, std::stringstream &ss) const
 
void streamValueText (const aron::data::NDArray &n, std::stringstream &ss) const
 
void streamValueText (const aron::data::String &n, std::stringstream &ss) const
 
template<class Navigator >
void streamValueText (Navigator &n, std::stringstream &ss) const
 

Detailed Description

Definition at line 16 of file TreeDataVisitor.h.

Member Function Documentation

◆ TreeDataVisitorBase() [1/2]

Definition at line 10 of file TreeDataVisitorBase.cpp.

◆ TreeDataVisitorBase() [2/2]

Definition at line 14 of file TreeDataVisitorBase.cpp.

◆ visitBool()

void visitBool ( const aron::data::VariantPtr b)
inlineoverride

Definition at line 46 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitDictOnEnter()

void visitDictOnEnter ( const aron::data::VariantPtr n)
inlineoverride

Definition at line 25 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitDictOnExit()

void visitDictOnExit ( const aron::data::VariantPtr )
inlineoverride

Definition at line 30 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitDouble()

void visitDouble ( const aron::data::VariantPtr d)
inlineoverride

Definition at line 52 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitFloat()

void visitFloat ( const aron::data::VariantPtr f)
inlineoverride

Definition at line 58 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitInt()

void visitInt ( const aron::data::VariantPtr i)
inlineoverride

Definition at line 64 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitListOnEnter()

void visitListOnEnter ( const aron::data::VariantPtr n)
inlineoverride

Definition at line 35 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitListOnExit()

void visitListOnExit ( const aron::data::VariantPtr )
inlineoverride

Definition at line 40 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitLong()

void visitLong ( const aron::data::VariantPtr l)
inlineoverride

Definition at line 70 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitNDArray()

void visitNDArray ( const aron::data::VariantPtr array)
inlineoverride

Definition at line 83 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

◆ visitString()

void visitString ( const aron::data::VariantPtr string)
inlineoverride

Definition at line 76 of file TreeDataVisitor.h.

+ Here is the call graph for this function:

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