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

_QGAR_GenPoint.TCC File Reference


Detailed Description

Implementation of function members of class qgar::GenPoint.

Author:
Gérald Masini
Date:
December 15, 2004 15:55
Since:
Qgar 2.2

Definition in file _QGAR_GenPoint.TCC.

Go to the source code of this file.

Namespaces

namespace  qgar

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).