source: XIOS/trunk/src/functor/once.cpp @ 369

Last change on this file since 369 was 369, checked in by ymipsl, 12 years ago

Major Update

  • redesign Type and attribute manipulation
  • add enumerate type and attribute
  • use blitz class array instead of boost class array

YM

File size: 945 bytes
Line 
1#include "once.hpp"
2#include "array_new.hpp"
3
4namespace xios
5{
6   namespace func
7   {
8      /// ////////////////////// Définitions ////////////////////// ///
9
10      COnce::COnce(CArray<double,1>& doutput)
11         : SuperClass(StdString("once"), doutput)
12      { /* Ne rien faire de plus */ }
13
14      COnce::~COnce(void)
15      { /* Ne rien faire de plus */ }
16
17      //---------------------------------------------------------------
18
19      void COnce::apply(const CArray<double,1>& _dinput,
20                              CArray<double,1>& _doutput)
21      {
22/*               const double * it1  = _dinput->data(),
23                      * end1 = _dinput->data() + _dinput->num_elements();
24               double * it   = _doutput->data();
25        for (; it1 != end1; it1++, it++) *it  = *it1;*/
26        _doutput=_dinput ;
27      }
28
29      //---------------------------------------------------------------
30
31   } // namespace func
32} // namespace xmlioserver
33
Note: See TracBrowser for help on using the repository browser.