ONE - On-device Neural Engine
Loading...
Searching...
No Matches
pp::EnclosedDocument Class Referencefinal

#include <EnclosedDocument.h>

Collaboration diagram for pp::EnclosedDocument:

Public Member Functions

 EnclosedDocument ()
 
LinearDocumentfront (void)
 
const LinearDocumentfront (void) const
 
LinearDocumentback (void)
 
const LinearDocumentback (void) const
 
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
 

Detailed Description

Definition at line 26 of file EnclosedDocument.h.

Constructor & Destructor Documentation

◆ EnclosedDocument()

pp::EnclosedDocument::EnclosedDocument ( )
inline

Definition at line 29 of file EnclosedDocument.h.

29 : _front{}, _back{LinearDocument::Direction::Reverse}
30 {
31 // DO NOTHING
32 }

Member Function Documentation

◆ back() [1/2]

LinearDocument & pp::EnclosedDocument::back ( void  )
inline

Definition at line 39 of file EnclosedDocument.h.

39{ return _back; }

◆ back() [2/2]

const LinearDocument & pp::EnclosedDocument::back ( void  ) const
inline

Definition at line 40 of file EnclosedDocument.h.

40{ return _back; }

◆ front() [1/2]

LinearDocument & pp::EnclosedDocument::front ( void  )
inline

Definition at line 35 of file EnclosedDocument.h.

35{ return _front; }

◆ front() [2/2]

const LinearDocument & pp::EnclosedDocument::front ( void  ) const
inline

Definition at line 36 of file EnclosedDocument.h.

36{ return _front; }

◆ line()

const std::string & pp::EnclosedDocument::line ( uint32_t  n) const
overridevirtual

Implements pp::MultiLineText.

Definition at line 24 of file EnclosedDocument.cpp.

25{
26 if (n < _front.lines())
27 {
28 return _front.line(n);
29 }
30
31 return _back.line(n - _front.lines());
32}
const std::string & line(uint32_t n) const override
uint32_t lines(void) const override

References pp::LinearDocument::line(), and pp::LinearDocument::lines().

◆ lines()

uint32_t pp::EnclosedDocument::lines ( void  ) const
overridevirtual

Implements pp::MultiLineText.

Definition at line 22 of file EnclosedDocument.cpp.

22{ return _front.lines() + _back.lines(); }

References pp::LinearDocument::lines().


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