Lines Matching refs:descriptor
24 void TreeNode::AddChild(std::unique_ptr<PropertyDescriptor> descriptor)
26 children.push_back(std::make_unique<TreeNode>(std::move(descriptor)));
57 const auto &descriptor = std::get<std::unique_ptr<PropertyDescriptor>>(data);
58 if (descriptor && descriptor->GetValue()) {
59 if (descriptor->GetValue()->HasDescription()) {
60 std::cout << indent << " " << descriptor->GetName() << " = "
61 << descriptor->GetValue()->GetDescription() << std::endl;
63 std::cout << indent << " " << descriptor->GetName() << " = "
64 << descriptor->GetValue()->GetType() << std::endl;
69 for (const auto& [key, descriptor] : descriptorMap) {
71 if (descriptor && descriptor->GetValue()) {
72 std::cout << descriptor->GetName() << " = " << descriptor->GetValue()->GetDescription() << std::endl;
135 void Tree::AddVariableNode(TreeNode* parentNode, std::unique_ptr<PropertyDescriptor> descriptor)
140 parentNode->AddChild(std::move(descriptor));
143 void Tree::AddObjectNode(TreeNode* parentNode, std::unique_ptr<PropertyDescriptor> descriptor)
149 descriptorMap[index_] = std::move(descriptor);
174 for (const auto& [key, descriptor] : descriptorMap) {
175 if (descriptor && descriptor->GetValue() && descriptor->GetValue()->GetObjectId() == objectId) {