• Home
  • Raw
  • Download

Lines Matching full:std

24 void TreeNode::AddChild(std::unique_ptr<PropertyDescriptor> descriptor)  in AddChild()
26 children.push_back(std::make_unique<TreeNode>(std::move(descriptor))); in AddChild()
31 children.push_back(std::make_unique<TreeNode>(std::move(descriptorMap))); in AddChild()
34 void TreeNode::AddChild(std::unique_ptr<TreeNode> child) in AddChild()
36 children.push_back(std::move(child)); in AddChild()
45 std::string indent(actualIndent, ' '); in Print()
47 if (std::holds_alternative<int32_t>(data)) { in Print()
48 std::cout << indent << "CallFrameId: " << std::get<int32_t>(data) << std::endl; in Print()
49 } else if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(data)) { in Print()
50 const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(data); in Print()
53 std::cout << key << ". " << value << std::endl; in Print()
56 } else if (std::holds_alternative<std::unique_ptr<PropertyDescriptor>>(data)) { in Print()
57 const auto &descriptor = std::get<std::unique_ptr<PropertyDescriptor>>(data); in Print()
60 std::cout << indent << " " << descriptor->GetName() << " = " in Print()
61 << descriptor->GetValue()->GetDescription() << std::endl; in Print()
63 std::cout << indent << " " << descriptor->GetName() << " = " in Print()
64 << descriptor->GetValue()->GetType() << std::endl; in Print()
67 } else if (std::holds_alternative<DescriptorMap>(data)) { in Print()
68 const auto &descriptorMap = std::get<DescriptorMap>(data); in Print()
70 std::cout << indent << key << ". "; in Print()
72std::cout << descriptor->GetName() << " = " << descriptor->GetValue()->GetDescription() << std::en… in Print()
82 Tree::Tree(const std::map<int32_t, std::map<int32_t, std::string>>& dataMap, int32_t index) in Tree()
84 root_ = std::make_unique<TreeNode>(index); in Tree()
89 std::map<int32_t, std::map<int32_t, std::string>> childData; in Tree()
91 root_->children.push_back(std::make_unique<TreeNode>(childData)); in Tree()
99 if (std::holds_alternative<int32_t>(root_->data)) { in PrintRootAndImmediateChildren()
100 std::cout << "CallFrame ID: " << std::get<int32_t>(root_->data) << std::endl; in PrintRootAndImmediateChildren()
104 … if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(child->data)) { in PrintRootAndImmediateChildren()
105 … const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(child->data); in PrintRootAndImmediateChildren()
107 std::cout << " Index: " << index << std::endl; in PrintRootAndImmediateChildren()
109 std::cout << " Object ID: " << objectId << ", Type: " << type << std::endl; in PrintRootAndImmediateChildren()
135 void Tree::AddVariableNode(TreeNode* parentNode, std::unique_ptr<PropertyDescriptor> descriptor) in AddVariableNode()
140 parentNode->AddChild(std::move(descriptor)); in AddVariableNode()
143 void Tree::AddObjectNode(TreeNode* parentNode, std::unique_ptr<PropertyDescriptor> descriptor) in AddObjectNode()
149 descriptorMap[index_] = std::move(descriptor); in AddObjectNode()
150 parentNode->AddChild(std::move(descriptorMap)); in AddObjectNode()
165 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(node->data)) { in FindNodeWithObjectIdRecursive()
166 … const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(node->data); in FindNodeWithObjectIdRecursive()
172 } else if (std::holds_alternative<DescriptorMap>(node->data)) { in FindNodeWithObjectIdRecursive()
173 const auto& descriptorMap = std::get<DescriptorMap>(node->data); in FindNodeWithObjectIdRecursive()
197 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(node->data)) { in FindNodeWithInnerKeyZero()
198 … const auto &outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(node->data); in FindNodeWithInnerKeyZero()
231 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(node->data)) { in FindObjectByIndexRecursive()
232 … const auto &outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(node->data); in FindObjectByIndexRecursive()
237 } else if (std::holds_alternative<DescriptorMap>(node->data)) { in FindObjectByIndexRecursive()
238 const auto &descriptorMap = std::get<DescriptorMap>(node->data); in FindObjectByIndexRecursive()
255 void VariableManager::SetHeapUsageInfo(std::unique_ptr<GetHeapUsageReturns> heapUsageReturns) in SetHeapUsageInfo()
263 std::cout << std::endl; in ShowHeapUsageInfo()
264 std::cout << "UsedSize is: " << heapUsageInfo_.GetUsedSize() << std::endl; in ShowHeapUsageInfo()
265std::cout << "TotalSize is: " << std::fixed << std::setprecision(0) << heapUsageInfo_.GetTotalSize… in ShowHeapUsageInfo()
277 void VariableManager::InitializeTree(std::map<int32_t, std::map<int32_t, std::string>> dataMap, int… in InitializeTree()
292 void VariableManager::AddVariableInfo(TreeNode *parentNode, std::unique_ptr<PropertyDescriptor> var… in AddVariableInfo()
295 variableInfo_.AddObjectNode(parentNode, std::move(variableInfo)); in AddVariableInfo()
297 variableInfo_.AddVariableNode(parentNode, std::move(variableInfo)); in AddVariableInfo()