diff options
Diffstat (limited to 'core/array.h')
-rw-r--r-- | core/array.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/array.h b/core/array.h index dfc902525c..16ab16002c 100644 --- a/core/array.h +++ b/core/array.h @@ -5,7 +5,7 @@ /* GODOT ENGINE */ /* http://www.godotengine.org */ /*************************************************************************/ -/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ @@ -53,8 +53,6 @@ public: bool empty() const; void clear(); - bool is_shared() const; - bool operator==(const Array& p_array) const; uint32_t hash() const; @@ -67,6 +65,9 @@ public: void insert(int p_pos, const Variant& p_value); void remove(int p_pos); + Variant front() const; + Variant back() const; + void sort(); void sort_custom(Object *p_obj,const StringName& p_function); void invert(); @@ -80,11 +81,11 @@ public: void erase(const Variant& p_value); void push_front(const Variant& p_value); - void pop_back(); - void pop_front(); + Variant pop_back(); + Variant pop_front(); Array(const Array& p_from); - Array(bool p_shared=false); + Array(); ~Array(); }; |