ArmNN
 25.11
Loading...
Searching...
No Matches
DotNode Class Reference

#include <DotSerializer.hpp>

Inheritance diagram for DotNode:
[legend]
Collaboration diagram for DotNode:
[legend]

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.

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}

References DotBase::DotBase(), and DotBase::GetStream().

◆ ~DotNode()

~DotNode ( )

Definition at line 200 of file DotSerializer.cpp.

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

References DotBase::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.

107{ return *m_Contents.get(); }

Referenced by Graph::SerializeToDot().


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