GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
HistoryScrollFile Class Reference

#include "History.h"

Inheritance diagram for HistoryScrollFile:
Collaboration diagram for HistoryScrollFile:

Public Member Functions

 HistoryScrollFile (const QString &logFileName)
 
virtual ~HistoryScrollFile ()
 
virtual void addCells (const Character a[], int count)
 
virtual void addCellsVector (const QVector< Character > &cells)
 
virtual void addLine (bool previousWrapped=false)
 
Character getCell (int lineno, int colno)
 
virtual void getCells (int lineno, int colno, int count, Character res[])
 
virtual int getLineLen (int lineno)
 
virtual int getLines ()
 
const HistoryTypegetType ()
 
virtual bool hasScroll ()
 
virtual bool isWrappedLine (int lineno)
 

Protected Attributes

HistoryTypem_histType
 

Private Member Functions

int startOfLine (int lineno)
 

Private Attributes

HistoryFile cells
 
HistoryFile index
 
HistoryFile lineflags
 
QString m_logFileName
 

Detailed Description

Definition at line 124 of file History.h.

Constructor & Destructor Documentation

◆ HistoryScrollFile()

HistoryScrollFile::HistoryScrollFile ( const QString &  logFileName)

Definition at line 211 of file History.cpp.

◆ ~HistoryScrollFile()

HistoryScrollFile::~HistoryScrollFile ( )
virtual

Definition at line 217 of file History.cpp.

Member Function Documentation

◆ addCells()

void HistoryScrollFile::addCells ( const Character  a[],
int  count 
)
virtual

Implements HistoryScroll.

Definition at line 262 of file History.cpp.

References HistoryFile::add(), and cells.

◆ addCellsVector()

virtual void HistoryScroll::addCellsVector ( const QVector< Character > &  cells)
inlinevirtualinherited

Reimplemented in HistoryScrollBuffer.

Definition at line 100 of file History.h.

References HistoryScroll::addCells().

Referenced by Screen::addHistLine().

◆ addLine()

void HistoryScrollFile::addLine ( bool  previousWrapped = false)
virtual

◆ getCell()

Character HistoryScroll::getCell ( int  lineno,
int  colno 
)
inlineinherited

Definition at line 94 of file History.h.

References HistoryScroll::getCells().

◆ getCells()

void HistoryScrollFile::getCells ( int  lineno,
int  colno,
int  count,
Character  res[] 
)
virtual

Implements HistoryScroll.

Definition at line 257 of file History.cpp.

References cells, HistoryFile::get(), and startOfLine().

◆ getLineLen()

int HistoryScrollFile::getLineLen ( int  lineno)
virtual

Implements HistoryScroll.

Definition at line 226 of file History.cpp.

References startOfLine().

◆ getLines()

int HistoryScrollFile::getLines ( )
virtual

Implements HistoryScroll.

Definition at line 221 of file History.cpp.

References index, and HistoryFile::len().

Referenced by isWrappedLine(), and startOfLine().

◆ getType()

const HistoryType& HistoryScroll::getType ( )
inlineinherited

Definition at line 112 of file History.h.

References HistoryScroll::m_histType.

Referenced by Screen::getScroll().

◆ hasScroll()

bool HistoryScroll::hasScroll ( )
virtualinherited

Reimplemented in HistoryScrollNone.

Definition at line 193 of file History.cpp.

Referenced by Screen::hasScroll().

◆ isWrappedLine()

bool HistoryScrollFile::isWrappedLine ( int  lineno)
virtual

Implements HistoryScroll.

Definition at line 231 of file History.cpp.

References HistoryFile::get(), getLines(), and lineflags.

◆ startOfLine()

int HistoryScrollFile::startOfLine ( int  lineno)
private

Member Data Documentation

◆ cells

HistoryFile HistoryScrollFile::cells
private

Definition at line 143 of file History.h.

Referenced by addCells(), addLine(), getCells(), and startOfLine().

◆ index

HistoryFile HistoryScrollFile::index
private

Definition at line 142 of file History.h.

Referenced by addLine(), getLines(), and startOfLine().

◆ lineflags

HistoryFile HistoryScrollFile::lineflags
private

Definition at line 144 of file History.h.

Referenced by addLine(), and isWrappedLine().

◆ m_histType

HistoryType* HistoryScroll::m_histType
protectedinherited

Definition at line 115 of file History.h.

Referenced by HistoryScroll::~HistoryScroll(), and HistoryScroll::getType().

◆ m_logFileName

QString HistoryScrollFile::m_logFileName
private

Definition at line 141 of file History.h.


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