Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skia_private::STArray< Nreq, T, MEM_MOVE > Class Template Reference

#include <SkTArray.h>

Inheritance diagram for skia_private::STArray< Nreq, T, MEM_MOVE >:
SkAlignedSTStorage< SkContainerAllocator::RoundUp< T >(Nreq), T > skia_private::TArray< T, sk_is_trivially_relocatable_v< T > >

Public Member Functions

 STArray ()
 
 STArray (const T *array, int count)
 
 STArray (SkSpan< const T > data)
 
 STArray (std::initializer_list< T > data)
 
 STArray (int reserveCount)
 
 STArray (const STArray &that)
 
 STArray (const TArray< T, MEM_MOVE > &that)
 
 STArray (STArray &&that)
 
 STArray (TArray< T, MEM_MOVE > &&that)
 
STArrayoperator= (const STArray &that)
 
STArrayoperator= (const TArray< T, MEM_MOVE > &that)
 
STArrayoperator= (STArray &&that)
 
STArrayoperator= (TArray< T, MEM_MOVE > &&that)
 
- Public Member Functions inherited from skia_private::TArray< T, sk_is_trivially_relocatable_v< T > >
 TArray ()
 
 TArray (int reserveCount)
 
 TArray (const TArray &that)
 
 TArray (TArray &&that)
 
 TArray (const T *array, int count)
 
 TArray (SkSpan< const T > data)
 
 TArray (std::initializer_list< T > data)
 
TArrayoperator= (const TArray &that)
 
TArrayoperator= (TArray &&that)
 
 ~TArray ()
 
void reset (int n)
 
void reset (const T *array, int count)
 
void reserve (int n)
 
void reserve_exact (int n)
 
void removeShuffle (int n)
 
bool empty () const
 
Tpush_back ()
 
Tpush_back (const T &t)
 
Tpush_back (T &&t)
 
Templace_back (Args &&... args)
 
Tpush_back_n (int n)
 
Tpush_back_n (int n, const T &t)
 
Tpush_back_n (int n, const T t[])
 
Tmove_back_n (int n, T *t)
 
void pop_back ()
 
void pop_back_n (int n)
 
void resize_back (int newCount)
 
void swap (TArray &that)
 
void move_back (TArray &that)
 
Tbegin ()
 
const Tbegin () const
 
Tend ()
 
const Tend () const
 
Tdata ()
 
const Tdata () const
 
int size () const
 
size_t size_bytes () const
 
void resize (size_t count)
 
void clear ()
 
void shrink_to_fit ()
 
Toperator[] (int i)
 
const Toperator[] (int i) const
 
Tat (int i)
 
const Tat (int i) const
 
Tfront ()
 
const Tfront () const
 
Tback ()
 
const Tback () const
 
TfromBack (int i)
 
const TfromBack (int i) const
 
bool operator== (const TArray< T, MEM_MOVE > &right) const
 
bool operator!= (const TArray< T, MEM_MOVE > &right) const
 
int capacity () const
 

Additional Inherited Members

- Public Types inherited from skia_private::TArray< T, sk_is_trivially_relocatable_v< T > >
using value_type = T
 
- Protected Member Functions inherited from skia_private::TArray< T, sk_is_trivially_relocatable_v< T > >
 TArray (SkAlignedSTStorage< InitialCapacity, T > *storage, int size=0)
 
 TArray (const T *array, int size, SkAlignedSTStorage< InitialCapacity, T > *storage)
 
 TArray (SkSpan< const T > data, SkAlignedSTStorage< InitialCapacity, T > *storage)
 

Detailed Description

template<int Nreq, typename T, bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
class skia_private::STArray< Nreq, T, MEM_MOVE >

Definition at line 753 of file SkTArray.h.

Constructor & Destructor Documentation

◆ STArray() [1/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( )
inline

Definition at line 764 of file SkTArray.h.

765 : Storage{}
766 , TArray<T, MEM_MOVE>(this) {} // Must use () to avoid confusion with initializer_list

◆ STArray() [2/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( const T array,
int  count 
)
inline

Definition at line 769 of file SkTArray.h.

770 : Storage{}
771 , TArray<T, MEM_MOVE>{array, count, this} {}
int count
Definition: FontMgrTest.cpp:50

◆ STArray() [3/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( SkSpan< const T data)
inline

Definition at line 773 of file SkTArray.h.

774 : Storage{}
775 , TArray<T, MEM_MOVE>{data, this} {}

◆ STArray() [4/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( std::initializer_list< T data)
inline

Definition at line 777 of file SkTArray.h.

778 : STArray{data.begin(), SkToInt(data.size())} {}
constexpr int SkToInt(S x)
Definition: SkTo.h:29

◆ STArray() [5/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( int  reserveCount)
inlineexplicit

Definition at line 780 of file SkTArray.h.

781 : STArray() { this->reserve_exact(reserveCount); }

◆ STArray() [6/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( const STArray< Nreq, T, MEM_MOVE > &  that)
inline

Definition at line 783 of file SkTArray.h.

784 : STArray() { *this = that; }

◆ STArray() [7/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( const TArray< T, MEM_MOVE > &  that)
inlineexplicit

Definition at line 786 of file SkTArray.h.

787 : STArray() { *this = that; }

◆ STArray() [8/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( STArray< Nreq, T, MEM_MOVE > &&  that)
inline

Definition at line 789 of file SkTArray.h.

790 : STArray() { *this = std::move(that); }

◆ STArray() [9/9]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
skia_private::STArray< Nreq, T, MEM_MOVE >::STArray ( TArray< T, MEM_MOVE > &&  that)
inlineexplicit

Definition at line 792 of file SkTArray.h.

793 : STArray() { *this = std::move(that); }

Member Function Documentation

◆ operator=() [1/4]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
STArray & skia_private::STArray< Nreq, T, MEM_MOVE >::operator= ( const STArray< Nreq, T, MEM_MOVE > &  that)
inline

Definition at line 795 of file SkTArray.h.

795 {
797 return *this;
798 }
TArray & operator=(const TArray &that)
Definition: SkTArray.h:91

◆ operator=() [2/4]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
STArray & skia_private::STArray< Nreq, T, MEM_MOVE >::operator= ( const TArray< T, MEM_MOVE > &  that)
inline

Definition at line 800 of file SkTArray.h.

800 {
802 return *this;
803 }

◆ operator=() [3/4]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
STArray & skia_private::STArray< Nreq, T, MEM_MOVE >::operator= ( STArray< Nreq, T, MEM_MOVE > &&  that)
inline

Definition at line 805 of file SkTArray.h.

805 {
806 TArray<T, MEM_MOVE>::operator=(std::move(that));
807 return *this;
808 }

◆ operator=() [4/4]

template<int Nreq, typename T , bool MEM_MOVE = sk_is_trivially_relocatable_v<T>>
STArray & skia_private::STArray< Nreq, T, MEM_MOVE >::operator= ( TArray< T, MEM_MOVE > &&  that)
inline

Definition at line 810 of file SkTArray.h.

810 {
811 TArray<T, MEM_MOVE>::operator=(std::move(that));
812 return *this;
813 }

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