summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkedTree.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-25 15:23:05 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-25 15:23:05 (GMT)
commit518d6b22f6705c4747c713031587705641540364 (patch)
tree0cbf97517daef0ec545fa39961177cf0e6b4096c /Source/cmLinkedTree.h
parent32edac6fddfbe91e47b34506cda855232d5a9e2c (diff)
downloadCMake-518d6b22f6705c4747c713031587705641540364.zip
CMake-518d6b22f6705c4747c713031587705641540364.tar.gz
CMake-518d6b22f6705c4747c713031587705641540364.tar.bz2
cmLinkedTree: Rename 'Extend' method to 'Push'
Logically the method pushes a nested scope on top of a given scope because the "up" pointer sequence forms a stack independent of any other branches of the tree.
Diffstat (limited to 'Source/cmLinkedTree.h')
-rw-r--r--Source/cmLinkedTree.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmLinkedTree.h b/Source/cmLinkedTree.h
index 721a246..93d801e 100644
--- a/Source/cmLinkedTree.h
+++ b/Source/cmLinkedTree.h
@@ -24,7 +24,7 @@
needs of the cmState. For example, the Truncate() method is a specific
requirement of the cmState.
- An empty cmLinkedTree provides a Root() method, and an Extend() method,
+ An empty cmLinkedTree provides a Root() method, and an Push() method,
each of which return iterators. A Tree can be built up by extending
from the root, and then extending from any other iterator.
@@ -142,14 +142,14 @@ public:
return iterator(const_cast<cmLinkedTree*>(this), 0);
}
- iterator Extend(iterator it)
+ iterator Push(iterator it)
{
- return Extend_impl(it, T());
+ return Push_impl(it, T());
}
- iterator Extend(iterator it, T t)
+ iterator Push(iterator it, T t)
{
- return Extend_impl(it, t);
+ return Push_impl(it, t);
}
iterator Truncate()
@@ -179,7 +179,7 @@ private:
return &this->Data[pos];
}
- iterator Extend_impl(iterator it, T t)
+ iterator Push_impl(iterator it, T t)
{
assert(this->UpPositions.size() == this->Data.size());
assert(it.Position <= this->UpPositions.size());