/usr/include/root/Token.h is in libroot-core-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /* /% C++ %/ */
/***********************************************************************
* cint (C/C++ interpreter)
************************************************************************
* Header file Token.h
************************************************************************
* Description:
* Extended Run Time Type Identification API
************************************************************************
* Copyright(c) 1995~1999 Masaharu Goto
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#ifndef G__TOKENINFO_H
#define G__TOKENINFO_H
#ifndef G__API_H
#include "Api.h"
#endif
namespace Cint {
class G__ClassInfo;
class G__MethodInfo;
/*********************************************************************
* class G__TokenInfo
*
* Outcome of discussion between Nenad Buncic of CERN. 15 Mar 1997
*
*********************************************************************/
class
#ifndef __CINT__
G__EXPORT
#endif
G__TokenInfo {
public:
enum G__TokenType { t_invalid // p_invalid
, t_class , t_typedef, t_fundamental , t_enum // p_type
, t_memberfunc, t_globalfunc // p_func
, t_datamember, t_local, t_global, t_enumelement // p_data
};
enum G__TokenProperty {p_invalid , p_type , p_data, p_func};
~G__TokenInfo() {}
G__TokenInfo() :
tokentype(t_invalid), tokenproperty(p_invalid), methodscope(),
bytecode(NULL), localvar(NULL), glob(), nextscope(), tinfo() { Init(); }
G__TokenInfo(const G__TokenInfo& tki);
G__TokenInfo& operator=(const G__TokenInfo& tki);
void Init();
// MakeLocalTable has to be used when entering to a new function
G__MethodInfo MakeLocalTable(G__ClassInfo& tag_scope
,const char* fname,const char* paramtype);
// Query has to be used to get information for each token
int Query(G__ClassInfo& tag_scope,G__MethodInfo& func_scope
,const char* preopr,const char* name,const char* postopr);
// Following functions have to be called after Query
enum G__TokenType GetTokenType() { return(tokentype); }
enum G__TokenProperty GetTokenProperty() { return(tokenproperty); }
G__ClassInfo GetNextScope() { return(nextscope); }
private:
enum G__TokenType tokentype;
enum G__TokenProperty tokenproperty;
G__MethodInfo methodscope;
struct G__bytecodefunc *bytecode;
struct G__var_array *localvar;
G__ClassInfo glob;
G__ClassInfo nextscope;
G__TypeInfo tinfo;
int SearchTypeName(const char* name,const char* postopr);
int SearchLocalVariable(const char* name,G__MethodInfo& func_scope
,const char* postopr);
int SearchDataMember(const char* name,G__ClassInfo& tag_scope
,const char* postopr);
int SearchGlobalVariable(const char* name,const char* postopr);
int SearchMemberFunction(const char* name,G__ClassInfo& tag_scope);
int SearchGlobalFunction(const char* name);
void GetNextscope(const char* name,G__ClassInfo& tag_scope);
};
} // namespace Cint
/*********************************************************************
* memo
*
* int G__loadfile(char* fname);
* #define G__LOADFILE_SUCCESS 0
* #define G__LOADFILE_DUPLICATE 1
* #define G__LOADFILE_FAILURE (-1)
* #define G__LOADFILE_FATAL (-2)
*
* int G__unloadfile(char* fname);
* #define G__UNLOADFILE_SUCCESS 0
* #define G__UNLOADFILE_FAILURE (-1)
*
* void G__add_ipath(char* pathname);
*
* in src/Class.h
* class G__ClassInfo {
* public:
* G__ClassInfo();
* Init(char* classname);
* int IsValid();
* ..
* };
*
* in src/Method.h
* class G__MethodInfo {
* public:
* G__MethodInfo();
* G__MethodInfo(G__ClassInfo& scope);
* Init();
* Init(G__ClassInfo& scope);
* int IsValid();
* ..
* };
*
*********************************************************************/
using namespace Cint;
#endif
|