FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
qtcore::QVariantUtils Class Reference

Provides a collection of tools around QVariant. More...

#include <qttools/core/qvariant_utils.h>

Static Public Member Functions

template<typename T , template< typename > class CONTAINER>
static CONTAINER< T > toTypedContainer (const CONTAINER< QVariant > &variants)
 Converts a container of QVariant to a container of typed data (T) More...
 
template<typename T , template< typename > class CONTAINER>
static CONTAINER< QVariant > toContainerOfVariants (const CONTAINER< T > &typeds)
 Converts a container of typed data (T) to a container of QVariant. More...
 

Detailed Description

Provides a collection of tools around QVariant.

Member Function Documentation

template<typename T , template< typename > class CONTAINER>
CONTAINER< QVariant > qtcore::QVariantUtils::toContainerOfVariants ( const CONTAINER< T > &  typeds)
static

Converts a container of typed data (T) to a container of QVariant.

The container can be of any type (std::list<>, QVector<>, ...) the only restriction is that it must satisfy the concept of Back Insertion Sequence (see http://www.sgi.com/tech/stl/BackInsertionSequence.html)

See also
toTypedContainer()
template<typename T , template< typename > class CONTAINER>
CONTAINER< T > qtcore::QVariantUtils::toTypedContainer ( const CONTAINER< QVariant > &  variants)
static

Converts a container of QVariant to a container of typed data (T)

The container can be of any type (std::list<>, QVector<>, ...) the only restriction is that it must satisfy the concept of Back Insertion Sequence (see http://www.sgi.com/tech/stl/BackInsertionSequence.html)

See also
toContainerOfVariants()

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