webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Friends | List of all members
rtc::BufferT< T > Class Template Reference

#include <buffer.h>

Inheritance diagram for rtc::BufferT< T >:
rtc::RefCountedObject< rtc::BufferT > rtc::RefCountedObject< rtc::BufferT >

Public Member Functions

 BufferT ()
 
 BufferT (const BufferT &)=delete
 
BufferToperator= (const BufferT &)=delete
 
 BufferT (BufferT &&buf)
 
 BufferT (size_t size)
 
 BufferT (size_t size, size_t capacity)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
 BufferT (const U *data, size_t size)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
 BufferT (U *data, size_t size, size_t capacity)
 
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
 BufferT (U(&array)[N])
 
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
const U * data () const
 
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
U * data ()
 
bool empty () const
 
size_t size () const
 
size_t capacity () const
 
BufferToperator= (BufferT &&buf)
 
bool operator== (const BufferT &buf) const
 
bool operator!= (const BufferT &buf) const
 
Toperator[] (size_t index)
 
T operator[] (size_t index) const
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void SetData (const U *data, size_t size)
 
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void SetData (const U(&array)[N])
 
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void SetData (const W &w)
 
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t SetData (size_t max_elements, F &&setter)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void AppendData (const U *data, size_t size)
 
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void AppendData (const U(&array)[N])
 
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void AppendData (const W &w)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void AppendData (const U &item)
 
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t AppendData (size_t max_elements, F &&setter)
 
void SetSize (size_t size)
 
void EnsureCapacity (size_t capacity)
 
void Clear ()
 
 BufferT ()
 
 BufferT (const BufferT &)=delete
 
BufferToperator= (const BufferT &)=delete
 
 BufferT (BufferT &&buf)
 
 BufferT (size_t size)
 
 BufferT (size_t size, size_t capacity)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
 BufferT (const U *data, size_t size)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
 BufferT (U *data, size_t size, size_t capacity)
 
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
 BufferT (U(&array)[N])
 
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
const U * data () const
 
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
U * data ()
 
bool empty () const
 
size_t size () const
 
size_t capacity () const
 
BufferToperator= (BufferT &&buf)
 
bool operator== (const BufferT &buf) const
 
bool operator!= (const BufferT &buf) const
 
Toperator[] (size_t index)
 
T operator[] (size_t index) const
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void SetData (const U *data, size_t size)
 
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void SetData (const U(&array)[N])
 
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void SetData (const W &w)
 
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t SetData (size_t max_elements, F &&setter)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void AppendData (const U *data, size_t size)
 
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void AppendData (const U(&array)[N])
 
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void AppendData (const W &w)
 
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void AppendData (const U &item)
 
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t AppendData (size_t max_elements, F &&setter)
 
void SetSize (size_t size)
 
void EnsureCapacity (size_t capacity)
 
void Clear ()
 

Friends

void swap (BufferT &a, BufferT &b)
 
void swap (BufferT &a, BufferT &b)
 

Constructor & Destructor Documentation

◆ BufferT() [1/16]

template<typename T>
rtc::BufferT< T >::BufferT ( )
inline

◆ BufferT() [2/16]

template<typename T>
rtc::BufferT< T >::BufferT ( const BufferT< T > &  )
delete

◆ BufferT() [3/16]

template<typename T>
rtc::BufferT< T >::BufferT ( BufferT< T > &&  buf)
inline

◆ BufferT() [4/16]

template<typename T>
rtc::BufferT< T >::BufferT ( size_t  size)
inlineexplicit

◆ BufferT() [5/16]

template<typename T>
rtc::BufferT< T >::BufferT ( size_t  size,
size_t  capacity 
)
inline

◆ BufferT() [6/16]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
rtc::BufferT< T >::BufferT ( const U *  data,
size_t  size 
)
inline

◆ BufferT() [7/16]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
rtc::BufferT< T >::BufferT ( U *  data,
size_t  size,
size_t  capacity 
)
inline

◆ BufferT() [8/16]

template<typename T>
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
rtc::BufferT< T >::BufferT ( U(&)  array[N])
inline

◆ BufferT() [9/16]

template<typename T>
rtc::BufferT< T >::BufferT ( )
inline

◆ BufferT() [10/16]

template<typename T>
rtc::BufferT< T >::BufferT ( const BufferT< T > &  )
delete

◆ BufferT() [11/16]

template<typename T>
rtc::BufferT< T >::BufferT ( BufferT< T > &&  buf)
inline

◆ BufferT() [12/16]

template<typename T>
rtc::BufferT< T >::BufferT ( size_t  size)
inlineexplicit

◆ BufferT() [13/16]

template<typename T>
rtc::BufferT< T >::BufferT ( size_t  size,
size_t  capacity 
)
inline

◆ BufferT() [14/16]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
rtc::BufferT< T >::BufferT ( const U *  data,
size_t  size 
)
inline

◆ BufferT() [15/16]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
rtc::BufferT< T >::BufferT ( U *  data,
size_t  size,
size_t  capacity 
)
inline

◆ BufferT() [16/16]

template<typename T>
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
rtc::BufferT< T >::BufferT ( U(&)  array[N])
inline

Member Function Documentation

◆ AppendData() [1/10]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const U *  data,
size_t  size 
)
inline

◆ AppendData() [2/10]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const U *  data,
size_t  size 
)
inline

◆ AppendData() [3/10]

template<typename T>
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const U(&)  array[N])
inline

◆ AppendData() [4/10]

template<typename T>
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const U(&)  array[N])
inline

◆ AppendData() [5/10]

template<typename T>
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const W &  w)
inline

◆ AppendData() [6/10]

template<typename T>
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const W &  w)
inline

◆ AppendData() [7/10]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const U &  item)
inline

◆ AppendData() [8/10]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::AppendData ( const U &  item)
inline

◆ AppendData() [9/10]

template<typename T>
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t rtc::BufferT< T >::AppendData ( size_t  max_elements,
F &&  setter 
)
inline

◆ AppendData() [10/10]

template<typename T>
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t rtc::BufferT< T >::AppendData ( size_t  max_elements,
F &&  setter 
)
inline

◆ capacity() [1/2]

template<typename T>
size_t rtc::BufferT< T >::capacity ( ) const
inline

◆ capacity() [2/2]

template<typename T>
size_t rtc::BufferT< T >::capacity ( ) const
inline

◆ Clear() [1/2]

template<typename T>
void rtc::BufferT< T >::Clear ( )
inline

◆ Clear() [2/2]

template<typename T>
void rtc::BufferT< T >::Clear ( )
inline

◆ data() [1/4]

template<typename T>
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
const U* rtc::BufferT< T >::data ( ) const
inline

◆ data() [2/4]

template<typename T>
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
const U* rtc::BufferT< T >::data ( ) const
inline

◆ data() [3/4]

template<typename T>
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
U* rtc::BufferT< T >::data ( )
inline

◆ data() [4/4]

template<typename T>
template<typename U = T, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
U* rtc::BufferT< T >::data ( )
inline

◆ empty() [1/2]

template<typename T>
bool rtc::BufferT< T >::empty ( ) const
inline

◆ empty() [2/2]

template<typename T>
bool rtc::BufferT< T >::empty ( ) const
inline

◆ EnsureCapacity() [1/2]

template<typename T>
void rtc::BufferT< T >::EnsureCapacity ( size_t  capacity)
inline

◆ EnsureCapacity() [2/2]

template<typename T>
void rtc::BufferT< T >::EnsureCapacity ( size_t  capacity)
inline

◆ operator!=() [1/2]

template<typename T>
bool rtc::BufferT< T >::operator!= ( const BufferT< T > &  buf) const
inline

◆ operator!=() [2/2]

template<typename T>
bool rtc::BufferT< T >::operator!= ( const BufferT< T > &  buf) const
inline

◆ operator=() [1/4]

template<typename T>
BufferT& rtc::BufferT< T >::operator= ( const BufferT< T > &  )
delete

◆ operator=() [2/4]

template<typename T>
BufferT& rtc::BufferT< T >::operator= ( const BufferT< T > &  )
delete

◆ operator=() [3/4]

template<typename T>
BufferT& rtc::BufferT< T >::operator= ( BufferT< T > &&  buf)
inline

◆ operator=() [4/4]

template<typename T>
BufferT& rtc::BufferT< T >::operator= ( BufferT< T > &&  buf)
inline

◆ operator==() [1/2]

template<typename T>
bool rtc::BufferT< T >::operator== ( const BufferT< T > &  buf) const
inline

◆ operator==() [2/2]

template<typename T>
bool rtc::BufferT< T >::operator== ( const BufferT< T > &  buf) const
inline

◆ operator[]() [1/4]

template<typename T>
T& rtc::BufferT< T >::operator[] ( size_t  index)
inline

◆ operator[]() [2/4]

template<typename T>
T& rtc::BufferT< T >::operator[] ( size_t  index)
inline

◆ operator[]() [3/4]

template<typename T>
T rtc::BufferT< T >::operator[] ( size_t  index) const
inline

◆ operator[]() [4/4]

template<typename T>
T rtc::BufferT< T >::operator[] ( size_t  index) const
inline

◆ SetData() [1/8]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::SetData ( const U *  data,
size_t  size 
)
inline

◆ SetData() [2/8]

template<typename T>
template<typename U , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::SetData ( const U *  data,
size_t  size 
)
inline

◆ SetData() [3/8]

template<typename T>
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::SetData ( const U(&)  array[N])
inline

◆ SetData() [4/8]

template<typename T>
template<typename U , size_t N, typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
void rtc::BufferT< T >::SetData ( const U(&)  array[N])
inline

◆ SetData() [5/8]

template<typename T>
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void rtc::BufferT< T >::SetData ( const W &  w)
inline

◆ SetData() [6/8]

template<typename T>
template<typename W , typename std::enable_if< HasDataAndSize< const W, const T >::value >::type * = nullptr>
void rtc::BufferT< T >::SetData ( const W &  w)
inline

◆ SetData() [7/8]

template<typename T>
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t rtc::BufferT< T >::SetData ( size_t  max_elements,
F &&  setter 
)
inline

◆ SetData() [8/8]

template<typename T>
template<typename U = T, typename F , typename std::enable_if< internal::BufferCompat< T, U >::value >::type * = nullptr>
size_t rtc::BufferT< T >::SetData ( size_t  max_elements,
F &&  setter 
)
inline

◆ SetSize() [1/2]

template<typename T>
void rtc::BufferT< T >::SetSize ( size_t  size)
inline

◆ SetSize() [2/2]

template<typename T>
void rtc::BufferT< T >::SetSize ( size_t  size)
inline

◆ size() [1/2]

template<typename T>
size_t rtc::BufferT< T >::size ( ) const
inline

◆ size() [2/2]

template<typename T>
size_t rtc::BufferT< T >::size ( ) const
inline

Friends And Related Function Documentation

◆ swap [1/2]

template<typename T>
void swap ( BufferT< T > &  a,
BufferT< T > &  b 
)
friend

◆ swap [2/2]

template<typename T>
void swap ( BufferT< T > &  a,
BufferT< T > &  b 
)
friend

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