diff options
| author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-04-10 14:20:51 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-04-18 10:25:29 +0200 |
| commit | e252843f8c4e9714d9c24d990b83b0721534c3d6 (patch) | |
| tree | 8d4da8a9de45c124d7b25669454f2443354e6566 /src/lib/buildgraph/artifactlist.h | |
| parent | e5cac14ffa7c246d9f6b70aa7de9d53078191e12 (diff) | |
| download | qbs-e252843f8c4e9714d9c24d990b83b0721534c3d6.tar.gz | |
artifact lookup revisited
The naive (absolute filepath -> artifact object) hash in BuildProduct
and BuildProject has been replaced by a table structure,
owned by the project:
(file name -> (directory path -> Artifact objects))
This way artifact lookups are much faster.
Change-Id: Ib31d3b234ecfc1d2d026aaec388ec16e6fd8f86c
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/lib/buildgraph/artifactlist.h')
| -rw-r--r-- | src/lib/buildgraph/artifactlist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/buildgraph/artifactlist.h b/src/lib/buildgraph/artifactlist.h index 6bc9d1d90..31aadc156 100644 --- a/src/lib/buildgraph/artifactlist.h +++ b/src/lib/buildgraph/artifactlist.h @@ -63,6 +63,8 @@ public: iterator end() { return m_data.end(); } const_iterator begin() const { return m_data.begin(); } const_iterator end() const { return m_data.end(); } + const_iterator constBegin() const { return m_data.begin(); } + const_iterator constEnd() const { return m_data.end(); } void insert(Artifact *artifact) { |
