LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | List of all members
lldb_private::line_editor::EditlineHistory Class Reference
Collaboration diagram for lldb_private::line_editor::EditlineHistory:
Collaboration graph

Public Member Functions

 ~EditlineHistory ()
bool IsValid () const
HistoryWGetHistoryPtr ()
void Enter (const EditLineCharType *line_cstr)
bool Load ()
bool Save ()

Static Public Member Functions

static EditlineHistorySP GetHistory (const std::string &prefix)

Protected Attributes

HistoryWm_history = nullptr
 The history object. More...
HistEventW m_event
 The history event needed to contain all history events. More...
std::string m_prefix
 The prefix name (usually the editline program name) to use when loading/saving history. More...
std::string m_path
 Path to the history file. More...

Private Member Functions

 EditlineHistory (const std::string &prefix, uint32_t size, bool unique_entries)
const char * GetHistoryFilePath ()

Detailed Description

Definition at line 203 of file Editline.cpp.

Constructor & Destructor Documentation

◆ EditlineHistory()

lldb_private::line_editor::EditlineHistory::EditlineHistory ( const std::string prefix,
uint32_t  size,
bool  unique_entries 

Definition at line 207 of file Editline.cpp.

References history_w, and history_winit.

◆ ~EditlineHistory()

lldb_private::line_editor::EditlineHistory::~EditlineHistory ( )

Definition at line 242 of file Editline.cpp.

References history_wend.

Member Function Documentation

◆ Enter()

void lldb_private::line_editor::EditlineHistory::Enter ( const EditLineCharType *  line_cstr)

Definition at line 273 of file Editline.cpp.

References history_w.

◆ GetHistory()

static EditlineHistorySP lldb_private::line_editor::EditlineHistory::GetHistory ( const std::string prefix)

Definition at line 251 of file Editline.cpp.

◆ GetHistoryFilePath()

const char* lldb_private::line_editor::EditlineHistory::GetHistoryFilePath ( )

◆ GetHistoryPtr()

HistoryW* lldb_private::line_editor::EditlineHistory::GetHistoryPtr ( )

Definition at line 271 of file Editline.cpp.

◆ IsValid()

bool lldb_private::line_editor::EditlineHistory::IsValid ( ) const

Definition at line 269 of file Editline.cpp.

◆ Load()

bool lldb_private::line_editor::EditlineHistory::Load ( )

Definition at line 278 of file Editline.cpp.

References history_w.

◆ Save()

bool lldb_private::line_editor::EditlineHistory::Save ( )

Definition at line 289 of file Editline.cpp.

References history_w.

Member Data Documentation

◆ m_event

HistEventW lldb_private::line_editor::EditlineHistory::m_event

The history event needed to contain all history events.

Definition at line 304 of file Editline.cpp.

◆ m_history

HistoryW* lldb_private::line_editor::EditlineHistory::m_history = nullptr

The history object.

Definition at line 302 of file Editline.cpp.

◆ m_path

std::string lldb_private::line_editor::EditlineHistory::m_path

Path to the history file.

Definition at line 309 of file Editline.cpp.

◆ m_prefix

std::string lldb_private::line_editor::EditlineHistory::m_prefix

The prefix name (usually the editline program name) to use when loading/saving history.

Definition at line 307 of file Editline.cpp.

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