KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args > Struct Template Reference

#include <KDStlContainerAdaptor.h>

Inheritance diagram for KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >:
Inheritance graph
[legend]
Collaboration diagram for KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >:
Collaboration graph
[legend]

Public Types

using base_container = std::vector< T, Args... >
 
using base_size_type = typename base_container::size_type
 
using size_type = int
 
using value_type = typename base_container::value_type
 

Public Member Functions

 StdVectorAdaptor ()=default
 
 StdVectorAdaptor (const StdVectorAdaptor &)=default
 
 StdVectorAdaptor (size_type count)
 
 StdVectorAdaptor (size_type count, const value_type &v)
 
 StdVectorAdaptor (StdVectorAdaptor &&)=default
 
 ~StdVectorAdaptor ()=default
 
void append (const StdVectorAdaptor &other)
 
void append (const value_type &v)
 
void append (value_type &&v)
 
StdVectorAdaptorassignFrom (const StdVectorAdaptor &other)
 
StdVectorAdaptorassignFrom (StdVectorAdaptor &&other)
 
decltype(auto) at (size_type i) const
 
decltype(auto) capacity () const
 
StdVectorAdaptor clone () const
 
decltype(auto) constBegin () const
 
decltype(auto) constData () const
 
decltype(auto) constEnd () const
 
decltype(auto) constFirst () const
 
decltype(auto) constLast () const
 
template<typename AT >
bool contains (const AT &v) const
 
decltype(auto) count () const
 
template<typename AT >
bool endsWith (const AT &v) const
 
StdVectorAdaptorfill (const value_type &v, size_type i=-1)
 
decltype(auto) first ()
 
decltype(auto) first () const
 
template<typename AT >
size_type indexOf (const AT &v, size_type from=0) const
 
decltype(auto) insert (size_type position, const value_type &v)
 
decltype(auto) insert (size_type position, value_type &&v)
 
decltype(auto) isEmpty () const
 
decltype(auto) last ()
 
decltype(auto) last () const
 
template<typename AT >
size_type lastIndexOf (const AT &v, size_type from=-1) const
 
decltype(auto) length () const
 
StdVectorAdaptor mid (size_type pos, size_type len=-1)
 
void move (size_type from, size_type to)
 
template<typename AT >
decltype(auto) operator+ (const StdVectorAdaptor< AT > &rhs)
 
decltype(auto) operator+= (const StdVectorAdaptor &other)
 
template<typename AT >
decltype(auto) operator<< (const StdVectorAdaptor< AT > &rhs)
 
template<typename AT >
decltype(auto) operator<< (const typename StdVectorAdaptor< AT >::value_type &v)
 
template<typename AT >
decltype(auto) operator<< (typename StdVectorAdaptor< AT >::value_type &&v)
 
StdVectorAdaptoroperator= (const StdVectorAdaptor &)=default
 
StdVectorAdaptoroperator= (StdVectorAdaptor &&)=default
 
decltype(auto) operator[] (size_type i)
 
decltype(auto) operator[] (size_type i) const
 
void prepend (const value_type &v)
 
void prepend (value_type &&v)
 
void remove (size_type position)
 
void remove (size_type position, size_type count)
 
template<typename AT >
decltype(auto) removeAll (const AT &v)
 
void removeAt (size_type position)
 
void removeFirst ()
 
void removeLast ()
 
template<typename AT >
bool removeOne (const AT &v)
 
void replace (size_type pos, const value_type &v)
 
void reserve (size_type s)
 
decltype(auto) size () const
 
void squeeze ()
 
template<typename AT >
bool startsWith (const AT &v) const
 
void swapItemsAt (size_type i, size_type j)
 
decltype(auto) takeAt (size_type i)
 
decltype(auto) takeFirst ()
 
decltype(auto) takeLast ()
 
auto value (size_type i) const
 
auto value (size_type i, const T &defaultValue) const
 

Detailed Description

template<typename T, typename... Args>
struct KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >

Definition at line 42 of file KDStlContainerAdaptor.h.

Member Typedef Documentation

◆ base_container

template<typename T , typename... Args>
using KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::base_container = std::vector<T, Args...>

Definition at line 44 of file KDStlContainerAdaptor.h.

◆ base_size_type

template<typename T , typename... Args>
using KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::base_size_type = typename base_container::size_type

Definition at line 45 of file KDStlContainerAdaptor.h.

◆ size_type

template<typename T , typename... Args>
using KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::size_type = int

Definition at line 46 of file KDStlContainerAdaptor.h.

◆ value_type

template<typename T , typename... Args>
using KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::value_type = typename base_container::value_type

Definition at line 47 of file KDStlContainerAdaptor.h.

Constructor & Destructor Documentation

◆ StdVectorAdaptor() [1/5]

template<typename T , typename... Args>
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::StdVectorAdaptor ( )
default

◆ StdVectorAdaptor() [2/5]

template<typename T , typename... Args>
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::StdVectorAdaptor ( size_type  count)
inlineexplicit

Definition at line 54 of file KDStlContainerAdaptor.h.

◆ StdVectorAdaptor() [3/5]

template<typename T , typename... Args>
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::StdVectorAdaptor ( size_type  count,
const value_type v 
)
inline

Definition at line 58 of file KDStlContainerAdaptor.h.

◆ StdVectorAdaptor() [4/5]

template<typename T , typename... Args>
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::StdVectorAdaptor ( const StdVectorAdaptor< T, Args > &  )
default

◆ StdVectorAdaptor() [5/5]

template<typename T , typename... Args>
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::StdVectorAdaptor ( StdVectorAdaptor< T, Args > &&  )
default

◆ ~StdVectorAdaptor()

template<typename T , typename... Args>
KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::~StdVectorAdaptor ( )
default

Member Function Documentation

◆ append() [1/3]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::append ( const StdVectorAdaptor< T, Args > &  other)
inline

◆ append() [2/3]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::append ( const value_type v)
inline

◆ append() [3/3]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::append ( value_type &&  v)
inline

Definition at line 191 of file KDStlContainerAdaptor.h.

◆ assignFrom() [1/2]

template<typename T , typename... Args>
StdVectorAdaptor & KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::assignFrom ( const StdVectorAdaptor< T, Args > &  other)
inline

Definition at line 79 of file KDStlContainerAdaptor.h.

◆ assignFrom() [2/2]

template<typename T , typename... Args>
StdVectorAdaptor & KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::assignFrom ( StdVectorAdaptor< T, Args > &&  other)
inline

Definition at line 83 of file KDStlContainerAdaptor.h.

◆ at()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::at ( size_type  i) const
inline

◆ capacity()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::capacity ( ) const
inline

Definition at line 172 of file KDStlContainerAdaptor.h.

◆ clone()

template<typename T , typename... Args>
StdVectorAdaptor KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::clone ( ) const
inline

Definition at line 74 of file KDStlContainerAdaptor.h.

◆ constBegin()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::constBegin ( ) const
inline

Definition at line 89 of file KDStlContainerAdaptor.h.

◆ constData()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::constData ( ) const
inline

Definition at line 99 of file KDStlContainerAdaptor.h.

◆ constEnd()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::constEnd ( ) const
inline

Definition at line 93 of file KDStlContainerAdaptor.h.

◆ constFirst()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::constFirst ( ) const
inline

◆ constLast()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::constLast ( ) const
inline

Definition at line 150 of file KDStlContainerAdaptor.h.

◆ contains()

template<typename T , typename... Args>
template<typename AT >
bool KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::contains ( const AT &  v) const
inline

◆ count()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::count ( ) const
inline

◆ endsWith()

template<typename T , typename... Args>
template<typename AT >
bool KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::endsWith ( const AT &  v) const
inline

Definition at line 338 of file KDStlContainerAdaptor.h.

◆ fill()

template<typename T , typename... Args>
StdVectorAdaptor & KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::fill ( const value_type v,
size_type  i = -1 
)
inline

◆ first() [1/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::first ( )
inline

◆ first() [2/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::first ( ) const
inline

Definition at line 133 of file KDStlContainerAdaptor.h.

◆ indexOf()

template<typename T , typename... Args>
template<typename AT >
size_type KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::indexOf ( const AT &  v,
size_type  from = 0 
) const
inline

◆ insert() [1/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::insert ( size_type  position,
const value_type v 
)
inline

◆ insert() [2/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::insert ( size_type  position,
value_type &&  v 
)
inline

◆ isEmpty()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::isEmpty ( ) const
inline

◆ last() [1/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::last ( )
inline

Definition at line 142 of file KDStlContainerAdaptor.h.

◆ last() [2/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::last ( ) const
inline

Definition at line 146 of file KDStlContainerAdaptor.h.

◆ lastIndexOf()

template<typename T , typename... Args>
template<typename AT >
size_type KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::lastIndexOf ( const AT &  v,
size_type  from = -1 
) const
inline

◆ length()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::length ( ) const
inline

◆ mid()

template<typename T , typename... Args>
StdVectorAdaptor KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::mid ( size_type  pos,
size_type  len = -1 
)
inline

◆ move()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::move ( size_type  from,
size_type  to 
)
inline

Definition at line 366 of file KDStlContainerAdaptor.h.

◆ operator+()

template<typename T , typename... Args>
template<typename AT >
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator+ ( const StdVectorAdaptor< AT > &  rhs)
inline

◆ operator+=()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator+= ( const StdVectorAdaptor< T, Args > &  other)
inline

◆ operator<<() [1/3]

template<typename T , typename... Args>
template<typename AT >
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator<< ( const StdVectorAdaptor< AT > &  rhs)
inline

◆ operator<<() [2/3]

template<typename T , typename... Args>
template<typename AT >
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator<< ( const typename StdVectorAdaptor< AT >::value_type v)
inline

Definition at line 388 of file KDStlContainerAdaptor.h.

◆ operator<<() [3/3]

template<typename T , typename... Args>
template<typename AT >
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator<< ( typename StdVectorAdaptor< AT >::value_type &&  v)
inline

Definition at line 394 of file KDStlContainerAdaptor.h.

◆ operator=() [1/2]

template<typename T , typename... Args>
StdVectorAdaptor & KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator= ( const StdVectorAdaptor< T, Args > &  )
default

◆ operator=() [2/2]

template<typename T , typename... Args>
StdVectorAdaptor & KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator= ( StdVectorAdaptor< T, Args > &&  )
default

◆ operator[]() [1/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator[] ( size_type  i)
inline

Definition at line 107 of file KDStlContainerAdaptor.h.

◆ operator[]() [2/2]

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::operator[] ( size_type  i) const
inline

Definition at line 111 of file KDStlContainerAdaptor.h.

◆ prepend() [1/2]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::prepend ( const value_type v)
inline

◆ prepend() [2/2]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::prepend ( value_type &&  v)
inline

◆ remove() [1/2]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::remove ( size_type  position)
inline

Definition at line 233 of file KDStlContainerAdaptor.h.

◆ remove() [2/2]

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::remove ( size_type  position,
size_type  count 
)
inline

◆ removeAll()

template<typename T , typename... Args>
template<typename AT >
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::removeAll ( const AT &  v)
inline

◆ removeAt()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::removeAt ( size_type  position)
inline

Definition at line 242 of file KDStlContainerAdaptor.h.

◆ removeFirst()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::removeFirst ( )
inline

Definition at line 225 of file KDStlContainerAdaptor.h.

◆ removeLast()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::removeLast ( )
inline

Definition at line 229 of file KDStlContainerAdaptor.h.

◆ removeOne()

template<typename T , typename... Args>
template<typename AT >
bool KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::removeOne ( const AT &  v)
inline

Definition at line 259 of file KDStlContainerAdaptor.h.

◆ replace()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::replace ( size_type  pos,
const value_type v 
)
inline

◆ reserve()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::reserve ( size_type  s)
inline

◆ size()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::size ( ) const
inline

◆ squeeze()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::squeeze ( )
inline

Definition at line 180 of file KDStlContainerAdaptor.h.

◆ startsWith()

template<typename T , typename... Args>
template<typename AT >
bool KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::startsWith ( const AT &  v) const
inline

Definition at line 332 of file KDStlContainerAdaptor.h.

◆ swapItemsAt()

template<typename T , typename... Args>
void KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::swapItemsAt ( size_type  i,
size_type  j 
)
inline

◆ takeAt()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::takeAt ( size_type  i)
inline

◆ takeFirst()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::takeFirst ( )
inline

◆ takeLast()

template<typename T , typename... Args>
decltype(auto) KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::takeLast ( )
inline

◆ value() [1/2]

template<typename T , typename... Args>
auto KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::value ( size_type  i) const
inline

◆ value() [2/2]

template<typename T , typename... Args>
auto KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::value ( size_type  i,
const T &  defaultValue 
) const
inline

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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8