summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-25 11:52:04 +0000
committeryexo <yexo@openttd.org>2010-02-25 11:52:04 +0000
commit1a89a5fc92f9e1d10b5e298c67d14e8614068742 (patch)
tree9f57de326bdfe958467509c919672927dbea8c27 /src/misc
parent433e1d884cebf8ccf8c0db10cb0edf0e1f3426f0 (diff)
downloadopenttd-1a89a5fc92f9e1d10b5e298c67d14e8614068742.tar.xz
(svn r19247) -Codechange: Rename methods to fit better to common style (skidd13)
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/binaryheap.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/binaryheap.hpp b/src/misc/binaryheap.hpp
index d9f8c424d..7168cd03c 100644
--- a/src/misc/binaryheap.hpp
+++ b/src/misc/binaryheap.hpp
@@ -148,7 +148,7 @@ public:
*
* @return The number of items in the queue
*/
- FORCEINLINE uint Size() const { return this->items; }
+ FORCEINLINE uint Length() const { return this->items; }
/**
* Test if the priority queue is empty.
@@ -192,7 +192,7 @@ public:
*
* @param new_item The pointer to the new item
*/
- FORCEINLINE void Push(T *new_item)
+ FORCEINLINE void Include(T *new_item)
{
if (this->IsFull()) {
this->capacity *= 2;
@@ -233,7 +233,7 @@ public:
*
* @param index The position of the item in the heap
*/
- FORCEINLINE void RemoveByIdx(uint index)
+ FORCEINLINE void Remove(uint index)
{
if (index < this->items) {
assert(index != 0);
@@ -261,7 +261,7 @@ public:
* @param item The reference to the item
* @return The index of the item or zero if not found
*/
- FORCEINLINE uint FindLinear(const T &item) const
+ FORCEINLINE uint FindIndex(const T &item) const
{
if (this->IsEmpty()) return 0;
for (T **ppI = this->data + 1, **ppLast = ppI + this->items; ppI <= ppLast; ppI++) {