ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnc::ArtifactIndent Class Reference

Used by code and declaration generators to indent generated text. More...

#include <ArtifactIndent.h>

Public Member Functions

 ArtifactIndent ()
 
ArtifactIndentoperator++ ()
 
ArtifactIndentoperator-- ()
 
int level () const
 

Detailed Description

Used by code and declaration generators to indent generated text.

Definition at line 29 of file ArtifactIndent.h.

Constructor & Destructor Documentation

◆ ArtifactIndent()

nnc::ArtifactIndent::ArtifactIndent ( )
inline

Definition at line 32 of file ArtifactIndent.h.

32: _level(0), _step(2) {}

Member Function Documentation

◆ level()

int nnc::ArtifactIndent::level ( ) const
inline

Definition at line 46 of file ArtifactIndent.h.

46{ return _level; }

Referenced by nnc::operator<<().

◆ operator++()

ArtifactIndent & nnc::ArtifactIndent::operator++ ( )
inline

Definition at line 34 of file ArtifactIndent.h.

35 {
36 _level += _step;
37 return *this;
38 }

◆ operator--()

ArtifactIndent & nnc::ArtifactIndent::operator-- ( )
inline

Definition at line 40 of file ArtifactIndent.h.

41 {
42 _level -= _step;
43 return *this;
44 }

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