VL
|
#include <VLBackwardTraversable.h>
Public Member Functions | |
ObjectTreeNode (VarNodeRegistry ®istry, vl::AbstractVar *data, VarTreeNode *parent) | |
~ObjectTreeNode () | |
void | Update (Observable *sender, vl::VarPtr info) override |
bool | Has (const std::string &childId) const |
void | Set (const std::string &childId, const VarTreeNodePtr &node) |
const VarTreeNodePtr & | Get (const std::string &childId) const |
int | ChildCount () const override |
ObjectTreeNode * | AsObject () override |
const ObjectTreeNode * | AsObject () const override |
bool | IsObject () const override |
bool | Remove (const std::string &childId) |
VarTreeNodePtr | SharedFromThis () override |
ObjectTreeNodePtr | ObjectSharedFromThis () |
![]() | |
VarTreeNode (VarNodeRegistry ®istry, vl::AbstractVar *data, VarTreeNode *parent) | |
virtual | ~VarTreeNode () |
const std::string & | GetId () const |
int | GetIndex () const |
std::string | GetPath () const |
const VarNodeRegistry & | GetRegistry () const |
virtual bool | IsList () const |
virtual bool | IsObject () const |
virtual ObjectTreeNode * | AsObject () |
virtual const ObjectTreeNode * | AsObject () const |
virtual ListTreeNode * | AsList () |
virtual const ListTreeNode * | AsList () const |
void | Update (Observable *sender, vl::VarPtr info) override |
virtual int | ChildCount () const |
const vl::Var * | GetData () const |
virtual VarTreeNodePtr | SharedFromThis () |
bool | IsRoot () const |
const VarTreeNode * | GetParent () const |
const void * | DataPtr () const |
Protected Member Functions | |
bool | ForeachChildren (const std::function< bool(VarTreeNode &)> &pred) |
![]() | |
bool | ForeachChildren (const std::function< bool(VarTreeNode &)> &pred) |
void | SetParent (VarTreeNode *newParent) |
Additional Inherited Members | |
![]() | |
vl::AbstractVar * | mData = nullptr |
const void * | mDataPtr = nullptr |
VarTreeNode * | mParent = nullptr |
VarNodeRegistry & | mRegistry |
bool | mToBeReplaced = false |
vl::ObjectTreeNode::ObjectTreeNode | ( | VarNodeRegistry & | registry, |
vl::AbstractVar * | data, | ||
VarTreeNode * | parent | ||
) |
vl::ObjectTreeNode::~ObjectTreeNode | ( | ) |
|
overridevirtual |
Reimplemented from vl::VarTreeNode.
|
overridevirtual |
Reimplemented from vl::VarTreeNode.
|
overridevirtual |
Reimplemented from vl::VarTreeNode.
|
protected |
const vl::VarTreeNodePtr & vl::ObjectTreeNode::Get | ( | const std::string & | childId | ) | const |
bool vl::ObjectTreeNode::Has | ( | const std::string & | childId | ) | const |
|
overridevirtual |
Reimplemented from vl::VarTreeNode.
ObjectTreeNodePtr vl::ObjectTreeNode::ObjectSharedFromThis | ( | ) |
bool vl::ObjectTreeNode::Remove | ( | const std::string & | childId | ) |
void vl::ObjectTreeNode::Set | ( | const std::string & | childId, |
const VarTreeNodePtr & | node | ||
) |
|
overridevirtual |
Reimplemented from vl::VarTreeNode.
|
override |