Kanzi 3.9.10
node.hpp File Reference

Classes

struct  kanzi::Node::MessageSubscription::LessFunctor
 
class  kanzi::Node::MessageSubscriptionToken
 Message subscription token for nodes. More...
 
class  kanzi::Node
 Base class for Kanzi nodes. More...
 
struct  kanzi::Node::NodeComponentEntry
 Object node component entry. More...
 

Namespaces

namespace  kanzi
 

Typedefs

typedef shared_ptr< InputManipulatorkanzi::InputManipulatorBaseSharedPtr
 
typedef shared_ptr< NodeComponentkanzi::NodeComponentSharedPtr
 
typedef shared_ptr< Node const > kanzi::NodeConstSharedPtr
 Alias for shared pointer of const Node.
 
typedef weak_ptr< Node const > kanzi::NodeConstWeakPtr
 Alias for weak pointer of const Node.
 
typedef shared_ptr< ResourceDictionarykanzi::ResourceDictionarySharedPtr
 Resource dictionary shared pointer.
 

Functions

bool kanzi::canNodeGetFocus (const Node &node)
 Returns whether a node can get the key focus.
 
Nodekanzi::findCommonParent (const Node &nodeA, const Node &nodeB)
 Gets first common parent from nodeA and nodeB, or null if not found.
 
template<typename Type >
shared_ptr< Type > kanzi::findParent (const Node &node)
 Gets nearest parent of specified type.
 
optional< string > kanzi::getRelativePath (const Node &targetNode, const Node &baseNode)
 Gets the relative path from base object node to target object node, or nullopt if path could not be found.
 
const Nodekanzi::getRoot (const Node &node)
 Gets the root node of the node tree to which the node belongs.
 
Nodekanzi::getRoot (Node &node)
 Gets the root node of the node tree to which the node belongs.
 
unsigned int kanzi::getTreeHeight (const Node &node)
 Gets tree height from the object node to the parent.
 
bool kanzi::isAncestorOf (const Node &node, const Node &ancestor)
 Indicates whether one node is the ancestor of another node at any level in the node tree.
 
bool kanzi::isParentOf (const Node &child, const Node &parent)
 Indicates whether one node is the parent of another node.