• Home
  • Raw
  • Download

Lines Matching full:std

20 void TreeNode::AddChild(std::unique_ptr<PropertyDescriptor> descriptor)  in AddChild()
22 children.push_back(std::make_unique<TreeNode>(std::move(descriptor))); in AddChild()
27 children.push_back(std::make_unique<TreeNode>(std::move(descriptorMap))); in AddChild()
30 void TreeNode::AddChild(std::unique_ptr<TreeNode> child) in AddChild()
32 children.push_back(std::move(child)); in AddChild()
41 std::string indent(actualIndent, ' '); in Print()
43 if (std::holds_alternative<int32_t>(data)) { in Print()
44 std::cout << indent << "CallFrameId: " << std::get<int32_t>(data) << std::endl; in Print()
45 } else if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(data)) { in Print()
46 const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(data); in Print()
49 std::cout << key << ". " << value << std::endl; in Print()
52 } else if (std::holds_alternative<std::unique_ptr<PropertyDescriptor>>(data)) { in Print()
53 const auto &descriptor = std::get<std::unique_ptr<PropertyDescriptor>>(data); in Print()
56 std::cout << indent << " " << descriptor->GetName() << " = " in Print()
57 << descriptor->GetValue()->GetDescription() << std::endl; in Print()
59 std::cout << indent << " " << descriptor->GetName() << " = " in Print()
60 << descriptor->GetValue()->GetType() << std::endl; in Print()
63 } else if (std::holds_alternative<DescriptorMap>(data)) { in Print()
64 const auto &descriptorMap = std::get<DescriptorMap>(data); in Print()
66 std::cout << indent << key << ". "; in Print()
68std::cout << descriptor->GetName() << " = " << descriptor->GetValue()->GetDescription() << std::en… in Print()
78 Tree::Tree(const std::map<int32_t, std::map<int32_t, std::string>>& dataMap, int32_t index) in Tree()
80 root_ = std::make_unique<TreeNode>(index); in Tree()
85 std::map<int32_t, std::map<int32_t, std::string>> childData; in Tree()
87 root_->children.push_back(std::make_unique<TreeNode>(childData)); in Tree()
95 if (std::holds_alternative<int32_t>(root_->data)) { in PrintRootAndImmediateChildren()
96 std::cout << "CallFrame ID: " << std::get<int32_t>(root_->data) << std::endl; in PrintRootAndImmediateChildren()
100 … if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(child->data)) { in PrintRootAndImmediateChildren()
101 … const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(child->data); in PrintRootAndImmediateChildren()
103 std::cout << " Index: " << index << std::endl; in PrintRootAndImmediateChildren()
105 std::cout << " Object ID: " << objectId << ", Type: " << type << std::endl; in PrintRootAndImmediateChildren()
131 void Tree::AddVariableNode(TreeNode* parentNode, std::unique_ptr<PropertyDescriptor> descriptor) in AddVariableNode()
136 parentNode->AddChild(std::move(descriptor)); in AddVariableNode()
139 void Tree::AddObjectNode(TreeNode* parentNode, std::unique_ptr<PropertyDescriptor> descriptor) in AddObjectNode()
145 descriptorMap[index_] = std::move(descriptor); in AddObjectNode()
146 parentNode->AddChild(std::move(descriptorMap)); in AddObjectNode()
161 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(node->data)) { in FindNodeWithObjectIdRecursive()
162 … const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(node->data); in FindNodeWithObjectIdRecursive()
168 } else if (std::holds_alternative<DescriptorMap>(node->data)) { in FindNodeWithObjectIdRecursive()
169 const auto& descriptorMap = std::get<DescriptorMap>(node->data); in FindNodeWithObjectIdRecursive()
193 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(node->data)) { in FindNodeWithInnerKeyZero()
194 … const auto &outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(node->data); in FindNodeWithInnerKeyZero()
227 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(node->data)) { in FindObjectByIndexRecursive()
228 … const auto &outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(node->data); in FindObjectByIndexRecursive()
233 } else if (std::holds_alternative<DescriptorMap>(node->data)) { in FindObjectByIndexRecursive()
234 const auto &descriptorMap = std::get<DescriptorMap>(node->data); in FindObjectByIndexRecursive()
251 void VariableManager::SetHeapUsageInfo(std::unique_ptr<GetHeapUsageReturns> heapUsageReturns) in SetHeapUsageInfo()
259 std::cout << std::endl; in ShowHeapUsageInfo()
260 std::cout << "UsedSize is: " << heapUsageInfo_.GetUsedSize() << std::endl; in ShowHeapUsageInfo()
261std::cout << "TotalSize is: " << std::fixed << std::setprecision(0) << heapUsageInfo_.GetTotalSize… in ShowHeapUsageInfo()
273 void VariableManager::InitializeTree(std::map<int32_t, std::map<int32_t, std::string>> dataMap, int… in InitializeTree()
288 void VariableManager::AddVariableInfo(TreeNode *parentNode, std::unique_ptr<PropertyDescriptor> var… in AddVariableInfo()
291 variableInfo_.AddObjectNode(parentNode, std::move(variableInfo)); in AddVariableInfo()
293 variableInfo_.AddVariableNode(parentNode, std::move(variableInfo)); in AddVariableInfo()