From a983e4699082a0b1ef685bab7354f2ad9cd37a44 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Wed, 20 May 2020 16:12:19 +0100 Subject: Updating Doxygen documentation for 20.05 release. Change-Id: I4d624343ed5fd6ae269c3d53532903084508fd14 Signed-off-by: Colm Donelan --- ...filing_1_1_test_profiling_connection_base.xhtml | 365 +++++++++++++++++++++ 1 file changed, 365 insertions(+) create mode 100644 20.05/classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml (limited to '20.05/classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml') diff --git a/20.05/classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml b/20.05/classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml new file mode 100644 index 0000000000..1b4378a461 --- /dev/null +++ b/20.05/classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml @@ -0,0 +1,365 @@ + + + + + + + + + + + + + +ArmNN: TestProfilingConnectionBase Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TestProfilingConnectionBase Class Reference
+
+
+ +

#include <ProfilingTests.hpp>

+
+Inheritance diagram for TestProfilingConnectionBase:
+
+
+ + +IProfilingConnection +TestProfilingConnectionArmnnError +TestProfilingConnectionBadAckPacket +TestProfilingConnectionTimeoutError + +
+ + + + + + + + + + + + + + + + + +

+Public Member Functions

 TestProfilingConnectionBase ()=default
 
 ~TestProfilingConnectionBase ()=default
 
bool IsOpen () const override
 
void Close () override
 
bool WritePacket (const unsigned char *buffer, uint32_t length) override
 
Packet ReadPacket (uint32_t timeout) override
 
- Public Member Functions inherited from IProfilingConnection
virtual ~IProfilingConnection ()
 
+ + + +

+Public Attributes

bool m_FirstCall = true
 
+

Detailed Description

+
+

Definition at line 68 of file ProfilingTests.hpp.

+

Constructor & Destructor Documentation

+ +

◆ TestProfilingConnectionBase()

+ +
+
+ + + + + +
+ + + + + + + +
TestProfilingConnectionBase ()
+
+default
+
+ +
+
+ +

◆ ~TestProfilingConnectionBase()

+ +
+
+ + + + + +
+ + + + + + + +
~TestProfilingConnectionBase ()
+
+default
+
+ +
+
+

Member Function Documentation

+ +

◆ Close()

+ +
+
+ + + + + +
+ + + + + + + +
void Close ()
+
+inlineoverridevirtual
+
+ +

Implements IProfilingConnection.

+ +

Definition at line 76 of file ProfilingTests.hpp.

+
76 {}
+
+
+ +

◆ IsOpen()

+ +
+
+ + + + + +
+ + + + + + + +
bool IsOpen () const
+
+inlineoverridevirtual
+
+ +

Implements IProfilingConnection.

+ +

Definition at line 74 of file ProfilingTests.hpp.

+
74 { return true; }
+
+
+ +

◆ ReadPacket()

+ +
+
+ + + + + +
+ + + + + + + + +
Packet ReadPacket (uint32_t timeout)
+
+inlineoverridevirtual
+
+ +

Implements IProfilingConnection.

+ +

Reimplemented in TestProfilingConnectionBadAckPacket, TestProfilingConnectionArmnnError, and TestProfilingConnectionTimeoutError.

+ +

Definition at line 85 of file ProfilingTests.hpp.

+
86  {
87  // First time we're called return a connection ack packet. After that always timeout.
88  if (m_FirstCall)
89  {
90  m_FirstCall = false;
91  // Return connection acknowledged packet
92  return Packet(65536);
93  }
94  else
95  {
96  std::this_thread::sleep_for(std::chrono::milliseconds(timeout));
97  throw armnn::TimeoutException("Simulate a timeout error\n");
98  }
99  }
+ +
+
+
+ +

◆ WritePacket()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
bool WritePacket (const unsigned char * buffer,
uint32_t length 
)
+
+inlineoverridevirtual
+
+ +

Implements IProfilingConnection.

+ +

Definition at line 78 of file ProfilingTests.hpp.

+ +

References armnn::IgnoreUnused().

+
79  {
80  IgnoreUnused(buffer, length);
81 
82  return false;
83  }
void IgnoreUnused(Ts &&...)
+
+
+
+

Member Data Documentation

+ +

◆ m_FirstCall

+ +
+
+ + + + +
bool m_FirstCall = true
+
+ +

Definition at line 101 of file ProfilingTests.hpp.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1