ArmNN
 23.08
JSONTimelineDecoder::JSONEntity Struct Reference

#include <JSONTimelineDecoder.hpp>

Public Member Functions

 JSONEntity (uint64_t guid)
 
uint64_t GetGuid ()
 
std::string GetName ()
 
std::string GetType ()
 
void SetName (std::string entityName)
 
void SetType (std::string entityType)
 
void SetParent (JSONEntity &parent)
 
void AddConnection (JSONEntity &headEntity, JSONEntity &connectedEntity)
 

Public Attributes

std::vector< uint64_t > connected_entities
 
std::vector< uint64_t > childEntities
 
std::map< std::string, std::string > extendedData
 

Detailed Description

Definition at line 22 of file JSONTimelineDecoder.hpp.

Constructor & Destructor Documentation

◆ JSONEntity()

JSONEntity ( uint64_t  guid)
inline

Definition at line 28 of file JSONTimelineDecoder.hpp.

28 : m_Guid(guid){}

Member Function Documentation

◆ AddConnection()

void AddConnection ( JSONEntity headEntity,
JSONEntity connectedEntity 
)

Definition at line 334 of file JSONTimelineDecoder.cpp.

335 {
336  std::vector<uint64_t>::iterator it = std::find(headEntity.childEntities.begin(),
337  headEntity.childEntities.end(), connectedEntity.GetGuid());
338  headEntity.childEntities.erase(it);
339  headEntity.connected_entities.push_back(connectedEntity.m_Guid);
340 }

References JSONTimelineDecoder::JSONEntity::childEntities, JSONTimelineDecoder::JSONEntity::connected_entities, and JSONTimelineDecoder::JSONEntity::GetGuid().

◆ GetGuid()

uint64_t GetGuid ( )

◆ GetName()

std::string GetName ( )

Definition at line 357 of file JSONTimelineDecoder.cpp.

358 {
359  return this->name;
360 }

◆ GetType()

std::string GetType ( )

Definition at line 367 of file JSONTimelineDecoder.cpp.

368 {
369  return this->type;
370 }

Referenced by JSONTimelineDecoder::GetJSONEntityString(), and JSONTimelineDecoder::GetJSONString().

◆ SetName()

void SetName ( std::string  entityName)

Definition at line 352 of file JSONTimelineDecoder.cpp.

353 {
354  this->name = entityName;
355 }

◆ SetParent()

void SetParent ( JSONEntity parent)

Definition at line 213 of file JSONTimelineDecoder.cpp.

214 {
215  parent.childEntities.push_back(GetGuid());
216 }

References JSONTimelineDecoder::JSONEntity::childEntities, and JSONTimelineDecoder::JSONEntity::GetGuid().

◆ SetType()

void SetType ( std::string  entityType)

Definition at line 362 of file JSONTimelineDecoder.cpp.

363 {
364  this->type = entityType;
365 }

Referenced by JSONTimelineDecoder::CreateEntity(), JSONTimelineDecoder::CreateEvent(), and JSONTimelineDecoder::CreateEventClass().

Member Data Documentation

◆ childEntities

◆ connected_entities

std::vector<uint64_t> connected_entities

◆ extendedData

std::map<std::string, std::string> extendedData

Definition at line 36 of file JSONTimelineDecoder.hpp.


The documentation for this struct was generated from the following files:
armnn::timelinedecoder::JSONTimelineDecoder::JSONEntity::GetGuid
uint64_t GetGuid()
Definition: JSONTimelineDecoder.cpp:342