ArmNN
 21.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 178 of file DotSerializer.cpp.

References DotBase::GetStream().

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

◆ ~DotNode()

~DotNode ( )

Definition at line 199 of file DotSerializer.cpp.

References DotBase::GetStream().

200 {
201  m_Contents.reset(nullptr);
202  m_Attributes.reset(nullptr);
203  GetStream() << ";" << std::endl;
204 }
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: