Commit c2499c2c authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Deleted operator[] in Vector since it is inherited from Array.

parent 79635c42
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
@@ -62,10 +62,7 @@ public:
   Vector( const IndexType& size );

   /**
    * \brief Constructor with data pointer and size.
    *
    * In this case, the Vector just encapsulates the pointer \e data. No
    * deallocation is done in destructor.
    * \brief Deep copy constructor with data pointer and size.
    *
    * This behavior of the Vector is deprecated and \ref VectorView should be used
    * instead.
@@ -87,10 +84,7 @@ public:
   Vector( const Vector< Real_, Device_, Index_ >& vector );

   /**
    * \brief Bind constructor .
    *
    * The constructor does not make a deep copy, but binds to the supplied vector.
    * This is also deprecated, \ref VectorView should be used instead.
    * \brief Deep copy constructor with other vector.
    *
    * \param vector is an vector that is to be bound.
    * \param begin is the first index which should be bound.
@@ -189,10 +183,6 @@ public:
                    const RealType& value,
                    const Scalar thisElementMultiplicator );

   __cuda_callable__ Real& operator[]( const Index& i );

   __cuda_callable__ const Real& operator[]( const Index& i ) const;

   Vector& operator = ( const Vector& v );

   template< typename Real_, typename Device_, typename Index_ >
+0 −22
Original line number Diff line number Diff line
@@ -202,28 +202,6 @@ addElement( const IndexType i,
   Algorithms::VectorOperations< Device >::addElement( *this, i, value, thisElementMultiplicator );
}

template< typename Real,
          typename Device,
          typename Index >
__cuda_callable__
inline Real&
Vector< Real, Device, Index >::
operator[]( const Index& i )
{
   return Array< Real, Device, Index >::operator[]( i );
}

template< typename Real,
          typename Device,
          typename Index >
__cuda_callable__
inline const Real&
Vector< Real, Device, Index >::
operator[]( const Index& i ) const
{
   return Array< Real, Device, Index >::operator[]( i );
}

template< typename Real,
          typename Device,
          typename Index >