AWS SDK for C++  0.14.3
AWS SDK for C++
Public Member Functions | Protected Attributes | List of all members
Aws::Utils::Array< T > Class Template Reference

#include <Array.h>

+ Inheritance diagram for Aws::Utils::Array< T >:

Public Member Functions

 Array (size_t arraySize=0)
 
 Array (const T *arrayToCopy, size_t arraySize)
 
 Array (Aws::Vector< Array * > &&toMerge)
 
 Array (const Array &other)
 
 Array (Array &&other)
 
virtual ~Array ()=default
 
Arrayoperator= (const Array &other)
 
Arrayoperator= (Array &&other)
 
bool operator== (const Array &other) const
 
bool operator!= (const Array &other) const
 
T const & GetItem (size_t index) const
 
T & GetItem (size_t index)
 
T & operator[] (size_t index)
 
T const & operator[] (size_t index) const
 
size_t GetLength () const
 
T * GetUnderlyingData () const
 

Protected Attributes

size_t m_size
 
Aws::UniqueArrayPtr< T > m_data
 

Detailed Description

template<typename T>
class Aws::Utils::Array< T >

Safe array class with move and copy semantics.

Definition at line 43 of file Array.h.

Constructor & Destructor Documentation

template<typename T>
Aws::Utils::Array< T >::Array ( size_t  arraySize = 0)
inline

Create new empty array of size arraySize. Default argument is 0. If it is empty then no allocation happens.

Definition at line 50 of file Array.h.

template<typename T>
Aws::Utils::Array< T >::Array ( const T *  arrayToCopy,
size_t  arraySize 
)
inline

Create new array and initialize it to a raw array

Definition at line 59 of file Array.h.

template<typename T>
Aws::Utils::Array< T >::Array ( Aws::Vector< Array< T > * > &&  toMerge)
inline

Merge multiple arrays into one

Definition at line 78 of file Array.h.

template<typename T>
Aws::Utils::Array< T >::Array ( const Array< T > &  other)
inline

Definition at line 105 of file Array.h.

template<typename T>
Aws::Utils::Array< T >::Array ( Array< T > &&  other)
inline

Definition at line 123 of file Array.h.

template<typename T>
virtual Aws::Utils::Array< T >::~Array ( )
virtualdefault

Member Function Documentation

template<typename T>
T const& Aws::Utils::Array< T >::GetItem ( size_t  index) const
inline

Definition at line 194 of file Array.h.

template<typename T>
T& Aws::Utils::Array< T >::GetItem ( size_t  index)
inline

Definition at line 200 of file Array.h.

template<typename T>
size_t Aws::Utils::Array< T >::GetLength ( ) const
inline

Definition at line 216 of file Array.h.

template<typename T>
T* Aws::Utils::Array< T >::GetUnderlyingData ( ) const
inline

Definition at line 221 of file Array.h.

template<typename T>
bool Aws::Utils::Array< T >::operator!= ( const Array< T > &  other) const
inline

Definition at line 189 of file Array.h.

template<typename T>
Array& Aws::Utils::Array< T >::operator= ( const Array< T > &  other)
inline

Definition at line 133 of file Array.h.

template<typename T>
Array& Aws::Utils::Array< T >::operator= ( Array< T > &&  other)
inline

Definition at line 157 of file Array.h.

template<typename T>
bool Aws::Utils::Array< T >::operator== ( const Array< T > &  other) const
inline

Definition at line 165 of file Array.h.

template<typename T>
T& Aws::Utils::Array< T >::operator[] ( size_t  index)
inline

Definition at line 206 of file Array.h.

template<typename T>
T const& Aws::Utils::Array< T >::operator[] ( size_t  index) const
inline

Definition at line 211 of file Array.h.

Member Data Documentation

template<typename T>
Aws::UniqueArrayPtr<T> Aws::Utils::Array< T >::m_data
protected

Definition at line 229 of file Array.h.

template<typename T>
size_t Aws::Utils::Array< T >::m_size
protected

Definition at line 227 of file Array.h.


The documentation for this class was generated from the following file: