Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGValue Class Reference

#include <qgst_p.h>

+ Collaboration diagram for QGValue:

Public Member Functions

 QGValue (const GValue *v)
 
bool isNull () const
 
std::optional< bool > toBool () const
 
std::optional< int > toInt () const
 
std::optional< int > toInt64 () const
 
template<typename T >
T * getPointer () const
 
const char * toString () const
 
std::optional< float > getFraction () const
 
std::optional< QGRange< float > > getFractionRange () const
 
std::optional< QGRange< int > > toIntRange () const
 
QGstStructure toStructure () const
 
QGstCaps toCaps () const
 
bool isList () const
 
int listSize () const
 
QGValue at (int index) const
 
QList< QAudioFormat::SampleFormatgetSampleFormats () const
 

Public Attributes

const GValue * value
 

Detailed Description

Definition at line 185 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGValue()

QGValue::QGValue ( const GValue * v)
explicit

Definition at line 73 of file qgst.cpp.

Member Function Documentation

◆ at()

QGValue QGValue::at ( int index) const

Definition at line 154 of file qgst.cpp.

◆ getFraction()

std::optional< float > QGValue::getFraction ( ) const

Definition at line 106 of file qgst.cpp.

Referenced by getFractionRange().

+ Here is the caller graph for this function:

◆ getFractionRange()

std::optional< QGRange< float > > QGValue::getFractionRange ( ) const

Definition at line 114 of file qgst.cpp.

References getFraction().

+ Here is the call graph for this function:

◆ getPointer()

template<typename T >
T * QGValue::getPointer ( ) const
inline

Definition at line 197 of file qgst_p.h.

◆ getSampleFormats()

QList< QAudioFormat::SampleFormat > QGValue::getSampleFormats ( ) const

Definition at line 100 of file qgstutils.cpp.

References fmt, toString(), and QAudioFormat::Unknown.

+ Here is the call graph for this function:

◆ isList()

bool QGValue::isList ( ) const

Definition at line 144 of file qgst.cpp.

◆ isNull()

bool QGValue::isNull ( ) const

Definition at line 75 of file qgst.cpp.

References value.

◆ listSize()

int QGValue::listSize ( ) const

Definition at line 149 of file qgst.cpp.

◆ toBool()

std::optional< bool > QGValue::toBool ( ) const

Definition at line 80 of file qgst.cpp.

◆ toCaps()

QGstCaps QGValue::toCaps ( ) const

Definition at line 137 of file qgst.cpp.

References QGstPointerImpl::QGstObjectWrapper< GstCaps >::HasRef.

◆ toInt()

std::optional< int > QGValue::toInt ( ) const

Definition at line 87 of file qgst.cpp.

◆ toInt64()

std::optional< int > QGValue::toInt64 ( ) const

Definition at line 94 of file qgst.cpp.

◆ toIntRange()

std::optional< QGRange< int > > QGValue::toIntRange ( ) const

Definition at line 123 of file qgst.cpp.

◆ toString()

const char * QGValue::toString ( ) const

Definition at line 101 of file qgst.cpp.

Referenced by getSampleFormats().

+ Here is the caller graph for this function:

◆ toStructure()

QGstStructure QGValue::toStructure ( ) const

Definition at line 130 of file qgst.cpp.

Member Data Documentation

◆ value

const GValue* QGValue::value

Definition at line 189 of file qgst_p.h.

Referenced by isNull().


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