ArmNN
 22.02
DotNode Class Reference

#include <DotSerializer.hpp>

Inheritance diagram for DotNode:
DotBase

Public Member Functions

 DotNode (std::ostream &stream, LayerGuid nodeId, const char *label)
 
 ~DotNode ()
 
NodeContentGetContents ()
 
DotAttributeSetGetAttributeSet ()
 
- Public Member Functions inherited from DotBase
 DotBase (std::ostream &stream)
 
std::ostream & GetStream ()
 

Detailed Description

Definition at line 101 of file DotSerializer.hpp.

Constructor & Destructor Documentation

◆ DotNode()

DotNode ( std::ostream &  stream,
LayerGuid  nodeId,
const char *  label 
)
explicit

Definition at line 179 of file DotSerializer.cpp.

References DotBase::GetStream().

180  : DotBase(stream)
181 {
182  std::stringstream ss;
183  ss << Indent(4) << nodeId;
184 
185  GetStream() << ss.str() << " ";
186 
187  m_Contents = std::make_unique<NodeContent>(stream);
188  m_Attributes = std::make_unique<DotAttributeSet>(stream);
189 
190  if (std::strlen(label) != 0)
191  {
192  m_Contents->SetName(label);
193  }
194  else
195  {
196  m_Contents->SetName("<noname>");
197  }
198 }
DotBase(std::ostream &stream)
std::ostream & GetStream()

◆ ~DotNode()

~DotNode ( )

Definition at line 200 of file DotSerializer.cpp.

References DotBase::GetStream().

201 {
202  m_Contents.reset(nullptr);
203  m_Attributes.reset(nullptr);
204  GetStream() << ";" << std::endl;
205 }
std::ostream & GetStream()

Member Function Documentation

◆ GetAttributeSet()

DotAttributeSet& GetAttributeSet ( )
inline

Definition at line 108 of file DotSerializer.hpp.

108 { return *m_Attributes.get(); }

◆ GetContents()

NodeContent& GetContents ( )
inline

Definition at line 107 of file DotSerializer.hpp.

Referenced by Graph::SerializeToDot().

107 { return *m_Contents.get(); }

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