stream.h File Reference

#include "macros.h"

Include dependency graph for stream.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Namespaces

namespace   mudbox

Classes

class   mudbox::Stream
  Streams are used to read information from a file, or to write it to a file. More...

Typedefs

typedef Node *  NodePointer

Functions

template<typename type>
Stream &  operator== (Stream &s, type &v)
  Serializes any data type to/from the stream.
template<typename type>
Stream &  operator== (Stream &s, const type &v)

Typedef Documentation

typedef Node* mudbox::NodePointer
 

Function Documentation

template<typename type>
Stream& operator== Stream &  s,
type &  v
[inline]
 

Serializes any data type to/from the stream.

00283 { if ( s.IsStoring() ) s << v; else s >> v; return s; };
template<typename type>
Stream& operator== Stream &  s,
const type &  v
[inline]
 
00286 { if ( s.IsStoring() ) s << v; else s >> *((type*)&v); return s; };