Version: 8.3.0
SalomeEventLoop Class Reference

#include <salomevent.hxx>

Inheritance diagram for SalomeEventLoop:
Collaboration diagram for SalomeEventLoop:

Public Member Functions

 SalomeEventLoop (YACS::ENGINE::Pool *)
 
virtual void put (long, std::vector< double > &)
 
virtual std::vector< double > * get (long *)
 

Protected Attributes

YACS::ENGINE::Poolsuper
 

Detailed Description

Definition at line 27 of file salomevent.hxx.

Constructor & Destructor Documentation

SalomeEventLoop::SalomeEventLoop ( YACS::ENGINE::Pool sup)

Definition at line 26 of file salomevent.cxx.

27 {
28  super = sup;
29 }

Member Function Documentation

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

Implements Distrib.

Definition at line 37 of file salomevent.cxx.

References YACS::ENGINE::RefCounter::decrRef(), CORBAEngineTest::i, PMMLBasicsTestLauncher::ret, and YACS::ENGINE::SequenceAny::size().

38 {
39  SequenceAny *tmp;
40  std::vector<double> *ret;
41  unsigned int nb, i;
42 
43  *id = super->getCurrentId();
45  nb = tmp->size();
46  ret = new std::vector<double>(nb);
47  for (i=0; i<nb; i++)
48  (*ret)[i] = (*tmp)[i]->getDoubleValue();
49  tmp->decrRef();
50 
51  return ret;
52 }
void SalomeEventLoop::put ( long  i,
std::vector< double > &  cal 
)
virtual

Implements Distrib.

Definition at line 31 of file salomevent.cxx.

References YACS::ENGINE::SequenceAny::New().

32 {
33  SequenceAny *tmp = SequenceAny::New(cal);
34  super->pushInSample(i, (Any *)tmp);
35 }

Member Data Documentation

YACS::ENGINE::Pool* SalomeEventLoop::super
protected

Definition at line 29 of file salomevent.hxx.


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