18 typedef std::set< int, std::less<int> >
TokenIdxSet;
93 Token(
const wxString& name,
unsigned int file,
unsigned int line,
size_t ticket);
TokenTree * GetTree() const
get the TokenTree associated with the current Token
std::map< wxString, wxString > m_TemplateMap
a string to string map from formal template argument to actual template argument
destructor class member function
int m_ParentIndex
Parent Token index.
constructor class member function
wxString m_BaseType
this is what the parser believes is the actual return value: e.g.
bool m_IsAnonymous
Is anonymous token? (e.g.
wxString m_Name
Token's name, it can be searched in the TokenTree.
std::set< size_t, std::less< size_t > > TokenFileSet
unsigned int m_ImplLine
function implementation line index
bool IsValidAncestor(const wxString &ancestor)
build in types are not valid ancestors for a type define token
typedef, note typedefs are stored as classes inheriting from the typedef'd type, this takes advantage...
container like tokens, those tokens can have children tokens
wxString GetFilename() const
get a full path of the file which contains the current Token
wxString m_BaseArgs
stripped arguments e.g.
a container class to hold all the Tokens getting from parsing stage
TokenIdxSet m_Children
if it is a class kind token, then it contains all the member tokens
unsigned int m_ImplLineStart
if token is impl, opening brace line
void * m_UserData
custom user-data (the classbrowser expects it to be a pointer to a cbProject), this field is used whe...
TokenIdxSet m_Ancestors
all the ancestors in the inheritance hierarchy
unsigned int m_Line
Line index where the token was met, which is 1 based.
int m_Index
current Token index in the tree, it is index of the std::vector<Token*>, so use the index...
unsigned int m_ImplLineEnd
if token is impl, closing brace line
wxString GetNamespace() const
get a literal string presentation of the namespace.
bool m_IsNoExcept
the member method is noexcept (yes/no)
wxArrayString m_Aliases
used for namespace aliases
bool m_IsTemp
local (automatic) variable
TokenScope m_Scope
public? private? protected?
wxArrayString m_TemplateType
for a class template, this is the formal template argument list, but for a variable Token...
wxString DisplayName() const
a short simple string to show the token information, this usually generate for show the tip message w...
bool m_IsOperator
is operator overload function?
bool MatchesFiles(const TokenFileSet &files)
see whether the current token belong to any files in the file set, both m_FileIdx and m_ImplFileIdx i...
unsigned int m_FileIdx
File index in TokenTree.
wxString GetStrippedArgs() const
remove all default value of the function argument string, e.g.
wxString m_Doc
doxygen style comments
a symbol found in the parsed files, it can be many kinds, such as a variable, a class and so on...
std::set< int, std::less< int > > TokenIdxSet
wxString m_TemplateAlias
alias for templates, e.g.
bool m_IsConst
the member method is const (yes/no)
bool InheritsFrom(int idx) const
check to see the current token is inherited from a specified token
bool HasChildren() const
check if the token has any child tokens.
wxString m_Args
If it is a function Token, then this value is function arguments, e.g.
wxString GetTokenScopeString() const
the access kind string, e.g.
unsigned int m_ImplFileIdx
function implementation file index
wxString m_TemplateArgument
template argument list, comma separated list string
TokenIdxSet m_Descendants
all the descendants in the inheritance hierarchy
TokenTree * m_TokenTree
a pointer to TokenTree
bool DeleteAllChildren()
delete all the child tokens of the current token, not only remove the relation, but also delete the T...
TokenKind m_TokenKind
See TokenKind class.
general function, not constructor nor destructor
size_t m_Ticket
This is used in class browser to avoid duplication nodes in the class browser tree.
macro definition, such as: #define AAA(x,y) f(x,y), where AAA is a token of tkMacroDef ...
wxString GetImplFilename() const
get a full path of the file which contains the function implementation.
wxString m_ImplDoc
doxygen style comments in the Impl file
wxString m_FullType
this is the full return value (if any): e.g.
size_t GetTicket() const
get the ticket value of the current token
wxString GetTokenKindString() const
the token kind string, e.g.
bool m_IsLocal
if true, means the token belong to a C::B project, it exists in the project's source/header files...
TokenIdxSet m_DirectAncestors
the nearest ancestors
the usage of the macro, for example: AAA(1,2)
bool AddChild(int childIdx)
add a child token