From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- ...ssarmnn_1_1_erased_layer_names_observable.xhtml | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 21.02/classarmnn_1_1_erased_layer_names_observable.xhtml (limited to '21.02/classarmnn_1_1_erased_layer_names_observable.xhtml') diff --git a/21.02/classarmnn_1_1_erased_layer_names_observable.xhtml b/21.02/classarmnn_1_1_erased_layer_names_observable.xhtml new file mode 100644 index 0000000000..f43af5399a --- /dev/null +++ b/21.02/classarmnn_1_1_erased_layer_names_observable.xhtml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + +ArmNN: ErasedLayerNamesObservable Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ErasedLayerNamesObservable Class Reference
+
+
+ +

#include <Observable.hpp>

+
+Inheritance diagram for ErasedLayerNamesObservable:
+
+
+ + +GraphObservable< std::string > +IGraphObservable + +
+ + + + + + + + + + + + + + + +

+Public Member Functions

 ErasedLayerNamesObservable (Graph &subject)
 
void Update (Layer *graphLayer) override
 
- Public Member Functions inherited from GraphObservable< std::string >
 GraphObservable (Graph &subject, GraphEvent notifyOnEvent)
 
void Clear ()
 
Iterator begin ()
 
Iterator end ()
 
+ + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Types inherited from GraphObservable< std::string >
using Iterator = typename std::list< std::string >::const_iterator
 
- Protected Member Functions inherited from GraphObservable< std::string >
 ~GraphObservable ()
 
- Protected Member Functions inherited from IGraphObservable
virtual ~IGraphObservable ()=default
 
- Protected Attributes inherited from GraphObservable< std::string >
GraphEvent m_NotifyOnEvent
 
Graphm_Subject
 
std::list< std::string > m_ObservedObjects
 
+

Detailed Description

+
+

Definition at line 56 of file Observable.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ErasedLayerNamesObservable()

+ +
+
+ + + + + +
+ + + + + + + + +
ErasedLayerNamesObservable (Graphsubject)
+
+inlineexplicit
+
+ +

Definition at line 59 of file Observable.hpp.

+ +

References IGraphObservable::Update().

+
60  : GraphObservable<std::string>(subject, GraphEvent::LayerErased)
61  {};
+
+
+
+

Member Function Documentation

+ +

◆ Update()

+ +
+
+ + + + + +
+ + + + + + + + +
void Update (LayergraphLayer)
+
+overridevirtual
+
+ +

Implements IGraphObservable.

+ +

Definition at line 16 of file Observable.cpp.

+ +

References Layer::GetName(), Layer::GetRelatedLayerNames(), and GraphObservable< Layer *>::m_ObservedObjects.

+
17 {
18  auto& relatedLayerNames = graphLayer->GetRelatedLayerNames();
19 
20  // If the erased layer has no related layers we take the erased layer's name
21  // Otherwise we need to preserve the related layer names,
22  // since we want to preserve the original graph's information
23  if (relatedLayerNames.empty())
24  {
25  m_ObservedObjects.emplace_back(graphLayer->GetName());
26  }
27  else
28  {
29  for (auto& relatedLayerName : relatedLayerNames)
30  {
31  m_ObservedObjects.emplace_back(relatedLayerName);
32  }
33  }
34 }
std::list< std::string > m_ObservedObjects
Definition: Observable.hpp:43
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1