card_pair Class Reference

#include <card_pair.h>

List of all members.

Public Member Functions

 card_pair ()
 card_pair (const card_pair *pair)
 ~card_pair ()
void print (ostream &stream) const
neugen_inputsget_inputs (void) const
neugen_configget_config (void) const
void set_inputs (const neugen_inputs *inputs)
void set_config (const neugen_config *config)

Private Member Functions

void init (void)

Private Attributes

neugen_config_config
neugen_inputs_inputs

Friends

ostream & operator<< (ostream &stream, const card_pair &pair)

Detailed Description

____________________________________________________________________________

Definition at line 25 of file card_pair.h.


Constructor & Destructor Documentation

card_pair::card_pair (  ) 

Definition at line 26 of file card_pair.cxx.

References init().

00027 {
00028   init();
00029 }

card_pair::card_pair ( const card_pair pair  ) 

Definition at line 31 of file card_pair.cxx.

References _config, and _inputs.

00032 {
00033   _inputs = pair->_inputs;
00034   _config = pair->_config;
00035 }

card_pair::~card_pair (  ) 

Definition at line 37 of file card_pair.cxx.

References _config, and _inputs.

00038 {
00039   if(_inputs) delete _inputs;
00040   if(_config) delete _config;
00041 }


Member Function Documentation

neugen_config* card_pair::get_config ( void   )  const [inline]

Definition at line 38 of file card_pair.h.

References _config.

00038 { return _config; }

neugen_inputs* card_pair::get_inputs ( void   )  const [inline]

Definition at line 37 of file card_pair.h.

References _inputs.

00037 { return _inputs; }

void card_pair::init ( void   )  [private]

Definition at line 57 of file card_pair.cxx.

References _config, and _inputs.

Referenced by card_pair().

00058 {
00059   _inputs = 0;
00060   _config = 0;
00061 }

void card_pair::print ( ostream &  stream  )  const

Definition at line 63 of file card_pair.cxx.

References _config, and _inputs.

00064 {
00065   stream << *_inputs << endl;
00066   stream << *_config << endl;
00067 }

void card_pair::set_config ( const neugen_config config  ) 

Definition at line 50 of file card_pair.cxx.

References _config.

00051 {
00052   if(_config) delete _config;
00053 
00054   _config = new neugen_config(config);
00055 }

void card_pair::set_inputs ( const neugen_inputs inputs  ) 

Definition at line 43 of file card_pair.cxx.

References _inputs.

00044 {
00045   if(_inputs) delete _inputs;
00046 
00047   _inputs = new neugen_inputs(inputs);
00048 }


Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const card_pair pair 
) [friend]

Member Data Documentation

Definition at line 47 of file card_pair.h.

Referenced by card_pair(), get_config(), init(), print(), set_config(), and ~card_pair().

Definition at line 48 of file card_pair.h.

Referenced by card_pair(), get_inputs(), init(), print(), set_inputs(), and ~card_pair().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1