Definition at line 64 of file search.py.
def search.Finder.__init__ |
( |
|
self, |
|
|
|
cn, |
|
|
|
name, |
|
|
|
row_type = str |
|
) |
| |
Definition at line 65 of file search.py.
def __init__(self, cn, name, row_type=str)
def search.Finder.baseClasses |
( |
|
self | ) |
|
Definition at line 236 of file search.py.
238 c=self.cn.execute(
'SELECT base FROM basecompoundref WHERE'+self.
match(
"derived"),[self.
name])
239 for r
in c.fetchall():
241 item[
'name'] = r[
'base']
def search.Finder.file |
( |
|
self | ) |
|
Definition at line 135 of file search.py.
137 for r
in self.cn.execute(
"SELECT rowid,* FROM files WHERE"+self.
match(
"name"),[self.
name]).fetchall():
139 item[
'name'] = r[
'name']
140 item[
'id'] = r[
'rowid']
def search.Finder.fileId |
( |
|
self, |
|
|
|
name |
|
) |
| |
Definition at line 88 of file search.py.
89 if self.cn.execute(
"SELECT COUNT(*) FROM files WHERE"+self.
match(
"name"),[name]).fetchone()[0] > 1:
90 print >>sys.stderr,
"WARNING: non-uniq file name [%s]. Considering only the first match." % name
92 for r
in self.cn.execute(
"SELECT rowid FROM files WHERE"+self.
match(
"name"),[name]).fetchall():
def search.Finder.fileName |
( |
|
self, |
|
|
|
id_file |
|
) |
| |
Definition at line 79 of file search.py.
80 if self.cn.execute(
"SELECT COUNT(*) FROM files WHERE rowid=?",[id_file]).fetchone()[0] > 1:
81 print >>sys.stderr,
"WARNING: non-uniq fileid [%s]. Considering only the first match." % id_file
83 for r
in self.cn.execute(
"SELECT * FROM files WHERE rowid=?",[id_file]).fetchall():
def fileName(self, id_file)
def search.Finder.function |
( |
|
self | ) |
|
Definition at line 121 of file search.py.
123 c=self.cn.execute(
'SELECT * FROM memberdef WHERE'+self.
match(
"name")+
' AND kind=?',[self.
name,MemberType.Function])
124 for r
in c.fetchall():
126 item[
'name'] = r[
'name']
127 item[
'definition'] = r[
'definition']
128 item[
'argsstring'] = r[
'argsstring']
129 item[
'file'] = self.
fileName(r[
'id_file'])
130 item[
'line'] = r[
'line']
131 item[
'detaileddescription'] = r[
'detaileddescription']
def fileName(self, id_file)
def search.Finder.includees |
( |
|
self | ) |
|
Definition at line 212 of file search.py.
215 c=self.cn.execute(
'SELECT * FROM includes WHERE id_src=?',[fid])
216 for r
in c.fetchall():
218 item[
'name'] = self.
fileName(r[
'id_dst'])
def fileName(self, id_file)
def search.Finder.includers |
( |
|
self | ) |
|
Definition at line 202 of file search.py.
205 c=self.cn.execute(
'SELECT * FROM includes WHERE id_dst=?',[fid])
206 for r
in c.fetchall():
208 item[
'name'] = self.
fileName(r[
'id_src'])
def fileName(self, id_file)
def search.Finder.macro |
( |
|
self | ) |
|
Definition at line 145 of file search.py.
147 c=self.cn.execute(
'SELECT * FROM memberdef WHERE'+self.
match(
"name")+
' AND kind=?',[self.
name,MemberType.Define])
148 for r
in c.fetchall():
150 item[
'name'] = r[
'name']
152 item[
'argsstring'] = r[
'argsstring']
153 item[
'definition'] = r[
'initializer']
154 item[
'file'] = self.
fileName(r[
'id_file'])
155 item[
'line'] = r[
'line']
def fileName(self, id_file)
def search.Finder.match |
( |
|
self, |
|
|
|
row |
|
) |
| |
Definition at line 70 of file search.py.
74 if g_use_regexp ==
True:
75 return " REGEXP (?,%s)" %row
def search.Finder.members |
( |
|
self | ) |
|
Definition at line 222 of file search.py.
224 c=self.cn.execute(
'SELECT * FROM memberdef WHERE'+self.
match(
"scope"),[self.
name])
225 for r
in c.fetchall():
227 item[
'name'] = r[
'name']
228 item[
'definition'] = r[
'definition']
229 item[
'argsstring'] = r[
'argsstring']
230 item[
'file'] = self.
fileName(r[
'id_file'])
231 item[
'line'] = r[
'line']
def fileName(self, id_file)
def search.Finder.params |
( |
|
self | ) |
|
Definition at line 183 of file search.py.
185 c=self.cn.execute(
'SELECT id FROM memberdef WHERE'+self.
match(
"name"),[self.
name])
186 for r
in c.fetchall():
def search.Finder.references |
( |
|
self | ) |
|
Definition at line 97 of file search.py.
99 cur = self.cn.cursor()
100 cur.execute(
"SELECT refid FROM memberdef WHERE"+self.
match(
"name"),[self.
name])
101 refids = cur.fetchall()
106 refid = refids[0][
'refid']
107 cur = self.cn.cursor()
109 for info
in cur.execute(
"SELECT * FROM xrefs WHERE refid_dst LIKE '%"+refid+
"%'"):
111 cur = self.cn.cursor()
112 for i2
in cur.execute(
"SELECT * FROM memberdef WHERE refid=?",[info[
'src']]):
113 item[
'name']=i2[
'name']
114 item[
'src']=info[
'src']
115 item[
'file']=self.
fileName(info[
'id_file'])
116 item[
'line']=info[
'line']
def fileName(self, id_file)
def search.Finder.struct |
( |
|
self | ) |
|
Definition at line 193 of file search.py.
195 c=self.cn.execute(
'SELECT * FROM compounddef WHERE'+self.
match(
"name"),[self.
name])
196 for r
in c.fetchall():
198 item[
'name'] = r[
'name']
def search.Finder.subClasses |
( |
|
self | ) |
|
Definition at line 245 of file search.py.
247 c=self.cn.execute(
'SELECT derived FROM basecompoundref WHERE'+self.
match(
"base"),[self.
name])
248 for r
in c.fetchall():
250 item[
'name'] = r[
'derived']
def search.Finder.typedef |
( |
|
self | ) |
|
Definition at line 159 of file search.py.
161 c=self.cn.execute(
'SELECT * FROM memberdef WHERE'+self.
match(
"name")+
' AND kind=?',[self.
name,MemberType.Typedef])
162 for r
in c.fetchall():
164 item[
'name'] = r[
'name']
165 item[
'definition'] = r[
'definition']
166 item[
'file'] = self.
fileName(r[
'id_file'])
167 item[
'line'] = r[
'line']
def fileName(self, id_file)
def search.Finder.variable |
( |
|
self | ) |
|
Definition at line 171 of file search.py.
173 c=self.cn.execute(
'SELECT * FROM memberdef WHERE'+self.
match(
"name")+
' AND kind=?',[self.
name,MemberType.Variable])
174 for r
in c.fetchall():
176 item[
'name'] = r[
'name']
177 item[
'definition'] = r[
'definition']
178 item[
'file'] = self.
fileName(r[
'id_file'])
179 item[
'line'] = r[
'line']
def fileName(self, id_file)
The documentation for this class was generated from the following file: