MercuryDPM  0.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaseParticle.h File Reference
#include <vector>
#include <iostream>
#include "../ExtendedMath.h"
#include "../Vector.h"

Go to the source code of this file.

Classes

class  BaseParticle
 

Functions

std::ostream & operator<< (std::ostream &os, const BaseParticle &p)
 
std::istream & operator>> (std::istream &is, BaseParticle &p)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const BaseParticle p 
)
inline

Definition at line 205 of file BaseParticle.h.

References BaseParticle::print().

206 {
207  p.print(os);
208  return os;
209 }
virtual void print(std::ostream &os) const
Particle print function, which accepts an os std::stringstream as input.
std::istream& operator>> ( std::istream &  is,
BaseParticle p 
)
inline

Definition at line 211 of file BaseParticle.h.

References BaseParticle::read().

212 {
213  p.read(is);
214  return(is);
215 }
virtual void read(std::istream &is)
Particle read function, which accepts an os std::stringstream as input.