Code::Blocks  SVN r11506
Classes | Typedefs | Enumerations
token.h File Reference
#include <wx/arrstr.h>
#include <wx/string.h>
#include <set>
#include <map>
Include dependency graph for token.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Token
 a symbol found in the parsed files, it can be many kinds, such as a variable, a class and so on. More...
 

Typedefs

typedef std::set< int, std::less< int > > TokenIdxSet
 
typedef std::set< size_t, std::less< size_t > > TokenFileSet
 

Enumerations

enum  TokenScope { tsUndefined = 0, tsPrivate, tsProtected, tsPublic }
 
enum  TokenKind {
  tkNamespace = 0x0001, tkClass = 0x0002, tkEnum = 0x0004, tkTypedef = 0x0008,
  tkConstructor = 0x0010, tkDestructor = 0x0020, tkFunction = 0x0040, tkVariable = 0x0080,
  tkEnumerator = 0x0100, tkMacroDef = 0x0200, tkMacroUse = 0x0400, tkAnyContainer = tkClass | tkNamespace | tkTypedef,
  tkAnyFunction = tkFunction | tkConstructor | tkDestructor, tkUndefined = 0xFFFF
}
 

Typedef Documentation

◆ TokenFileSet

typedef std::set< size_t, std::less<size_t> > TokenFileSet

Definition at line 19 of file token.h.

◆ TokenIdxSet

typedef std::set< int, std::less<int> > TokenIdxSet

Definition at line 16 of file token.h.

Enumeration Type Documentation

◆ TokenKind

enum TokenKind
Enumerator
tkNamespace 

namespace

tkClass 

class or struct

tkEnum 

enum

tkTypedef 

typedef, note typedefs are stored as classes inheriting from the typedef'd type, this takes advantage of existing inheritance code

tkConstructor 

constructor class member function

tkDestructor 

destructor class member function

tkFunction 

general function, not constructor nor destructor

tkVariable 

variable

tkEnumerator 

enumerator

tkMacroDef 

macro definition, such as: #define AAA(x,y) f(x,y), where AAA is a token of tkMacroDef

tkMacroUse 

the usage of the macro, for example: AAA(1,2)

tkAnyContainer 

container like tokens, those tokens can have children tokens

tkAnyFunction 

any kind of functions

tkUndefined 

undefined or just "all"

Definition at line 29 of file token.h.

◆ TokenScope

enum TokenScope
Enumerator
tsUndefined 
tsPrivate 
tsProtected 
tsPublic 

Definition at line 21 of file token.h.