MeshParams_t Class Reference

#include <MeshParams_t.hh>

Collaboration diagram for MeshParams_t:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MeshParams_t ()
MeshParams_toperator= (const MeshParams_t &aMesh)
 MeshParams_t (const MeshParams_t &x)
 MeshParams_t (std::istream &in)
std::istream & operator>> (std::istream &in)

Public Attributes

float voltage
float current

Friends

std::istream & operator>> (std::istream &in, MeshParams_t &x)
std::ostream & operator<< (std::ostream &out, const MeshParams_t &x)

Detailed Description

Definition at line 9 of file MeshParams_t.hh.


Constructor & Destructor Documentation

MeshParams_t::MeshParams_t (  )  [inline]

Definition at line 15 of file MeshParams_t.hh.

00015 { };

MeshParams_t::MeshParams_t ( const MeshParams_t x  )  [inline]

Definition at line 17 of file MeshParams_t.hh.

00018       : voltage(x.voltage), current(x.current) { };

MeshParams_t::MeshParams_t ( std::istream &  in  ) 

Definition at line 25 of file MeshParams_t.cpp.

00025                                          {
00026   operator >> (in);
00027 }


Member Function Documentation

MeshParams_t & MeshParams_t::operator= ( const MeshParams_t aMesh  ) 

Definition at line 16 of file MeshParams_t.cpp.

00017 {
00018   voltage = aMesh.voltage;
00019   current = aMesh.current;
00020   
00021 }

std::istream & MeshParams_t::operator>> ( std::istream &  in  ) 

Definition at line 37 of file MeshParams_t.cpp.

00037                                                     {
00038   in >> voltage; in >> current;
00039 
00040   return(in);
00041 }


Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  in,
MeshParams_t x 
) [friend]

Definition at line 33 of file MeshParams_t.cpp.

Referenced by MeshParams_t().

00033                                                          {
00034   return(x.operator >> (in));
00035 }

std::ostream& operator<< ( std::ostream &  out,
const MeshParams_t x 
) [friend]

Definition at line 29 of file MeshParams_t.cpp.

00029                                                                 {
00030   return(out << "v=" << fixed << x.voltage << ", i=" << fixed << x.current);
00031 }


Member Data Documentation

float MeshParams_t::voltage

Definition at line 13 of file MeshParams_t.hh.

Referenced by Event::getBoardMeshVolt(), main(), operator<<(), operator=(), MTEvent::operator=(), and operator>>().

float MeshParams_t::current

Definition at line 14 of file MeshParams_t.hh.

Referenced by operator<<(), operator=(), and operator>>().


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 13:18:40 2013 for MicromegasFramework by  doxygen 1.4.7