Version: 8.3.0
Maestro Class Reference

#include <maestro.hxx>

Collaboration diagram for Maestro:

Public Member Functions

 Maestro (Decoder &, Critere *, Distrib &)
 
void put (long, std::vector< double > &)
 
std::vector< double > * get (long *)
 

Private Attributes

Decoderdom
 
Distribdist
 
Criterecrit
 

Detailed Description

Definition at line 29 of file maestro.hxx.

Constructor & Destructor Documentation

Maestro::Maestro ( Decoder dm,
Critere crt,
Distrib dst 
)

Definition at line 22 of file maestro.cxx.

References crit, dist, and dom.

23 {
24  dom = &dm;
25  dist = &dst;
26  crit = crt;
27 }

Member Function Documentation

std::vector< double > * Maestro::get ( long *  id)

Definition at line 38 of file maestro.cxx.

References crit, dist, Critere::eval(), and Distrib::get().

Referenced by Simplex::next().

39 {
40  std::vector<double> *res, *crt;
41 
42  res = dist->get(id);
43  if (crit) {
44  crt = crit->eval(*res);
45  delete res;
46  }
47  else
48  crt = res;
49  return crt;
50 }
void Maestro::put ( long  id,
std::vector< double > &  inp 
)

Definition at line 29 of file maestro.cxx.

References Decoder::decode(), dist, dom, and Distrib::put().

Referenced by Simplex::next(), and Simplex::start().

30 {
31  std::vector<double> *tmp;
32 
33  tmp = dom->decode(inp);
34  dist->put(id, *tmp);
35  return;
36 }

Member Data Documentation

Critere* Maestro::crit
private

Definition at line 33 of file maestro.hxx.

Referenced by get(), and Maestro().

Distrib* Maestro::dist
private

Definition at line 32 of file maestro.hxx.

Referenced by get(), Maestro(), and put().

Decoder* Maestro::dom
private

Definition at line 31 of file maestro.hxx.

Referenced by Maestro(), and put().


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