GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
HistoryScrollBlockArray Class Reference

#include "History.h"

Inheritance diagram for HistoryScrollBlockArray:
Inheritance graph
Collaboration diagram for HistoryScrollBlockArray:
Collaboration graph

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
QHash< int, size_tm_lineLengths

Detailed Description

Definition at line 227 of file History.h.

Constructor & Destructor Documentation

HistoryScrollBlockArray::HistoryScrollBlockArray ( size_t  size)

Definition at line 458 of file History.cpp.

References m_blockArray, and BlockArray::setHistorySize().

HistoryScrollBlockArray::~HistoryScrollBlockArray ( )

Definition at line 464 of file History.cpp.

Member Function Documentation

void HistoryScrollBlockArray::addCells ( const Character  a[],
int  count 
virtual void HistoryScroll::addCellsVector ( const QVector< Character > &  cells)

Reimplemented in HistoryScrollBuffer.

Definition at line 100 of file History.h.

References HistoryScroll::addCells().

Referenced by Screen::addHistLine().

void HistoryScrollBlockArray::addLine ( bool  previousWrapped = false)

Implements HistoryScroll.

Definition at line 523 of file History.cpp.

Character HistoryScroll::getCell ( int  lineno,
int  colno 

Definition at line 94 of file History.h.

References HistoryScroll::getCells().

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

Implements HistoryScroll.

Definition at line 486 of file History.cpp.

References BlockArray::at(), Block::data, ENTRIES, and m_blockArray.

int HistoryScrollBlockArray::getLineLen ( int  lineno)

Implements HistoryScroll.

Definition at line 473 of file History.cpp.

References m_lineLengths.

int HistoryScrollBlockArray::getLines ( )

Implements HistoryScroll.

Definition at line 468 of file History.cpp.

References m_lineLengths.

const HistoryType& HistoryScroll::getType ( )

Definition at line 112 of file History.h.

References HistoryScroll::m_histType.

Referenced by Screen::getScroll().

bool HistoryScroll::hasScroll ( )

Reimplemented in HistoryScrollNone.

Definition at line 192 of file History.cpp.

Referenced by Screen::hasScroll().

bool HistoryScrollBlockArray::isWrappedLine ( int  lineno)

Implements HistoryScroll.

Definition at line 481 of file History.cpp.

Member Data Documentation

BlockArray HistoryScrollBlockArray::m_blockArray

Definition at line 242 of file History.h.

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

HistoryType* HistoryScroll::m_histType

Definition at line 115 of file History.h.

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

QHash<int,size_t> HistoryScrollBlockArray::m_lineLengths

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: