Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

_QGAR_GenPoint.H File Reference


Detailed Description

Header file of class qgar::GenPoint.

Warning:
Not to be used as include file!
When working with primitives, use file primitives.H.
Author:
Gérald Masini
Date:
December 15, 2004 15:55
Since:
Qgar 2.2

Definition in file _QGAR_GenPoint.H.

Go to the source code of this file.

Namespaces

namespace  qgar

Classes

class  qgar::GenPoint< T >
 Point with coordinates of type T. More...

Point types

typedef GenPoint< int > qgar::Point
 Points with integer coordinates.
typedef GenPoint< int > qgar::IPoint
 Points with integer coordinates.
typedef GenPoint< float > qgar::FPoint
 Points with coordinates of type float.
typedef GenPoint< double > qgar::DPoint
 Points with coordinates of type double.

Point serialization/deserialization operators

Warning:
Class qgar::GenPoint does not derive from class qgar::ISerializable to get a smaller implementation of a point, and thus to save memory space when dealing with (lots of) points; if points were serializable, they would be implemented using an extra pointer to the table for virtual functions (the destructor in this case).


template<class T>
std::istream & qgar::operator>> (std::istream &anInStream, GenPoint< T > &aPt)
 Deserialize a point (read it from an input stream).
template<class T>
std::ostream & qgar::operator<< (std::ostream &anOutStream, const GenPoint< T > &aPt)
 Serialize a point (write it into an output stream).