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

#include "History.h"

Collaboration diagram for HistoryFile:

Public Member Functions

 HistoryFile ()
 
virtual ~HistoryFile ()
 
virtual void add (const unsigned char *bytes, int len)
 
virtual void get (unsigned char *bytes, int len, int loc)
 
bool isMapped ()
 
virtual int len ()
 
void map ()
 
void unmap ()
 

Private Attributes

char * fileMap
 
int ion
 
int length
 
int readWriteBalance
 
QTemporaryFile tmpFile
 

Static Private Attributes

static const int MAP_THRESHOLD = -1000
 

Detailed Description

Definition at line 36 of file History.h.

Constructor & Destructor Documentation

◆ HistoryFile()

HistoryFile::HistoryFile ( )

Definition at line 84 of file History.cpp.

References ion, and tmpFile.

◆ ~HistoryFile()

HistoryFile::~HistoryFile ( )
virtual

Definition at line 96 of file History.cpp.

References fileMap, and unmap().

Member Function Documentation

◆ add()

void HistoryFile::add ( const unsigned char *  bytes,
int  len 
)
virtual

Definition at line 133 of file History.cpp.

References fileMap, ion, len(), length, readWriteBalance, SEEK_SET, and unmap().

Referenced by HistoryScrollFile::addCells(), and HistoryScrollFile::addLine().

◆ get()

void HistoryFile::get ( unsigned char *  bytes,
int  len,
int  loc 
)
virtual

◆ isMapped()

bool HistoryFile::isMapped ( )

Definition at line 128 of file History.cpp.

References fileMap.

Referenced by HistoryScrollFile::addLine(), and HistoryScrollFile::startOfLine().

◆ len()

int HistoryFile::len ( )
virtual

◆ map()

void HistoryFile::map ( )

Definition at line 105 of file History.cpp.

References fileMap, ion, length, and readWriteBalance.

Referenced by get(), and HistoryScrollFile::startOfLine().

◆ unmap()

void HistoryFile::unmap ( )

Definition at line 120 of file History.cpp.

References fileMap, length, and result.

Referenced by add(), HistoryScrollFile::addLine(), and ~HistoryFile().

Member Data Documentation

◆ fileMap

char* HistoryFile::fileMap
private

Definition at line 60 of file History.h.

Referenced by add(), get(), isMapped(), map(), unmap(), and ~HistoryFile().

◆ ion

int HistoryFile::ion
private

Definition at line 55 of file History.h.

Referenced by add(), get(), HistoryFile(), and map().

◆ length

int HistoryFile::length
private

Definition at line 56 of file History.h.

Referenced by add(), get(), len(), map(), and unmap().

◆ MAP_THRESHOLD

const int HistoryFile::MAP_THRESHOLD = -1000
staticprivate

Definition at line 69 of file History.h.

Referenced by get().

◆ readWriteBalance

int HistoryFile::readWriteBalance
private

Definition at line 66 of file History.h.

Referenced by add(), get(), and map().

◆ tmpFile

QTemporaryFile HistoryFile::tmpFile
private

Definition at line 57 of file History.h.

Referenced by HistoryFile().


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