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

#include <Array.h>

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 33 of file Array.h.

Constructor & Destructor Documentation

◆ Array() [1/5]

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 40 of file Array.h.

◆ Array() [2/5]

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 49 of file Array.h.

◆ Array() [3/5]

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

Merge multiple arrays into one

Definition at line 68 of file Array.h.

◆ Array() [4/5]

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

Definition at line 95 of file Array.h.

◆ Array() [5/5]

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

Definition at line 113 of file Array.h.

◆ ~Array()

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

Member Function Documentation

◆ GetItem() [1/2]

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

Definition at line 190 of file Array.h.

◆ GetItem() [2/2]

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

Definition at line 184 of file Array.h.

◆ GetLength()

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

Definition at line 206 of file Array.h.

◆ GetUnderlyingData()

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

Definition at line 211 of file Array.h.

◆ operator!=()

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

Definition at line 179 of file Array.h.

◆ operator=() [1/2]

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

Definition at line 147 of file Array.h.

◆ operator=() [2/2]

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

Definition at line 123 of file Array.h.

◆ operator==()

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

Definition at line 155 of file Array.h.

◆ operator[]() [1/2]

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

Definition at line 196 of file Array.h.

◆ operator[]() [2/2]

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

Definition at line 201 of file Array.h.

Member Data Documentation

◆ m_data

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

Definition at line 219 of file Array.h.

◆ m_size

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

Definition at line 217 of file Array.h.


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