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 | Private Member Functions | Private Attributes | List of all members
HistoryScrollFile Class Reference

#include "History.h"

Inheritance diagram for HistoryScrollFile:
Inheritance graph
Collaboration diagram for HistoryScrollFile:
Collaboration graph

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


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 ( const QString &  logFileName)

Definition at line 210 of file History.cpp.

HistoryScrollFile::~HistoryScrollFile ( )

Definition at line 216 of file History.cpp.

Member Function Documentation

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

Implements HistoryScroll.

Definition at line 261 of file History.cpp.

References HistoryFile::add(), and cells.

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 HistoryScrollFile::addLine ( bool  previousWrapped = false)
Character HistoryScroll::getCell ( int  lineno,
int  colno 

Definition at line 94 of file History.h.

References HistoryScroll::getCells().

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

Implements HistoryScroll.

Definition at line 256 of file History.cpp.

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

int HistoryScrollFile::getLineLen ( int  lineno)

Implements HistoryScroll.

Definition at line 225 of file History.cpp.

References startOfLine().

int HistoryScrollFile::getLines ( )

Implements HistoryScroll.

Definition at line 220 of file History.cpp.

References index, and HistoryFile::len().

Referenced by isWrappedLine(), and startOfLine().

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 HistoryScrollFile::isWrappedLine ( int  lineno)

Implements HistoryScroll.

Definition at line 230 of file History.cpp.

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

int HistoryScrollFile::startOfLine ( int  lineno)

Member Data Documentation

HistoryFile HistoryScrollFile::cells

Definition at line 143 of file History.h.

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

HistoryFile HistoryScrollFile::index

Definition at line 142 of file History.h.

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

HistoryFile HistoryScrollFile::lineflags

Definition at line 144 of file History.h.

Referenced by addLine(), and isWrappedLine().

HistoryType* HistoryScroll::m_histType

Definition at line 115 of file History.h.

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

QString HistoryScrollFile::m_logFileName

Definition at line 141 of file History.h.

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