Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/topducontextdata.h
Show All 32 Lines | |||||
33 | KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(TopDUContextData, m_usedDeclarationIds, DeclarationId) | 33 | KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(TopDUContextData, m_usedDeclarationIds, DeclarationId) | ||
34 | KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(TopDUContextData, m_problems, LocalIndexedProblem) | 34 | KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(TopDUContextData, m_problems, LocalIndexedProblem) | ||
35 | 35 | | |||
36 | class KDEVPLATFORMLANGUAGE_EXPORT TopDUContextData : public DUContextData | 36 | class KDEVPLATFORMLANGUAGE_EXPORT TopDUContextData : public DUContextData | ||
37 | { | 37 | { | ||
38 | public: | 38 | public: | ||
39 | explicit TopDUContextData(IndexedString url) | 39 | explicit TopDUContextData(IndexedString url) | ||
40 | : DUContextData() | 40 | : DUContextData() | ||
41 | , m_deleting(false) | | |||
42 | , m_url(url) | 41 | , m_url(url) | ||
43 | , m_ownIndex(0) | 42 | , m_ownIndex(0) | ||
44 | , m_currentUsedDeclarationIndex(0) | 43 | , m_currentUsedDeclarationIndex(0) | ||
45 | { | 44 | { | ||
46 | initializeAppendedLists(); | 45 | initializeAppendedLists(); | ||
47 | } | 46 | } | ||
48 | 47 | | |||
49 | TopDUContextData(const TopDUContextData& rhs) | 48 | TopDUContextData(const TopDUContextData& rhs) | ||
50 | : DUContextData(rhs) | 49 | : DUContextData(rhs) | ||
51 | , m_deleting(false) | | |||
52 | { | 50 | { | ||
53 | initializeAppendedLists(); | 51 | initializeAppendedLists(); | ||
54 | copyListsFrom(rhs); | 52 | copyListsFrom(rhs); | ||
55 | m_features = rhs.m_features; | 53 | m_features = rhs.m_features; | ||
56 | m_url = rhs.m_url; | 54 | m_url = rhs.m_url; | ||
57 | m_currentUsedDeclarationIndex = rhs.m_currentUsedDeclarationIndex; | 55 | m_currentUsedDeclarationIndex = rhs.m_currentUsedDeclarationIndex; | ||
58 | m_ownIndex = rhs.m_ownIndex; | 56 | m_ownIndex = rhs.m_ownIndex; | ||
59 | m_importsCache = rhs.m_importsCache; | 57 | m_importsCache = rhs.m_importsCache; | ||
60 | } | 58 | } | ||
61 | 59 | | |||
62 | ~TopDUContextData() { | 60 | ~TopDUContextData() { | ||
63 | freeAppendedLists(); | 61 | freeAppendedLists(); | ||
64 | } | 62 | } | ||
65 | 63 | | |||
66 | TopDUContext::Features m_features; | 64 | TopDUContext::Features m_features; | ||
67 | 65 | | |||
68 | bool m_deleting : 1; ///@todo remove | | |||
69 | | ||||
70 | IndexedString m_url; | 66 | IndexedString m_url; | ||
71 | uint m_ownIndex; | 67 | uint m_ownIndex; | ||
72 | 68 | | |||
73 | ///If this is not empty, it means that the cache is used instead of the implicit structure. | 69 | ///If this is not empty, it means that the cache is used instead of the implicit structure. | ||
74 | TopDUContext::IndexedRecursiveImports m_importsCache; | 70 | TopDUContext::IndexedRecursiveImports m_importsCache; | ||
75 | 71 | | |||
76 | ///Is used to count up the used declarations while building uses | 72 | ///Is used to count up the used declarations while building uses | ||
77 | uint m_currentUsedDeclarationIndex; | 73 | uint m_currentUsedDeclarationIndex; | ||
Show All 15 Lines |