Macros | Functions | Variables
qgvector.cpp File Reference
#include "qgvector.h"
#include "qglist.h"
#include "qstring.h"
#include "qdatastream.h"
#include <stdlib.h>

Go to the source code of this file.

Macros

#define QGVECTOR_CPP
 
#define USE_MALLOC
 
#define NEW(type, size)   ((type*)malloc(size*sizeof(type)))
 
#define DELETE(array)   (free((char*)array))
 

Functions

static int cmp_vec (const void *n1, const void *n2)
 
QDataStreamoperator>> (QDataStream &s, QGVector &vec)
 
QDataStreamoperator<< (QDataStream &s, const QGVector &vec)
 

Variables

static QGVectorsort_vec =0
 

Macro Definition Documentation

#define DELETE (   array)    (free((char*)array))

Definition at line 52 of file qgvector.cpp.

#define NEW (   type,
  size 
)    ((type*)malloc(size*sizeof(type)))

Definition at line 51 of file qgvector.cpp.

#define QGVECTOR_CPP

Definition at line 38 of file qgvector.cpp.

#define USE_MALLOC

Definition at line 45 of file qgvector.cpp.

Function Documentation

static int cmp_vec ( const void *  n1,
const void *  n2 
)
static

Definition at line 396 of file qgvector.cpp.

397 {
398  return sort_vec->compareItems( *((QCollection::Item*)n1), *((QCollection::Item*)n2) );
399 }
static QGVector * sort_vec
Definition: qgvector.cpp:389
virtual int compareItems(Item, Item)
Definition: qgvector.cpp:110
void * Item
Definition: qcollection.h:60
QDataStream& operator<< ( QDataStream s,
const QGVector vec 
)

Definition at line 597 of file qgvector.cpp.

598 { // write vector
599  return vec.write( s );
600 }
QDataStream & write(QDataStream &) const
Definition: qgvector.cpp:627
QDataStream& operator>> ( QDataStream s,
QGVector vec 
)

Definition at line 592 of file qgvector.cpp.

593 { // read vector
594  return vec.read( s );
595 }
QDataStream & read(QDataStream &)
Definition: qgvector.cpp:606

Variable Documentation

QGVector* sort_vec =0
static

Definition at line 389 of file qgvector.cpp.