ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locop::NodeDesc::Comments Class Referencefinal

Multi-line comments. More...

#include <NodeSummary.h>

Public Member Functions

 Comments ()=default
 
uint32_t count (void) const
 
const std::string & at (uint32_t n) const
 
void append (const std::string &s)
 

Detailed Description

Multi-line comments.

Definition at line 55 of file NodeSummary.h.

Constructor & Destructor Documentation

◆ Comments()

locop::NodeDesc::Comments::Comments ( )
default

Member Function Documentation

◆ append()

void locop::NodeDesc::Comments::append ( const std::string &  s)

Definition at line 25 of file NodeSummary.cpp.

26{
27 // TODO Check whether s contains any newline character
28 _lines.emplace_back(s);
29}

◆ at()

const std::string & locop::NodeDesc::Comments::at ( uint32_t  n) const
inline

Definition at line 62 of file NodeSummary.h.

62{ return _lines.at(n); }

Referenced by locop::FormattedGraphImpl< Formatter::LinearV1 >::dump().

◆ count()

uint32_t locop::NodeDesc::Comments::count ( void  ) const
inline

Definition at line 61 of file NodeSummary.h.

61{ return _lines.size(); }

Referenced by locop::FormattedGraphImpl< Formatter::LinearV1 >::dump().


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