ArmNN
 20.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 21 of file JSONTimelineDecoder.hpp.

Constructor & Destructor Documentation

◆ JSONEntity()

Member Function Documentation

◆ AddConnection()

void AddConnection ( JSONEntity headEntity,
JSONEntity connectedEntity 
)

Definition at line 359 of file JSONTimelineDecoder.cpp.

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

Referenced by JSONTimelineDecoder::CreateRelationship(), and JSONTimelineDecoder::JSONEntity::JSONEntity().

360 {
361  std::vector<uint64_t>::iterator it = std::find(headEntity.childEntities.begin(),
362  headEntity.childEntities.end(), connectedEntity.GetGuid());
363  headEntity.childEntities.erase(it);
364  headEntity.connected_entities.push_back(connectedEntity.m_Guid);
365 }

◆ GetGuid()

◆ GetName()

std::string GetName ( )

Definition at line 382 of file JSONTimelineDecoder.cpp.

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

383 {
384  return this->name;
385 }

◆ GetType()

std::string GetType ( )

◆ SetName()

void SetName ( std::string  entityName)

Definition at line 377 of file JSONTimelineDecoder.cpp.

Referenced by JSONTimelineDecoder::CreateRelationship(), and JSONTimelineDecoder::JSONEntity::JSONEntity().

378 {
379  this->name = entityName;
380 }

◆ SetParent()

void SetParent ( JSONEntity parent)

◆ SetType()

Member Data Documentation

◆ childEntities

◆ connected_entities

std::vector<uint64_t> connected_entities

◆ extendedData

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

The documentation for this struct was generated from the following files: