teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | Protected Member Functions | List of all members
teditor::FilesHist Class Reference

#include <file_utils.h>

+ Inheritance diagram for teditor::FilesHist:

Public Member Functions

 FilesHist (const std::string &file, int _max)
 
void add (const std::string &file, int line)
 
- Public Member Functions inherited from teditor::History
 History (const std::string &f, int _max)
 Ctor. More...
 
int max () const
 
const std::string & getFile () const
 
void prune ()
 
void store () const
 
void add (const std::string &elem)
 
const Stringsget () const
 

Protected Member Functions

bool isDuplicate (const std::string &a, const std::string &b) const override
 

Detailed Description

Stores visited files history

Constructor & Destructor Documentation

◆ FilesHist()

teditor::FilesHist::FilesHist ( const std::string &  file,
int  _max 
)
inline

Member Function Documentation

◆ add()

void teditor::FilesHist::add ( const std::string &  file,
int  line 
)

◆ isDuplicate()

bool teditor::FilesHist::isDuplicate ( const std::string &  a,
const std::string &  b 
) const
overrideprotectedvirtual

Reimplemented from teditor::History.


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