Container to store history (files-visited or command-history, etc)
More...
#include <utils.h>
|
virtual bool | isDuplicate (const std::string &a, const std::string &b) const |
|
Container to store history (files-visited or command-history, etc)
◆ History()
teditor::History::History |
( |
const std::string & |
f, |
|
|
int |
_max |
|
) |
| |
Ctor.
- Parameters
-
f | file where to persist history on disk |
_max | maximum history items to be stored |
◆ add()
void teditor::History::add |
( |
const std::string & |
elem | ) |
|
adds an element back to history
◆ get()
const Strings& teditor::History::get |
( |
| ) |
const |
|
inline |
◆ getFile()
const std::string& teditor::History::getFile |
( |
| ) |
const |
|
inline |
◆ isDuplicate()
bool teditor::History::isDuplicate |
( |
const std::string & |
a, |
|
|
const std::string & |
b |
|
) |
| const |
|
protectedvirtual |
◆ max()
int teditor::History::max |
( |
| ) |
const |
|
inline |
◆ prune()
void teditor::History::prune |
( |
| ) |
|
prunes the history length to max()
◆ store()
void teditor::History::store |
( |
| ) |
const |
store the history list back to the file
The documentation for this class was generated from the following files: