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

#include "History.h"

Inheritance diagram for HistoryScrollBlockArray:
Collaboration diagram for HistoryScrollBlockArray:

Public Member Functions

 HistoryScrollBlockArray (size_t size)
 
virtual ~HistoryScrollBlockArray ()
 
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

BlockArray m_blockArray
 
HistoryTypem_histType
 
QHash< int, size_tm_lineLengths
 

Detailed Description

Definition at line 227 of file History.h.

Constructor & Destructor Documentation

◆ HistoryScrollBlockArray()

HistoryScrollBlockArray::HistoryScrollBlockArray ( size_t  size)

Definition at line 458 of file History.cpp.

References m_blockArray, and BlockArray::setHistorySize().

◆ ~HistoryScrollBlockArray()

HistoryScrollBlockArray::~HistoryScrollBlockArray ( )
virtual

Definition at line 464 of file History.cpp.

Member Function Documentation

◆ addCells()

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

◆ 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 HistoryScrollBlockArray::addLine ( bool  previousWrapped = false)
virtual

Implements HistoryScroll.

Definition at line 523 of file History.cpp.

◆ getCell()

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

Definition at line 94 of file History.h.

References HistoryScroll::getCells().

◆ getCells()

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

Implements HistoryScroll.

Definition at line 486 of file History.cpp.

References BlockArray::at(), b, ENTRIES, and m_blockArray.

◆ getLineLen()

int HistoryScrollBlockArray::getLineLen ( int  lineno)
virtual

Implements HistoryScroll.

Definition at line 473 of file History.cpp.

References m_lineLengths.

◆ getLines()

int HistoryScrollBlockArray::getLines ( )
virtual

Implements HistoryScroll.

Definition at line 468 of file History.cpp.

References m_lineLengths.

◆ 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 192 of file History.cpp.

Referenced by Screen::hasScroll().

◆ isWrappedLine()

bool HistoryScrollBlockArray::isWrappedLine ( int  lineno)
virtual

Implements HistoryScroll.

Definition at line 481 of file History.cpp.

Member Data Documentation

◆ m_blockArray

BlockArray HistoryScrollBlockArray::m_blockArray
protected

Definition at line 242 of file History.h.

Referenced by addCells(), getCells(), and HistoryScrollBlockArray().

◆ m_histType

HistoryType* HistoryScroll::m_histType
protectedinherited

Definition at line 115 of file History.h.

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

◆ m_lineLengths

QHash<int,size_t> HistoryScrollBlockArray::m_lineLengths
protected

Definition at line 243 of file History.h.

Referenced by addCells(), getLineLen(), and getLines().


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