Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::List Class Reference

The List class is a collection of static functions pertaining to lists.

#include <qx/core/qx-list.h>

Public Member Functions

template<typename T , typename F >
requires static_castable_to<F*, T*>
QList< T * > static_pointer_cast (const QList< F * > fromList)
 

Static Public Member Functions

template<typename T >
static QList< T > difference (QList< T > &listA, QList< T > &listB)
 
template<typename T >
static QList< T > * subListThatContains (T element, QList< QList< T > * > listOfLists)
 

Member Function Documentation

◆ difference()

template<typename T >
QList< T > Qx::List::difference ( QList< T > & listA,
QList< T > & listB )
inlinestatic

Returns a new list that contains the elements of listA that are not present in listB.

◆ static_pointer_cast()

template<typename T , typename F >
requires static_castable_to<F*, T*>
QList< T * > Qx::List::static_pointer_cast ( const QList< F * > fromList)
inline

Returns a new list with each pointer in fromList converted to T* using static_cast<T*>(F*).

◆ subListThatContains()

template<typename T >
QList< T > * Qx::List::subListThatContains ( T element,
QList< QList< T > * > listOfLists )
inlinestatic

Returns a pointer to the first list found within listOfLists that contains element, or nullptr if none were found.


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