Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Counts the number of occurrencies of each ID. More...
#include <VLXVisitorCountIDs.hpp>
Public Member Functions | |
VLXVisitorCountIDs () | |
virtual void | visitStructure (VLXStructure *obj) |
virtual void | visitList (VLXList *list) |
virtual void | visitArray (VLXArrayInteger *) |
virtual void | visitArray (VLXArrayReal *) |
void | setIDSet (std::map< std::string, int > *uids) |
std::map< std::string, int > * | uidSet () |
const std::map< std::string, int > * | uidSet () const |
Counts the number of occurrencies of each ID.
If an ID is occurring more than 1 it means that belongs to a VLXStructure which is referenced by somebody.
Definition at line 43 of file VLXVisitorCountIDs.hpp.
vl::VLXVisitorCountIDs::VLXVisitorCountIDs | ( | ) | [inline] |
Definition at line 48 of file VLXVisitorCountIDs.hpp.
virtual void vl::VLXVisitorCountIDs::visitStructure | ( | VLXStructure * | obj ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 50 of file VLXVisitorCountIDs.hpp.
References vl::VLXList::acceptVisitor(), vl::VLXStructure::acceptVisitor(), vl::VLXValue::getID(), vl::VLXValue::getList(), vl::VLXValue::getStructure(), vl::VLXValue::ID, vl::VLXVisitor::isVisited(), vl::VLXValue::List, vl::VLXValue::Structure, vl::VLXValue::type(), vl::VLXStructure::uid(), vl::VLXStructure::Value::value(), and vl::VLXStructure::value().
virtual void vl::VLXVisitorCountIDs::visitList | ( | VLXList * | list ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 77 of file VLXVisitorCountIDs.hpp.
References vl::VLXValue::ID, vl::VLXVisitor::isVisited(), vl::VLXValue::List, vl::VLXValue::Structure, vl::VLXList::value(), and vl::Log::warning().
virtual void vl::VLXVisitorCountIDs::visitArray | ( | VLXArrayInteger * | ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 116 of file VLXVisitorCountIDs.hpp.
virtual void vl::VLXVisitorCountIDs::visitArray | ( | VLXArrayReal * | ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 118 of file VLXVisitorCountIDs.hpp.
void vl::VLXVisitorCountIDs::setIDSet | ( | std::map< std::string, int > * | uids ) | [inline] |
Definition at line 120 of file VLXVisitorCountIDs.hpp.
Referenced by vl::VLXSerializer::saveVLB(), and vl::VLXSerializer::saveVLT().
std::map< std::string, int >* vl::VLXVisitorCountIDs::uidSet | ( | ) | [inline] |
Definition at line 122 of file VLXVisitorCountIDs.hpp.
const std::map< std::string, int >* vl::VLXVisitorCountIDs::uidSet | ( | ) | const [inline] |
Definition at line 124 of file VLXVisitorCountIDs.hpp.