QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
hb_array_t< Type > Struct Template Reference

#include <hb-array.hh>

Inheritance diagram for hb_array_t< Type >:
Inheritance graph
[legend]
Collaboration diagram for hb_array_t< Type >:
Collaboration graph
[legend]

Public Types

typedef Type__item_t__
 
- Public Types inherited from hb_iter_t< iter_t, Item >
typedef Item item_t
 

Public Member Functions

 hb_array_t ()=default
 
 hb_array_t (const hb_array_t &)=default
 
 ~hb_array_t ()=default
 
hb_array_toperator= (const hb_array_t &)=default
 
hb_array_toperator= (hb_array_t &&)=default
 
constexpr hb_array_t (std::nullptr_t)
 
constexpr hb_array_t (Type *array_, unsigned int length_)
 
template<unsigned int length_>
constexpr hb_array_t (Type(&array_)[length_])
 
template<typename U , hb_enable_if(hb_is_cr_convertible(U, Type)) >
constexpr hb_array_t (const hb_array_t< U > &o)
 
template<typename U , hb_enable_if(hb_is_cr_convertible(U, Type)) >
hb_array_toperator= (const hb_array_t< U > &o)
 
Type__item_at__ (unsigned i) const
 
void __forward__ (unsigned n)
 
void __rewind__ (unsigned n)
 
unsigned __len__ () const
 
bool operator!= (const hb_array_t &o) const
 
Typeoperator& () const
 
 operator hb_array_t< const Type > ()
 
template<typename T >
 operator T* () const
 
HB_INTERNAL bool operator== (const hb_array_t &o) const
 
uint32_t hash () const
 
int cmp (const hb_array_t &a) const
 
template<typename T >
Typelsearch (const T &x, Type *not_found=nullptr)
 
template<typename T >
const Typelsearch (const T &x, const Type *not_found=nullptr) const
 
template<typename T >
bool lfind (const T &x, unsigned *pos=nullptr, hb_not_found_t not_found=HB_NOT_FOUND_DONT_STORE, unsigned int to_store=(unsigned int) -1) const
 
hb_sorted_array_t< Typeqsort (int(*cmp_)(const void *, const void *))
 
hb_sorted_array_t< Typeqsort ()
 
void qsort (unsigned int start, unsigned int end)
 
unsigned int get_size () const
 
void reverse (unsigned start=0, unsigned end=-1)
 
hb_array_t sub_array (unsigned int start_offset=0, unsigned int *seg_count=nullptr) const
 
hb_array_t sub_array (unsigned int start_offset, unsigned int seg_count) const
 
hb_array_t truncate (unsigned length) const
 
template<typename T , unsigned P = sizeof (Type), hb_enable_if(P==1) >
const Tas () const
 
template<typename T , unsigned P = sizeof (Type), hb_enable_if(P==1) >
bool check_range (const T *p, unsigned int size=T::static_size) const
 
void fini ()
 
template<typename hb_serialize_context_t >
hb_array_t copy (hb_serialize_context_t *c) const
 
template<typename hb_sanitize_context_t >
bool sanitize (hb_sanitize_context_t *c) const
 
uint32_t hash () const
 
- Public Member Functions inherited from hb_iter_t< iter_t, Item >
constexpr unsigned get_item_size () const
 
iter_t iter () const
 
iter_t operator+ () const
 
iter_t begin () const
 
iter_t end () const
 
 operator bool () const
 
unsigned len () const
 
template<typename T = item_t, hb_enable_if(std::is_reference< T >::value) >
hb_remove_reference< item_t > * operator-> () const
 
item_t operator* () const
 
item_t operator* ()
 
item_t operator[] (unsigned i) const
 
item_t operator[] (unsigned i)
 
iter_t & operator+= (unsigned count) &
 
iter_t operator+= (unsigned count) &&
 
iter_t & operator++ () &
 
iter_t operator++ () &&
 
iter_t & operator-= (unsigned count) &
 
iter_t operator-= (unsigned count) &&
 
iter_t & operator-- () &
 
iter_t operator-- () &&
 
iter_t operator+ (unsigned count) const
 
iter_t operator++ (int)
 
iter_t operator- (unsigned count) const
 
iter_t operator-- (int)
 
template<typename T >
iter_t & operator>> (T &v) &
 
template<typename T >
iter_t operator>> (T &v) &&
 
template<typename T >
iter_t & operator<< (const T v) &
 
template<typename T >
iter_t operator<< (const T v) &&
 
- Public Member Functions inherited from hb_iter_fallback_mixin_t< iter_t, item_t >
item_t __item__ () const
 
item_t __item_at__ (unsigned i) const
 
bool __more__ () const
 
unsigned __len__ () const
 
void __next__ ()
 
void __forward__ (unsigned n)
 
void __prev__ ()
 
void __rewind__ (unsigned n)
 
iter_t __end__ () const
 

Static Public Member Functions

static HB_INTERNAL int cmp (const void *pa, const void *pb)
 

Public Attributes

TypearrayZ = nullptr
 
unsigned int length = 0
 
unsigned int backwards_length = 0
 

Static Public Attributes

static constexpr bool is_random_access_iterator = true
 
- Static Public Attributes inherited from hb_iter_t< iter_t, Item >
static constexpr bool is_iterator = true
 
static constexpr bool is_random_access_iterator = false
 
static constexpr bool is_sorted_iterator = false
 

Additional Inherited Members

- Protected Member Functions inherited from hb_iter_with_fallback_t< hb_array_t< Type >, Type & >
 hb_iter_with_fallback_t ()=default
 
 hb_iter_with_fallback_t (const hb_iter_with_fallback_t &o HB_UNUSED)=default
 
 hb_iter_with_fallback_t (hb_iter_with_fallback_t &&o HB_UNUSED)=default
 
hb_iter_with_fallback_toperator= (const hb_iter_with_fallback_t &o HB_UNUSED)=default
 
hb_iter_with_fallback_toperator= (hb_iter_with_fallback_t &&o HB_UNUSED)=default
 
- Protected Member Functions inherited from hb_iter_t< iter_t, Item >
 hb_iter_t ()=default
 
 hb_iter_t (const hb_iter_t &o HB_UNUSED)=default
 
 hb_iter_t (hb_iter_t &&o HB_UNUSED)=default
 
hb_iter_toperator= (const hb_iter_t &o HB_UNUSED)=default
 
hb_iter_toperator= (hb_iter_t &&o HB_UNUSED)=default
 
- Protected Member Functions inherited from hb_iter_fallback_mixin_t< iter_t, item_t >
 hb_iter_fallback_mixin_t ()=default
 
 hb_iter_fallback_mixin_t (const hb_iter_fallback_mixin_t &o HB_UNUSED)=default
 
 hb_iter_fallback_mixin_t (hb_iter_fallback_mixin_t &&o HB_UNUSED)=default
 
hb_iter_fallback_mixin_toperator= (const hb_iter_fallback_mixin_t &o HB_UNUSED)=default
 
hb_iter_fallback_mixin_toperator= (hb_iter_fallback_mixin_t &&o HB_UNUSED)=default
 

Detailed Description

template<typename Type>
struct hb_array_t< Type >

Definition at line 48 of file hb-array.hh.

Member Typedef Documentation

◆ __item_t__

template<typename Type >
typedef Type& hb_array_t< Type >::__item_t__

Definition at line 77 of file hb-array.hh.

Constructor & Destructor Documentation

◆ hb_array_t() [1/6]

template<typename Type >
hb_array_t< Type >::hb_array_t ( )
default
Here is the caller graph for this function:

◆ hb_array_t() [2/6]

template<typename Type >
hb_array_t< Type >::hb_array_t ( const hb_array_t< Type > &  )
default

◆ ~hb_array_t()

template<typename Type >
hb_array_t< Type >::~hb_array_t ( )
default

◆ hb_array_t() [3/6]

template<typename Type >
constexpr hb_array_t< Type >::hb_array_t ( std::nullptr_t  )
inlineconstexpr

Definition at line 59 of file hb-array.hh.

◆ hb_array_t() [4/6]

template<typename Type >
constexpr hb_array_t< Type >::hb_array_t ( Type array_,
unsigned int  length_ 
)
inlineconstexpr

Definition at line 60 of file hb-array.hh.

◆ hb_array_t() [5/6]

template<typename Type >
template<unsigned int length_>
constexpr hb_array_t< Type >::hb_array_t ( Type(&)  array_[length_])
inlineconstexpr

Definition at line 62 of file hb-array.hh.

◆ hb_array_t() [6/6]

template<typename Type >
template<typename U , hb_enable_if(hb_is_cr_convertible(U, Type)) >
constexpr hb_array_t< Type >::hb_array_t ( const hb_array_t< U > &  o)
inlineconstexpr

Definition at line 66 of file hb-array.hh.

Member Function Documentation

◆ __forward__()

template<typename Type >
void hb_array_t< Type >::__forward__ ( unsigned  n)
inline

Definition at line 84 of file hb-array.hh.

◆ __item_at__()

template<typename Type >
Type& hb_array_t< Type >::__item_at__ ( unsigned  i) const
inline

Definition at line 79 of file hb-array.hh.

◆ __len__()

template<typename Type >
unsigned hb_array_t< Type >::__len__ ( ) const
inline

Definition at line 100 of file hb-array.hh.

◆ __rewind__()

template<typename Type >
void hb_array_t< Type >::__rewind__ ( unsigned  n)
inline

Definition at line 92 of file hb-array.hh.

◆ as()

template<typename Type >
template<typename T , unsigned P = sizeof (Type), hb_enable_if(P==1) >
const T* hb_array_t< Type >::as ( ) const
inline

Definition at line 253 of file hb-array.hh.

Here is the caller graph for this function:

◆ check_range()

template<typename Type >
template<typename T , unsigned P = sizeof (Type), hb_enable_if(P==1) >
bool hb_array_t< Type >::check_range ( const T p,
unsigned int  size = T::static_size 
) const
inline

Definition at line 259 of file hb-array.hh.

Here is the caller graph for this function:

◆ cmp() [1/2]

template<typename Type >
int hb_array_t< Type >::cmp ( const hb_array_t< Type > &  a) const
inline

Definition at line 130 of file hb-array.hh.

Here is the caller graph for this function:

◆ cmp() [2/2]

template<typename Type >
static HB_INTERNAL int hb_array_t< Type >::cmp ( const void pa,
const void pb 
)
inlinestatic

Definition at line 136 of file hb-array.hh.

◆ copy()

template<typename Type >
template<typename hb_serialize_context_t >
hb_array_t hb_array_t< Type >::copy ( hb_serialize_context_t c) const
inline

Definition at line 271 of file hb-array.hh.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fini()

template<typename Type >
void hb_array_t< Type >::fini ( )
inline

Definition at line 267 of file hb-array.hh.

Here is the caller graph for this function:

◆ get_size()

template<typename Type >
unsigned int hb_array_t< Type >::get_size ( ) const
inline

Definition at line 211 of file hb-array.hh.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash() [1/2]

template<typename Type >
uint32_t hb_array_t< Type >::hash ( ) const
inline

Definition at line 117 of file hb-array.hh.

Here is the caller graph for this function:

◆ hash() [2/2]

uint32_t hb_array_t< const unsigned char >::hash ( ) const
inline

Definition at line 426 of file hb-array.hh.

Here is the caller graph for this function:

◆ lfind()

template<typename Type >
template<typename T >
bool hb_array_t< Type >::lfind ( const T x,
unsigned *  pos = nullptr,
hb_not_found_t  not_found = HB_NOT_FOUND_DONT_STORE,
unsigned int  to_store = (unsigned int) -1 
) const
inline

Definition at line 156 of file hb-array.hh.

Here is the caller graph for this function:

◆ lsearch() [1/2]

template<typename Type >
template<typename T >
const Type* hb_array_t< Type >::lsearch ( const T x,
const Type not_found = nullptr 
) const
inline

Definition at line 150 of file hb-array.hh.

Here is the call graph for this function:

◆ lsearch() [2/2]

template<typename Type >
template<typename T >
Type* hb_array_t< Type >::lsearch ( const T x,
Type not_found = nullptr 
)
inline

Definition at line 144 of file hb-array.hh.

Here is the call graph for this function:

◆ operator hb_array_t< const Type >()

template<typename Type >
hb_array_t< Type >::operator hb_array_t< const Type > ( )
inline

Definition at line 112 of file hb-array.hh.

◆ operator T*()

template<typename Type >
template<typename T >
hb_array_t< Type >::operator T* ( ) const
inline

Definition at line 113 of file hb-array.hh.

◆ operator!=()

template<typename Type >
bool hb_array_t< Type >::operator!= ( const hb_array_t< Type > &  o) const
inline

Definition at line 106 of file hb-array.hh.

◆ operator&()

template<typename Type >
Type* hb_array_t< Type >::operator& ( ) const
inline

Definition at line 111 of file hb-array.hh.

◆ operator=() [1/3]

template<typename Type >
hb_array_t& hb_array_t< Type >::operator= ( const hb_array_t< Type > &  )
default

◆ operator=() [2/3]

template<typename Type >
template<typename U , hb_enable_if(hb_is_cr_convertible(U, Type)) >
hb_array_t& hb_array_t< Type >::operator= ( const hb_array_t< U > &  o)
inline

Definition at line 71 of file hb-array.hh.

◆ operator=() [3/3]

template<typename Type >
hb_array_t& hb_array_t< Type >::operator= ( hb_array_t< Type > &&  )
default

◆ operator==()

template<typename Type >
HB_INTERNAL bool hb_array_t< Type >::operator== ( const hb_array_t< Type > &  o) const

◆ qsort() [1/3]

template<typename Type >
hb_sorted_array_t<Type> hb_array_t< Type >::qsort ( )
inline

Definition at line 193 of file hb-array.hh.

◆ qsort() [2/3]

template<typename Type >
hb_sorted_array_t<Type> hb_array_t< Type >::qsort ( int(*)(const void *, const void *)  cmp_)
inline

Definition at line 187 of file hb-array.hh.

Here is the caller graph for this function:

◆ qsort() [3/3]

template<typename Type >
void hb_array_t< Type >::qsort ( unsigned int  start,
unsigned int  end 
)
inline

Definition at line 199 of file hb-array.hh.

◆ reverse()

template<typename Type >
void hb_array_t< Type >::reverse ( unsigned  start = 0,
unsigned  end = -1 
)
inline

Definition at line 216 of file hb-array.hh.

Here is the caller graph for this function:

◆ sanitize()

template<typename Type >
template<typename hb_sanitize_context_t >
bool hb_array_t< Type >::sanitize ( hb_sanitize_context_t c) const
inline

Definition at line 282 of file hb-array.hh.

Here is the caller graph for this function:

◆ sub_array() [1/2]

template<typename Type >
hb_array_t hb_array_t< Type >::sub_array ( unsigned int  start_offset,
unsigned int  seg_count 
) const
inline

Definition at line 245 of file hb-array.hh.

Here is the call graph for this function:

◆ sub_array() [2/2]

template<typename Type >
hb_array_t hb_array_t< Type >::sub_array ( unsigned int  start_offset = 0,
unsigned int *  seg_count = nullptr 
) const
inline

Definition at line 231 of file hb-array.hh.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ truncate()

template<typename Type >
hb_array_t hb_array_t< Type >::truncate ( unsigned  length) const
inline

Definition at line 248 of file hb-array.hh.

Here is the call graph for this function:

Member Data Documentation

◆ arrayZ

template<typename Type >
Type* hb_array_t< Type >::arrayZ = nullptr

Definition at line 290 of file hb-array.hh.

◆ backwards_length

template<typename Type >
unsigned int hb_array_t< Type >::backwards_length = 0

Definition at line 292 of file hb-array.hh.

◆ is_random_access_iterator

template<typename Type >
constexpr bool hb_array_t< Type >::is_random_access_iterator = true
staticconstexpr

Definition at line 78 of file hb-array.hh.

◆ length

template<typename Type >
unsigned int hb_array_t< Type >::length = 0

Definition at line 291 of file hb-array.hh.


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