summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-22 22:04:09 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-04 19:20:59 (GMT)
commit4e5c70abe27997f17318cc6aca38eeddec486798 (patch)
treeeab39770417cd872531c202b0781056984475afd /Source/cmState.h
parent7b9c75860d25479a153831740d289e8aca540f4d (diff)
downloadCMake-4e5c70abe27997f17318cc6aca38eeddec486798.zip
CMake-4e5c70abe27997f17318cc6aca38eeddec486798.tar.gz
CMake-4e5c70abe27997f17318cc6aca38eeddec486798.tar.bz2
cmState: Extract a cmLinkedTree container adaptor.
This will be used to contain most of the content of the cmState in several different trees. Refer to the BuildsystemDirectory state from the SnapshotData state. Currently these trees have the same structure, but that will change when we have more snapshot types.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 4589a72..1411e2f 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -15,6 +15,7 @@
#include "cmStandardIncludes.h"
#include "cmPropertyDefinitionMap.h"
#include "cmPropertyMap.h"
+#include "cmLinkedTree.h"
class cmake;
class cmCommand;
@@ -22,7 +23,7 @@ class cmCommand;
class cmState
{
struct SnapshotDataType;
- typedef std::vector<std::string>::size_type PositionType;
+ typedef cmLinkedTree<SnapshotDataType>::iterator PositionType;
friend class Snapshot;
public:
cmState(cmake* cm);
@@ -35,7 +36,7 @@ public:
class Snapshot {
public:
- Snapshot(cmState* state = 0, PositionType position = 0);
+ Snapshot(cmState* state = 0, PositionType position = PositionType());
const char* GetCurrentSourceDirectory() const;
void SetCurrentSourceDirectory(std::string const& dir);
@@ -166,9 +167,9 @@ private:
cmake* CMakeInstance;
struct BuildsystemDirectoryStateType;
- std::vector<BuildsystemDirectoryStateType> BuildsystemDirectory;
+ cmLinkedTree<BuildsystemDirectoryStateType> BuildsystemDirectory;
- std::vector<SnapshotDataType> SnapshotData;
+ cmLinkedTree<SnapshotDataType> SnapshotData;
std::vector<std::string> SourceDirectoryComponents;
std::vector<std::string> BinaryDirectoryComponents;