From 8efb48a6847c5cd166c561127ae6611150963ce3 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 19 May 2023 11:14:28 +0100 Subject: Update Doxygen docu for 23.05 Signed-off-by: Nikhil Raj Change-Id: I0a992286f14fa68fcc6e5eba31ac39fed003cbbe --- 23.05/structarmnn_1_1_scoped_record.xhtml | 391 ++++++++++++++++++++++++++++++ 1 file changed, 391 insertions(+) create mode 100644 23.05/structarmnn_1_1_scoped_record.xhtml (limited to '23.05/structarmnn_1_1_scoped_record.xhtml') diff --git a/23.05/structarmnn_1_1_scoped_record.xhtml b/23.05/structarmnn_1_1_scoped_record.xhtml new file mode 100644 index 0000000000..88b14e0fe6 --- /dev/null +++ b/23.05/structarmnn_1_1_scoped_record.xhtml @@ -0,0 +1,391 @@ + + + + + + + + + + + + + +ArmNN: ScopedRecord Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ScopedRecord Struct Reference
+
+
+ +

#include <Logging.hpp>

+ + + + + + + + + + + + + + + + + +

+Public Member Functions

 ScopedRecord (const std::vector< std::shared_ptr< LogSink >> &sinks, LogSeverity level, bool enabled)
 
 ~ScopedRecord ()
 
 ScopedRecord (const ScopedRecord &)=delete
 
ScopedRecordoperator= (const ScopedRecord &)=delete
 
ScopedRecordoperator= (ScopedRecord &&)=delete
 
 ScopedRecord (ScopedRecord &&other)
 
template<typename Streamable >
ScopedRecordoperator<< (const Streamable &s)
 
+

Detailed Description

+
+

Definition at line 100 of file Logging.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ScopedRecord() [1/3]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
ScopedRecord (const std::vector< std::shared_ptr< LogSink >> & sinks,
LogSeverity level,
bool enabled 
)
+
+inline
+
+ +

Definition at line 102 of file Logging.hpp.

+
103  : m_LogSinks(sinks)
+
104  , m_Enabled(enabled)
+
105  {
+
106  if (enabled)
+
107  {
+
108  m_Os << LevelToString(level) << ": ";
+
109  }
+
110  }
+
+

References armnn::LevelToString().

+ +
+
+ +

◆ ~ScopedRecord()

+ +
+
+ + + + + +
+ + + + + + + +
~ScopedRecord ()
+
+inline
+
+ +

Definition at line 112 of file Logging.hpp.

+
113  {
+
114  if (m_Enabled)
+
115  {
+
116  for (auto sink : m_LogSinks)
+
117  {
+
118  if (sink)
+
119  {
+
120  sink->Consume(m_Os.str());
+
121  }
+
122  }
+
123  }
+
124  }
+
+
+
+ +

◆ ScopedRecord() [2/3]

+ +
+
+ + + + + +
+ + + + + + + + +
ScopedRecord (const ScopedRecord)
+
+delete
+
+ +
+
+ +

◆ ScopedRecord() [3/3]

+ +
+
+ + + + + +
+ + + + + + + + +
ScopedRecord (ScopedRecord && other)
+
+inline
+
+ +

Definition at line 130 of file Logging.hpp.

+
131  : m_LogSinks(other.m_LogSinks)
+
132  , m_Os(std::move(other.m_Os))
+
133  , m_Enabled(other.m_Enabled)
+
134  {
+
135  // Disable the moved-from ScopedRecord, to prevent it from sending its (now empty) message to
+
136  // its sinks.
+
137  other.m_Enabled = false;
+
138  }
+
+
+
+

Member Function Documentation

+ +

◆ operator<<()

+ +
+
+ + + + + +
+ + + + + + + + +
ScopedRecord& operator<< (const Streamable & s)
+
+inline
+
+ +

Definition at line 141 of file Logging.hpp.

+
142  {
+
143  if (m_Enabled)
+
144  {
+
145  m_Os << s;
+
146  }
+
147  return (*this);
+
148  }
+
+
+
+ +

◆ operator=() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ScopedRecord& operator= (const ScopedRecord)
+
+delete
+
+ +
+
+ +

◆ operator=() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ScopedRecord& operator= (ScopedRecord && )
+
+delete
+
+ +
+
+
The documentation for this struct was generated from the following file: +
+
+
std::string LevelToString(LogSeverity level)
Definition: Logging.hpp:22
+ + + + -- cgit v1.2.1