A++ » INCLUDE » TTabCom

class TTabCom


TTabCom

This class performs basic tab completion.
You should be able to hit [TAB] to complete a partially typed:

username
environment variable
preprocessor directive
pragma
filename (with a context-sensitive path)
public member function or data member
global variable, function, or class name

Also, something like gWhatever->Func([TAB] will print the appropriate
list of prototypes. For a list of some limitations see the source.


Function Members (Methods)

public:
virtual~TTabCom()
static Char_tAllAgreeOnChar(int i, const TSeqCollection* pList, Int_t& nGoodStrings)
static voidAppendListOfFilesInDirectory(const char[] dirName, TSeqCollection* pList)
static TClass*Class()
voidClearAll()
voidClearClasses()
voidClearCppDirectives()
voidClearEnvVars()
voidClearFiles()
voidClearGlobalFunctions()
voidClearGlobals()
voidClearPragmas()
voidClearSysIncFiles()
voidClearUsers()
static TStringDetermineClass(const char[] varName)
static Bool_tExcludedByFignore(TString s)
const TSeqCollection*GetListOfClasses()
const TSeqCollection*GetListOfCppDirectives()
const TSeqCollection*GetListOfEnvVars()
const TSeqCollection*GetListOfFilesInPath(const char[] path)
TCollection*GetListOfGlobalFunctions()
const TSeqCollection*GetListOfGlobals()
const TSeqCollection*GetListOfPragmas()
const TSeqCollection*GetListOfSysIncFiles()
const TSeqCollection*GetListOfUsers()
static TStringGetSysIncludePath()
Int_tHook(char* buf, int* pLoc, ostream& out)
virtual TClass*IsA() const
static Bool_tIsDirectory(const char[] fileName)
static TSeqCollection*NewListOfFilesInPath(const char[] path)
static voidNoMsg(Int_t errorLevel)
static Bool_tPathIsSpecifiedInFileName(const TString& fileName)
voidRehashAll()
voidRehashClasses()
voidRehashCppDirectives()
voidRehashEnvVars()
voidRehashFiles()
voidRehashGlobalFunctions()
voidRehashGlobals()
voidRehashPragmas()
voidRehashSysIncFiles()
voidRehashUsers()
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TTabCom()
private:
Int_tComplete(const TRegexp& re, const TSeqCollection* pListOfCandidates, const char[] appendage, ostream& out, TString::ECaseCompare cmp = TString::kExact)
voidCopyMatch(char[] dest, const char[] localName, const char[] appendage = 0, const char[] fullName = 0) const
TTabCom::EContext_tDetermineContext() const
TStringDeterminePath(const TString& fileName, const char[] defaultPath) const
TStringExtendPath(const char[] originalPath, TString newBase) const
voidInitPatterns()
TClass*MakeClassFromClassName(const char[] className) const
TClass*MakeClassFromVarName(const char[] varName, TTabCom::EContext_t& context, int iter = 0)
TTabCom&operator=(const TTabCom&)
intParseReverse(const char* var_str, int start)
voidSetPattern(TTabCom::EContext_t handle, const char[] regexp)
TClass*TryMakeClassFromClassName(const char[] className) const
TTabCom(const TTabCom&)

Data Members

public:
static TTabCom::EContext_tkCINT_EXec
static TTabCom::EContext_tkCINT_Edit
static TTabCom::EContext_tkCINT_Exec
static TTabCom::EContext_tkCINT_Load
static TTabCom::EContext_tkCINT_cpp
static TTabCom::EContext_tkCINT_includePWD
static TTabCom::EContext_tkCINT_includeSYS
static TTabCom::EContext_tkCINT_pragma
static TTabCom::EContext_tkCINT_stderr
static TTabCom::EContext_tkCINT_stdin
static TTabCom::EContext_tkCINT_stdout
static TTabCom::EContext_tkCXX_ConstructorProto
static TTabCom::EContext_tkCXX_DirectMember
static TTabCom::EContext_tkCXX_DirectProto
static TTabCom::EContext_tkCXX_Global
static TTabCom::EContext_tkCXX_GlobalProto
static TTabCom::EContext_tkCXX_IndirectMember
static TTabCom::EContext_tkCXX_IndirectProto
static TTabCom::EContext_tkCXX_NewProto
static TTabCom::EContext_tkCXX_ScopeMember
static TTabCom::EContext_tkCXX_ScopeProto
static TTabCom::(anonymous)kDebug
static TTabCom::EContext_tkNUM_PAT
static TTabCom::EContext_tkROOT_Load
static TTabCom::EContext_tkSYS_EnvVar
static TTabCom::EContext_tkSYS_FileName
static TTabCom::EContext_tkSYS_UserName
static TTabCom::EContext_tkUNKNOWN_CONTEXT
private:
char*fBufinitialized by Hook()
Int_tfLastIterfrodo: iteration counter for recursive MakeClassFromVarName
Pattern_tfPat[25][1024]array of patterns
ULong64_tfPrevInterpMarker
const char*fRegExp[25]corresponding regular expression plain text
Bool_tfVarIsPointerfrodo: pointer or not flag
TSeqCollection*fpClasses
TSeqCollection*fpDirectives
TSeqCollection*fpEnvVars
TSeqCollection*fpFiles
TSeqCollection*fpGlobals
int*fpLocinitialized by Hook()
TSeqCollection*fpPragmas
TSeqCollection*fpSysIncFiles
TSeqCollection*fpUsers

Class Charts

Inheritance Chart:
TTabCom

Function documentation

TTabCom()
virtual ~TTabCom()
Int_t Hook(char* buf, int* pLoc, ostream& out)
const TSeqCollection* GetListOfClasses()
const TSeqCollection* GetListOfCppDirectives()
const TSeqCollection* GetListOfFilesInPath(const char[] path)
const TSeqCollection* GetListOfEnvVars()
TCollection* GetListOfGlobalFunctions()
const TSeqCollection* GetListOfGlobals()
const TSeqCollection* GetListOfPragmas()
const TSeqCollection* GetListOfSysIncFiles()
const TSeqCollection* GetListOfUsers()
void ClearClasses()
void ClearCppDirectives()
void ClearEnvVars()
void ClearFiles()
void ClearGlobalFunctions()
void ClearGlobals()
void ClearPragmas()
void ClearSysIncFiles()
void ClearUsers()
void ClearAll()
void RehashClasses()
void RehashCppDirectives()
void RehashEnvVars()
void RehashFiles()
void RehashGlobalFunctions()
void RehashGlobals()
void RehashPragmas()
void RehashSysIncFiles()
void RehashUsers()
void RehashAll()
Char_t AllAgreeOnChar(int i, const TSeqCollection* pList, Int_t& nGoodStrings)
void AppendListOfFilesInDirectory(const char[] dirName, TSeqCollection* pList)
TString DetermineClass(const char[] varName)
Bool_t ExcludedByFignore(TString s)
TString GetSysIncludePath()
Bool_t IsDirectory(const char[] fileName)
TSeqCollection* NewListOfFilesInPath(const char[] path)
Bool_t PathIsSpecifiedInFileName(const TString& fileName)
void NoMsg(Int_t errorLevel)
TTabCom(const TTabCom& )
TTabCom& operator=(const TTabCom& )
Int_t Complete(const TRegexp& re, const TSeqCollection* pListOfCandidates, const char[] appendage, ostream& out, TString::ECaseCompare cmp = TString::kExact)
EContext_t DetermineContext() const
TString DeterminePath(const TString& fileName, const char[] defaultPath) const
TString ExtendPath(const char[] originalPath, TString newBase) const
void InitPatterns()
TClass* MakeClassFromClassName(const char[] className) const
TClass* TryMakeClassFromClassName(const char[] className) const
TClass* MakeClassFromVarName(const char[] varName, TTabCom::EContext_t& context, int iter = 0)
int ParseReverse(const char* var_str, int start)