From 9e01d876045f63505e0cfda1ebfd13a14d870006 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 23 Feb 2017 23:15:55 +0000 Subject: [PATCH] Moved some base functions to ivector --- src/private/vector_base.h | 40 +-------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/src/private/vector_base.h b/src/private/vector_base.h index 69c5494e..44fb0673 100644 --- a/src/private/vector_base.h +++ b/src/private/vector_base.h @@ -111,33 +111,6 @@ namespace etl typedef size_t size_type; - //************************************************************************* - /// Gets the current size of the vector. - ///\return The current size of the vector. - //************************************************************************* - size_type size() const - { - return current_size; - } - - //************************************************************************* - /// Checks the 'empty' state of the vector. - ///\return true if empty. - //************************************************************************* - bool empty() const - { - return (current_size == 0); - } - - //************************************************************************* - /// Checks the 'full' state of the vector. - ///\return true if full. - //************************************************************************* - bool full() const - { - return current_size == MAX_SIZE; - } - //************************************************************************* /// Returns the capacity of the vector. ///\return The capacity of the vector. @@ -156,27 +129,16 @@ namespace etl return MAX_SIZE; } - //************************************************************************* - /// Returns the remaining capacity. - ///\return The remaining capacity. - //************************************************************************* - size_t available() const - { - return max_size() - size(); - } - protected: //************************************************************************* /// Constructor. //************************************************************************* vector_base(size_t max_size) - : current_size(0), - MAX_SIZE(max_size) + : MAX_SIZE(max_size) { } - size_type current_size; ///