GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::history_system Class Reference

#include "oct-hist.h"

Collaboration diagram for octave::history_system:

Public Member Functions

 history_system (const history_system &)=delete
 
 history_system (interpreter &interp)
 
 ~history_system (void)=default
 
void do_edit_history (const octave_value_list &args=octave_value_list())
 
string_vector do_history (const octave_value_list &args=octave_value_list(), int nargout=0)
 
void do_run_history (const octave_value_list &args=octave_value_list())
 
void initialize (bool read_history_file=false)
 
bool input_from_tmp_file (bool flag)
 
octave_value input_from_tmp_file (const octave_value_list &args, int nargout)
 
bool input_from_tmp_file (void) const
 
history_systemoperator= (const history_system &)=delete
 
octave_value timestamp_format_string (const octave_value_list &args, int nargout)
 
std::string timestamp_format_string (const std::string &file)
 
std::string timestamp_format_string (void) const
 
void write_timestamp (void)
 

Private Member Functions

template<typename T >
set (T &var, const T &new_val)
 

Static Private Member Functions

static std::string default_file (void)
 
static int default_size (void)
 
static std::string default_timestamp_format (void)
 

Private Attributes

bool m_input_from_tmp_file
 
interpreterm_interpreter
 
std::string m_timestamp_format_string
 

Detailed Description

Definition at line 41 of file oct-hist.h.

Constructor & Destructor Documentation

◆ history_system() [1/2]

octave::history_system::history_system ( interpreter interp)

Definition at line 270 of file oct-hist.cc.

◆ history_system() [2/2]

octave::history_system::history_system ( const history_system )
delete

◆ ~history_system()

octave::history_system::~history_system ( void  )
default

Member Function Documentation

◆ default_file()

std::string octave::history_system::default_file ( void  )
staticprivate

◆ default_size()

int octave::history_system::default_size ( void  )
staticprivate

Definition at line 554 of file oct-hist.cc.

References octave::sys::env::getenv().

Referenced by initialize().

◆ default_timestamp_format()

std::string octave::history_system::default_timestamp_format ( void  )
staticprivate

◆ do_edit_history()

◆ do_history()

◆ do_run_history()

◆ initialize()

◆ input_from_tmp_file() [1/3]

bool octave::history_system::input_from_tmp_file ( bool  flag)
inline

Definition at line 65 of file oct-hist.h.

References m_input_from_tmp_file, and set().

◆ input_from_tmp_file() [2/3]

octave_value octave::history_system::input_from_tmp_file ( const octave_value_list args,
int  nargout 
)

◆ input_from_tmp_file() [3/3]

bool octave::history_system::input_from_tmp_file ( void  ) const
inline

Definition at line 60 of file oct-hist.h.

References m_input_from_tmp_file.

◆ operator=()

history_system& octave::history_system::operator= ( const history_system )
delete

◆ set()

template<typename T >
T octave::history_system::set ( T &  var,
const T &  new_val 
)
inlineprivate

Definition at line 109 of file oct-hist.h.

Referenced by input_from_tmp_file(), and timestamp_format_string().

◆ timestamp_format_string() [1/3]

octave_value octave::history_system::timestamp_format_string ( const octave_value_list args,
int  nargout 
)

◆ timestamp_format_string() [2/3]

std::string octave::history_system::timestamp_format_string ( const std::string &  file)
inline

Definition at line 78 of file oct-hist.h.

References m_timestamp_format_string, and set().

◆ timestamp_format_string() [3/3]

std::string octave::history_system::timestamp_format_string ( void  ) const
inline

Definition at line 73 of file oct-hist.h.

References m_timestamp_format_string.

◆ write_timestamp()

Member Data Documentation

◆ m_input_from_tmp_file

bool octave::history_system::m_input_from_tmp_file
private

Definition at line 96 of file oct-hist.h.

Referenced by do_edit_history(), do_run_history(), and input_from_tmp_file().

◆ m_interpreter

interpreter& octave::history_system::m_interpreter
private

Definition at line 93 of file oct-hist.h.

Referenced by do_edit_history(), do_history(), initialize(), and write_timestamp().

◆ m_timestamp_format_string

std::string octave::history_system::m_timestamp_format_string
private

Definition at line 100 of file oct-hist.h.

Referenced by timestamp_format_string(), and write_timestamp().


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