QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsConstWkbPtr Class Reference

A const WKB pointer. More...

#include <qgswkbptr.h>

Public Member Functions

 QgsConstWkbPtr (const QByteArray &wkb)
 Construct WKB pointer from QByteArray.
 
 QgsConstWkbPtr (const unsigned char *p, int size)
 
 operator const unsigned char * () const
 
void operator+= (int n) const
 
void operator-= (int n) const
 
const QgsConstWkbPtroperator>> (char &v) const
 
const QgsConstWkbPtroperator>> (double &v) const
 
const QgsConstWkbPtroperator>> (float &r) const
 
const QgsConstWkbPtroperator>> (int &v) const
 
const QgsConstWkbPtroperator>> (QPointF &point) const
 Read a point.
 
const QgsConstWkbPtroperator>> (QPolygonF &points) const
 Read a point array.
 
const QgsConstWkbPtroperator>> (unsigned int &v) const
 
Qgis::WkbType readHeader () const
 readHeader
 
int remaining () const
 remaining
 

Protected Member Functions

template<typename T >
void read (T &v) const
 Read a value.
 
void verifyBound (int size) const
 Verify bounds.
 

Protected Attributes

unsigned char * mEnd
 
bool mEndianSwap
 
unsigned char * mP
 
Qgis::WkbType mWkbType
 

Detailed Description

A const WKB pointer.

Definition at line 137 of file qgswkbptr.h.

Constructor & Destructor Documentation

◆ QgsConstWkbPtr() [1/2]

QgsConstWkbPtr::QgsConstWkbPtr ( const QByteArray &  wkb)
explicit

Construct WKB pointer from QByteArray.

Definition at line 39 of file qgswkbptr.cpp.

◆ QgsConstWkbPtr() [2/2]

QgsConstWkbPtr::QgsConstWkbPtr ( const unsigned char *  p,
int  size 
)

Definition at line 47 of file qgswkbptr.cpp.

Member Function Documentation

◆ operator const unsigned char *()

QgsConstWkbPtr::operator const unsigned char * ( ) const
inline

Definition at line 189 of file qgswkbptr.h.

◆ operator+=()

void QgsConstWkbPtr::operator+= ( int  n) const
inline

Definition at line 186 of file qgswkbptr.h.

◆ operator-=()

void QgsConstWkbPtr::operator-= ( int  n) const
inline

Definition at line 187 of file qgswkbptr.h.

◆ operator>>() [1/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( char &  v) const
inline

Definition at line 179 of file qgswkbptr.h.

◆ operator>>() [2/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( double &  v) const
inline

Definition at line 175 of file qgswkbptr.h.

◆ operator>>() [3/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( float &  r) const
inline

Definition at line 176 of file qgswkbptr.h.

◆ operator>>() [4/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( int &  v) const
inline

Definition at line 177 of file qgswkbptr.h.

◆ operator>>() [5/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( QPointF &  point) const

Read a point.

Definition at line 77 of file qgswkbptr.cpp.

◆ operator>>() [6/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( QPolygonF &  points) const

Read a point array.

Definition at line 84 of file qgswkbptr.cpp.

◆ operator>>() [7/7]

const QgsConstWkbPtr & QgsConstWkbPtr::operator>> ( unsigned int &  v) const
inline

Definition at line 178 of file qgswkbptr.h.

◆ read()

template<typename T >
void QgsConstWkbPtr::read ( T &  v) const
inlineprotected

Read a value.

Note
not available in Python bindings

Definition at line 155 of file qgswkbptr.h.

◆ readHeader()

Qgis::WkbType QgsConstWkbPtr::readHeader ( ) const

readHeader

Note
not available in Python bindings

Definition at line 55 of file qgswkbptr.cpp.

◆ remaining()

int QgsConstWkbPtr::remaining ( ) const
inline

remaining

Note
not available in Python bindings

Definition at line 195 of file qgswkbptr.h.

◆ verifyBound()

void QgsConstWkbPtr::verifyBound ( int  size) const
protected

Verify bounds.

Note
not available in Python bindings

Definition at line 71 of file qgswkbptr.cpp.

Member Data Documentation

◆ mEnd

unsigned char* QgsConstWkbPtr::mEnd
protected

Definition at line 141 of file qgswkbptr.h.

◆ mEndianSwap

bool QgsConstWkbPtr::mEndianSwap
mutableprotected

Definition at line 142 of file qgswkbptr.h.

◆ mP

unsigned char* QgsConstWkbPtr::mP
mutableprotected

Definition at line 140 of file qgswkbptr.h.

◆ mWkbType

Qgis::WkbType QgsConstWkbPtr::mWkbType
mutableprotected

Definition at line 143 of file qgswkbptr.h.


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