Version: 9.16.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::Maestro ( Decoder dm,
Critere crt,
Distrib dst 
)

Definition at line 22 of file maestro.cxx.

23{
24 dom = &dm;
25 dist = &dst;
26 crit = crt;
27}
Distrib * dist
Definition: maestro.hxx:32
Decoder * dom
Definition: maestro.hxx:31
Critere * crit
Definition: maestro.hxx:33

References crit, dist, and dom.

Member Function Documentation

◆ get()

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

Definition at line 38 of file maestro.cxx.

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}
virtual std::vector< double > * eval(std::vector< double > &)=0
virtual std::vector< double > * get(long *)=0

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

Referenced by Simplex::next().

◆ put()

void Maestro::put ( long  id,
std::vector< double > &  inp 
)

Definition at line 29 of file maestro.cxx.

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

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

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

Member Data Documentation

◆ crit

Critere* Maestro::crit
private

Definition at line 33 of file maestro.hxx.

Referenced by get(), and Maestro().

◆ dist

Distrib* Maestro::dist
private

Definition at line 32 of file maestro.hxx.

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

◆ dom

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: