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

#include <key_cmd_map.h>

Public Member Functions

 KeyCmdMap ()
 
void add (char key, const std::string &cmd)
 
void add (const std::string &keySeq, const std::string &cmd)
 
void add (const KeyCmdPair &pair)
 
TrieStatus traverse (const std::string &currKey)
 
void resetTraversal ()
 
const std::string getCmd () const
 
void clear ()
 
void eraseKey (const std::string &key)
 

Constructor & Destructor Documentation

◆ KeyCmdMap()

teditor::KeyCmdMap::KeyCmdMap ( )
inline

Member Function Documentation

◆ add() [1/3]

void teditor::KeyCmdMap::add ( char  key,
const std::string &  cmd 
)

◆ add() [2/3]

void teditor::KeyCmdMap::add ( const KeyCmdPair pair)
inline

◆ add() [3/3]

void teditor::KeyCmdMap::add ( const std::string &  keySeq,
const std::string &  cmd 
)

◆ clear()

void teditor::KeyCmdMap::clear ( )

◆ eraseKey()

void teditor::KeyCmdMap::eraseKey ( const std::string &  key)

◆ getCmd()

const std::string teditor::KeyCmdMap::getCmd ( ) const

◆ resetTraversal()

void teditor::KeyCmdMap::resetTraversal ( )
inline

◆ traverse()

TrieStatus teditor::KeyCmdMap::traverse ( const std::string &  currKey)

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