Code::Blocks
SVN r11506
plugins
codecompletion
systemheadersthread.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3
* http://www.gnu.org/licenses/gpl-3.0.html
4
*/
5
6
#ifndef SYSTEMHEADERSTHREAD_H
7
#define SYSTEMHEADERSTHREAD_H
8
9
#include <
wx/arrstr.h
>
10
#include <
wx/string.h
>
11
#include <
wx/thread.h
>
12
13
#include <map>
14
15
#include "
parser/parser.h
"
// StringSet
16
17
class
wxEvtHandler
;
18
24
typedef
std::map<wxString, StringSet>
SystemHeadersMap
;
25
27
extern
long
idSystemHeadersThreadFinish
;
28
extern
long
idSystemHeadersThreadMessage
;
29
33
class
SystemHeadersThread
:
public
wxThread
34
{
35
public
:
36
SystemHeadersThread
(
wxEvtHandler
* parent,
wxCriticalSection
* critSect,
37
SystemHeadersMap
& headersMap,
const
wxArrayString
& incDirs);
38
virtual
~SystemHeadersThread
();
39
40
virtual
void
*
Entry
();
41
42
private
:
43
wxEvtHandler
*
m_Parent
;
44
wxCriticalSection
*
m_SystemHeadersThreadCS
;
45
SystemHeadersMap
&
m_SystemHeadersMap
;
46
wxArrayString
m_IncludeDirs
;
47
};
48
49
#endif // SYSTEMHEADERSTHREAD_H
SystemHeadersThread
collect all the header files, so they can be used in auto suggestion after #include<| directive...
Definition:
systemheadersthread.h:33
SystemHeadersThread::Entry
virtual void * Entry()
Definition:
systemheadersthread.cpp:154
parser.h
string.h
SystemHeadersThread::~SystemHeadersThread
virtual ~SystemHeadersThread()
Definition:
systemheadersthread.cpp:149
idSystemHeadersThreadFinish
long idSystemHeadersThreadFinish
event ids used to notify parent objects
Definition:
systemheadersthread.cpp:53
SystemHeadersThread::m_SystemHeadersThreadCS
wxCriticalSection * m_SystemHeadersThreadCS
this is the target the thread will sent any event to
Definition:
systemheadersthread.h:44
SystemHeadersThread::m_IncludeDirs
wxArrayString m_IncludeDirs
this takes the result data
Definition:
systemheadersthread.h:46
thread.h
SystemHeadersThread::m_SystemHeadersMap
SystemHeadersMap & m_SystemHeadersMap
protect multiply access to its data
Definition:
systemheadersthread.h:45
arrstr.h
SystemHeadersThread::SystemHeadersThread
SystemHeadersThread(wxEvtHandler *parent, wxCriticalSection *critSect, SystemHeadersMap &headersMap, const wxArrayString &incDirs)
Definition:
systemheadersthread.cpp:135
wxEvtHandler
wxArrayString
wxCriticalSection
SystemHeadersThread::m_Parent
wxEvtHandler * m_Parent
Definition:
systemheadersthread.h:43
wxThread
idSystemHeadersThreadMessage
long idSystemHeadersThreadMessage
Definition:
systemheadersthread.cpp:56
SystemHeadersMap
std::map< wxString, StringSet > SystemHeadersMap
dir to files map, for example, you have two dirs c:/a and c:/b so the map looks like: c:/a —> {c:/a/...
Definition:
systemheadersthread.h:17
Generated by
1.8.13