GNU Octave  4.2.1
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
[legend]
Collaboration diagram for HistoryScrollBlockArray:
Collaboration graph
[legend]

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

Definition at line 458 of file History.cpp.

References m_blockArray, and BlockArray::setHistorySize().

HistoryScrollBlockArray::~HistoryScrollBlockArray ( )
virtual

Definition at line 464 of file History.cpp.

Member Function Documentation

void HistoryScrollBlockArray::addCells ( const Character  a[],
int  count 
)
virtual
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().

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

Implements HistoryScroll.

Definition at line 523 of file History.cpp.

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

Definition at line 94 of file History.h.

References HistoryScroll::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, Block::data, ENTRIES, and m_blockArray.

int HistoryScrollBlockArray::getLineLen ( int  lineno)
virtual

Implements HistoryScroll.

Definition at line 473 of file History.cpp.

References m_lineLengths.

int HistoryScrollBlockArray::getLines ( )
virtual

Implements HistoryScroll.

Definition at line 468 of file History.cpp.

References m_lineLengths.

const HistoryType& HistoryScroll::getType ( )
inlineinherited

Definition at line 112 of file History.h.

References HistoryScroll::m_histType.

Referenced by Screen::getScroll().

bool HistoryScroll::hasScroll ( )
virtualinherited

Reimplemented in HistoryScrollNone.

Definition at line 192 of file History.cpp.

Referenced by Screen::hasScroll().

bool HistoryScrollBlockArray::isWrappedLine ( int  lineno)
virtual

Implements HistoryScroll.

Definition at line 481 of file History.cpp.

Member Data Documentation

BlockArray HistoryScrollBlockArray::m_blockArray
protected

Definition at line 242 of file History.h.

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

HistoryType* HistoryScroll::m_histType
protectedinherited

Definition at line 115 of file History.h.

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

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: