GNU Octave  6.2.0
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 85 of file History.cpp.

References ion, and tmpFile.

◆ ~HistoryFile()

HistoryFile::~HistoryFile ( )
virtual

Definition at line 97 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 134 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 129 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 106 of file History.cpp.

References fileMap, ion, length, and readWriteBalance.

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

◆ unmap()

void HistoryFile::unmap ( )

Definition at line 121 of file History.cpp.

References fileMap, and length.

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

Member Data Documentation

◆ fileMap

char* HistoryFile::fileMap
private

Definition at line 60 of file History.h.

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

◆ ion

int HistoryFile::ion
private

Definition at line 55 of file History.h.

Referenced by HistoryFile(), add(), get(), 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: