ArmNN
 21.11
Entity Class Reference

#include <TimelineModel.hpp>

Public Member Functions

 Entity (uint64_t guid)
 
uint64_t GetGuid () const
 
void AddChild (Entity *child)
 
void AddAttribute (const std::string &type, const std::string &value)
 
void AddConnection (const Connection &connection)
 
void AddExecution (Entity *execution)
 
void AddEvent (EventObj *event)
 
const AttributesGetAttributes () const
 
const std::vector< Entity * > & GetChildren () const
 
const std::vector< Connection > & GetConnections () const
 
const std::vector< Entity * > & GetExecutions () const
 
const std::vector< EventObj * > & GetEvents () const
 

Detailed Description

Definition at line 88 of file TimelineModel.hpp.

Constructor & Destructor Documentation

◆ Entity()

Entity ( uint64_t  guid)
inline

Definition at line 91 of file TimelineModel.hpp.

91 : m_Guid(guid) {}

Member Function Documentation

◆ AddAttribute()

void AddAttribute ( const std::string &  type,
const std::string &  value 
)
inline

Definition at line 100 of file TimelineModel.hpp.

Referenced by TimelineModel::AddRelationship().

101  {
102  Attribute attr(type, value);
103  m_Attributes.emplace(type, attr);
104  }
std::pair< std::string, std::string > Attribute

◆ AddChild()

void AddChild ( Entity child)
inline

Definition at line 93 of file TimelineModel.hpp.

94  {
95  if (child != nullptr)
96  {
97  m_Children.push_back(child);
98  }
99  }

◆ AddConnection()

void AddConnection ( const Connection connection)
inline

Definition at line 105 of file TimelineModel.hpp.

106  {
107  m_Connections.push_back(connection);
108  }

◆ AddEvent()

void AddEvent ( EventObj event)
inline

Definition at line 116 of file TimelineModel.hpp.

117  {
118  if (event != nullptr)
119  {
120  m_Events.push_back(event);
121  }
122  }

◆ AddExecution()

void AddExecution ( Entity execution)
inline

Definition at line 109 of file TimelineModel.hpp.

110  {
111  if (execution != nullptr)
112  {
113  m_Executions.push_back(execution);
114  }
115  }

◆ GetAttributes()

const Attributes& GetAttributes ( ) const
inline

Definition at line 123 of file TimelineModel.hpp.

Referenced by armnn::profiling::GetEntityDescription().

123 {return m_Attributes;}

◆ GetChildren()

const std::vector<Entity*>& GetChildren ( ) const
inline

Definition at line 124 of file TimelineModel.hpp.

124 {return m_Children;}

◆ GetConnections()

const std::vector<Connection>& GetConnections ( ) const
inline

Definition at line 125 of file TimelineModel.hpp.

125 {return m_Connections;}

◆ GetEvents()

const std::vector<EventObj*>& GetEvents ( ) const
inline

Definition at line 127 of file TimelineModel.hpp.

127 {return m_Events;}

◆ GetExecutions()

const std::vector<Entity*>& GetExecutions ( ) const
inline

Definition at line 126 of file TimelineModel.hpp.

126 {return m_Executions;}

◆ GetGuid()

uint64_t GetGuid ( ) const
inline

Definition at line 92 of file TimelineModel.hpp.

Referenced by armnn::profiling::GetConnectionDescription(), and armnn::profiling::GetEntityDescription().

92 {return m_Guid;}

The documentation for this class was generated from the following file: