Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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, MEM_MOVE >

Public Member Functions

 STArray ()
 
 STArray (const T *array, int count)
 
 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, MEM_MOVE >
 TArray ()
 
 TArray (int reserveCount)
 
 TArray (const TArray &that)
 
 TArray (TArray &&that)
 
 TArray (const T *array, int count)
 
 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)
 
template<typename... Args>
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, MEM_MOVE >
using value_type = T
 
- Protected Member Functions inherited from skia_private::TArray< T, MEM_MOVE >
template<int InitialCapacity>
 TArray (SkAlignedSTStorage< InitialCapacity, T > *storage, int size=0)
 
template<int InitialCapacity>
 TArray (const T *array, int size, 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 743 of file SkTArray.h.

Constructor & Destructor Documentation

◆ STArray() [1/8]

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 754 of file SkTArray.h.

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

◆ STArray() [2/8]

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 759 of file SkTArray.h.

760 : Storage{}
761 , TArray<T, MEM_MOVE>{array, count, this} {}
int count

◆ STArray() [3/8]

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 763 of file SkTArray.h.

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

◆ STArray() [4/8]

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 766 of file SkTArray.h.

767 : STArray() { this->reserve_exact(reserveCount); }
void reserve_exact(int n)
Definition SkTArray.h:176

◆ STArray() [5/8]

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 769 of file SkTArray.h.

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

◆ STArray() [6/8]

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 772 of file SkTArray.h.

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

◆ STArray() [7/8]

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 775 of file SkTArray.h.

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

◆ STArray() [8/8]

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 778 of file SkTArray.h.

779 : 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 781 of file SkTArray.h.

781 {
783 return *this;
784 }
TArray & operator=(const TArray &that)
Definition SkTArray.h:86

◆ 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 786 of file SkTArray.h.

786 {
788 return *this;
789 }

◆ 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 791 of file SkTArray.h.

791 {
792 TArray<T, MEM_MOVE>::operator=(std::move(that));
793 return *this;
794 }

◆ 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 796 of file SkTArray.h.

796 {
797 TArray<T, MEM_MOVE>::operator=(std::move(that));
798 return *this;
799 }

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