ONE - On-device Neural Engine
|
#include <LinearDocument.h>
Public Types | |
enum class | Direction { Forward , Reverse } |
Public Member Functions | |
LinearDocument () | |
LinearDocument (const Direction &direction) | |
void | indent (void) |
void | unindent (void) |
void | append (void) |
void | append (const std::string &line) |
template<typename Derived > | |
std::enable_if< std::is_base_of< MultiLineText, Derived >::value >::type | append (const Derived &txt) |
template<typename... Args> | |
void | append (const Args &...args) |
void | append (const LinearDocument &doc) |
uint32_t | lines (void) const override |
const std::string & | line (uint32_t n) const override |
Public Member Functions inherited from pp::MultiLineText | |
virtual | ~MultiLineText ()=default |
Definition at line 32 of file LinearDocument.h.
|
strong |
Enumerator | |
---|---|
Forward | |
Reverse |
Definition at line 35 of file LinearDocument.h.
|
inline |
Definition at line 42 of file LinearDocument.h.
|
inline |
Definition at line 48 of file LinearDocument.h.
|
inline |
|
inline |
Definition at line 65 of file LinearDocument.h.
References append().
void pp::LinearDocument::append | ( | const LinearDocument & | doc | ) |
void pp::LinearDocument::append | ( | const std::string & | line | ) |
Definition at line 33 of file LinearDocument.cpp.
References append(), pp::IndentedStringBuilder::build(), and line().
void pp::LinearDocument::append | ( | void | ) |
Definition at line 27 of file LinearDocument.cpp.
Referenced by append(), append(), append(), DEBUGGING_API_P(), DEBUGGING_API_P(), DEBUGGING_API_P(), DEBUGGING_API_P(), DEBUGGING_API_P(), DEBUGGING_API_P(), and enco::CppCode::dump().
void pp::LinearDocument::indent | ( | void | ) |
Definition at line 24 of file LinearDocument.cpp.
References pp::IndentedStringBuilder::increase().
Referenced by enco::CppCode::dump().
|
overridevirtual |
Implements pp::MultiLineText.
Definition at line 54 of file LinearDocument.cpp.
References Forward, lines(), and Reverse.
Referenced by append(), append(), and pp::EnclosedDocument::line().
|
inlineoverridevirtual |
Implements pp::MultiLineText.
Definition at line 79 of file LinearDocument.h.
Referenced by append(), pp::EnclosedDocument::line(), line(), and pp::EnclosedDocument::lines().
void pp::LinearDocument::unindent | ( | void | ) |
Definition at line 25 of file LinearDocument.cpp.
References pp::IndentedStringBuilder::decrease().
Referenced by enco::CppCode::dump().