From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...n_1_1timelinedecoder_1_1_timeline_decoder.xhtml | 620 +++++++++++++++++++++ 1 file changed, 620 insertions(+) create mode 100644 20.02/classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml (limited to '20.02/classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml') diff --git a/20.02/classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml b/20.02/classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml new file mode 100644 index 0000000000..196d0e6e13 --- /dev/null +++ b/20.02/classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml @@ -0,0 +1,620 @@ + + + + + + + + + + + + + +ArmNN: TimelineDecoder Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TimelineDecoder Class Reference
+
+
+ +

#include <TimelineDecoder.hpp>

+
+Inheritance diagram for TimelineDecoder:
+
+
+ + +ITimelineDecoder + +
+ + + + +

+Classes

struct  Model
 
+ + + + + + + + + + + + + + + + +

+Public Types

using OnNewEntityCallback = void(*)(Model &, const Entity)
 
using OnNewEventClassCallback = void(*)(Model &, const EventClass)
 
using OnNewEventCallback = void(*)(Model &, const Event)
 
using OnNewLabelCallback = void(*)(Model &, const Label)
 
using OnNewRelationshipCallback = void(*)(Model &, const Relationship)
 
- Public Types inherited from ITimelineDecoder
enum  TimelineStatus { TimelineStatus_Success, +TimelineStatus_Fail + }
 
enum  RelationshipType { RetentionLink, +ExecutionLink, +DataLink, +LabelLink + }
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual TimelineStatus CreateEntity (const Entity &) override
 
virtual TimelineStatus CreateEventClass (const EventClass &) override
 
virtual TimelineStatus CreateEvent (const Event &) override
 
virtual TimelineStatus CreateLabel (const Label &) override
 
virtual TimelineStatus CreateRelationship (const Relationship &) override
 
const ModelGetModel ()
 
TimelineStatus SetEntityCallback (const OnNewEntityCallback)
 
TimelineStatus SetEventClassCallback (const OnNewEventClassCallback)
 
TimelineStatus SetEventCallback (const OnNewEventCallback)
 
TimelineStatus SetLabelCallback (const OnNewLabelCallback)
 
TimelineStatus SetRelationshipCallback (const OnNewRelationshipCallback)
 
void print ()
 
- Public Member Functions inherited from ITimelineDecoder
virtual ~ITimelineDecoder ()=default
 
+

Detailed Description

+
+

Definition at line 14 of file TimelineDecoder.hpp.

+

Member Typedef Documentation

+ +

◆ OnNewEntityCallback

+ +
+
+ + + + +
using OnNewEntityCallback = void (*)(Model &, const Entity)
+
+ +

Definition at line 28 of file TimelineDecoder.hpp.

+ +
+
+ +

◆ OnNewEventCallback

+ +
+
+ + + + +
using OnNewEventCallback = void (*)(Model &, const Event)
+
+ +

Definition at line 30 of file TimelineDecoder.hpp.

+ +
+
+ +

◆ OnNewEventClassCallback

+ +
+
+ + + + +
using OnNewEventClassCallback = void (*)(Model &, const EventClass)
+
+ +

Definition at line 29 of file TimelineDecoder.hpp.

+ +
+
+ +

◆ OnNewLabelCallback

+ +
+
+ + + + +
using OnNewLabelCallback = void (*)(Model &, const Label)
+
+ +

Definition at line 31 of file TimelineDecoder.hpp.

+ +
+
+ +

◆ OnNewRelationshipCallback

+ +
+
+ + + + +
using OnNewRelationshipCallback = void (*)(Model &, const Relationship)
+
+ +

Definition at line 32 of file TimelineDecoder.hpp.

+ +
+
+

Member Function Documentation

+ +

◆ CreateEntity()

+ +
+
+ + + + + +
+ + + + + + + + +
TimelineDecoder::TimelineStatus CreateEntity (const Entityentity)
+
+overridevirtual
+
+ +

Implements ITimelineDecoder.

+ +

Definition at line 14 of file TimelineDecoder.cpp.

+ +

References ITimelineDecoder::TimelineStatus_Fail, and ITimelineDecoder::TimelineStatus_Success.

+
15 {
16  if (m_OnNewEntityCallback == nullptr)
17  {
19  }
20  m_OnNewEntityCallback(m_Model, entity);
21 
23 }
+ +
+
+
+ +

◆ CreateEvent()

+ +
+
+ + + + + +
+ + + + + + + + +
TimelineDecoder::TimelineStatus CreateEvent (const Eventevent)
+
+overridevirtual
+
+ +

Implements ITimelineDecoder.

+ +

Definition at line 36 of file TimelineDecoder.cpp.

+ +

References ITimelineDecoder::TimelineStatus_Fail, and ITimelineDecoder::TimelineStatus_Success.

+
37 {
38  if (m_OnNewEventCallback == nullptr)
39  {
41  }
42  m_OnNewEventCallback(m_Model, event);
43 
45 }
+ +
+
+
+ +

◆ CreateEventClass()

+ +
+
+ + + + + +
+ + + + + + + + +
TimelineDecoder::TimelineStatus CreateEventClass (const EventClasseventClass)
+
+overridevirtual
+
+ +

Implements ITimelineDecoder.

+ +

Definition at line 25 of file TimelineDecoder.cpp.

+ +

References ITimelineDecoder::TimelineStatus_Fail, and ITimelineDecoder::TimelineStatus_Success.

+
26 {
27  if (m_OnNewEventClassCallback == nullptr)
28  {
30  }
31  m_OnNewEventClassCallback(m_Model, eventClass);
32 
34 }
+ +
+
+
+ +

◆ CreateLabel()

+ +
+
+ + + + + +
+ + + + + + + + +
TimelineDecoder::TimelineStatus CreateLabel (const Labellabel)
+
+overridevirtual
+
+ +

Implements ITimelineDecoder.

+ +

Definition at line 47 of file TimelineDecoder.cpp.

+ +

References ITimelineDecoder::TimelineStatus_Fail, and ITimelineDecoder::TimelineStatus_Success.

+
48 {
49  if (m_OnNewLabelCallback == nullptr)
50  {
52  }
53  m_OnNewLabelCallback(m_Model, label);
54 
56 }
+ +
+
+
+ +

◆ CreateRelationship()

+ +
+
+ + + + + +
+ + + + + + + + +
TimelineDecoder::TimelineStatus CreateRelationship (const Relationshiprelationship)
+
+overridevirtual
+
+ +

Implements ITimelineDecoder.

+ +

Definition at line 58 of file TimelineDecoder.cpp.

+ +

References ITimelineDecoder::TimelineStatus_Fail, and ITimelineDecoder::TimelineStatus_Success.

+
59 {
60  if (m_OnNewRelationshipCallback == nullptr)
61  {
63  }
64  m_OnNewRelationshipCallback(m_Model, relationship);
66 }
+ +
+
+
+ +

◆ GetModel()

+ +
+
+ + + + + + + +
const TimelineDecoder::Model & GetModel ()
+
+ +

Definition at line 68 of file TimelineDecoder.cpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
69 {
70  return m_Model;
71 }
+
+
+ +

◆ print()

+ +
+
+ + + + + + + +
void print ()
+
+ +

Definition at line 123 of file TimelineDecoder.cpp.

+ +

References armnn::profiling::CentreAlignFormatting(), TimelineDecoder::Model::m_Entities, TimelineDecoder::Model::m_EventClasses, TimelineDecoder::Model::m_Events, TimelineDecoder::Model::m_Labels, and TimelineDecoder::Model::m_Relationships.

+
124 {
125  printLabels();
126  printEntities();
127  printEventClasses();
128  printEvents();
129  printRelationships();
130 }
+
+
+ +

◆ SetEntityCallback()

+ +
+
+ + + + + + + + +
TimelineDecoder::TimelineStatus SetEntityCallback (const OnNewEntityCallback cb)
+
+
+ +

◆ SetEventCallback()

+ +
+
+ + + + + + + + +
TimelineDecoder::TimelineStatus SetEventCallback (const OnNewEventCallback cb)
+
+
+ +

◆ SetEventClassCallback()

+ +
+
+ + + + + + + + +
TimelineDecoder::TimelineStatus SetEventClassCallback (const OnNewEventClassCallback cb)
+
+
+ +

◆ SetLabelCallback()

+ +
+
+ + + + + + + + +
TimelineDecoder::TimelineStatus SetLabelCallback (const OnNewLabelCallback cb)
+
+
+ +

◆ SetRelationshipCallback()

+ +
+
+ + + + + + + + +
TimelineDecoder::TimelineStatus SetRelationshipCallback (const OnNewRelationshipCallback cb)
+
+ +

Definition at line 113 of file TimelineDecoder.cpp.

+ +

References ITimelineDecoder::TimelineStatus_Fail, and ITimelineDecoder::TimelineStatus_Success.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
114 {
115  if (cb == nullptr)
116  {
118  }
119  m_OnNewRelationshipCallback = cb;
121 }
+ +
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1