]> Creatis software - bbtk.git/blob - packages/std/src/bbstdCreateArithmeticSuiteVector.h
426eaa388d0cd067d604c03128714292a269fc25
[bbtk.git] / packages / std / src / bbstdCreateArithmeticSuiteVector.h
1 #ifndef __bbstdCreateArithmeticSuiteVector_h_INCLUDED__
2 #define __bbstdCreateArithmeticSuiteVector_h_INCLUDED__
3 #include "bbstd_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6
7 namespace bbstd
8 {
9
10 class bbstd_EXPORT CreateArithmeticSuiteVector
11  : 
12    public bbtk::AtomicBlackBox
13 {
14   BBTK_BLACK_BOX_INTERFACE(CreateArithmeticSuiteVector,bbtk::AtomicBlackBox);
15   BBTK_DECLARE_INPUT(FirstValue,double);
16   BBTK_DECLARE_INPUT(Delta,double);
17   BBTK_DECLARE_INPUT(Size,int);
18   BBTK_DECLARE_OUTPUT(ArithmeticSuiteVector,std::vector<double>);
19   BBTK_PROCESS(Process);
20   void Process();
21 };
22
23 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CreateArithmeticSuiteVector,bbtk::AtomicBlackBox);
24 BBTK_NAME("CreateArithmeticSuiteVector");
25 BBTK_AUTHOR("Claire Mouton");
26 BBTK_DESCRIPTION("Creates a vector with the values of an arithmetic suite, given the first value, the difference between two consecutive elements (delta) and its size.");
27 BBTK_CATEGORY("std");
28 BBTK_INPUT(CreateArithmeticSuiteVector,FirstValue,"The first value of the vector.",double,"");
29 BBTK_INPUT(CreateArithmeticSuiteVector,Delta,"The difference between two consecutive elements (Put 0 to get a constatn vector).",double,"");
30 BBTK_INPUT(CreateArithmeticSuiteVector,Size,"Size of the vector to create.",int,"");
31 BBTK_OUTPUT(CreateArithmeticSuiteVector,ArithmeticSuiteVector,"The created vector.",std::vector<double>,"");
32 BBTK_END_DESCRIBE_BLACK_BOX(CreateArithmeticSuiteVector);
33 }
34 // EO namespace bbstd
35
36 #endif // __bbstdCreateArithmeticSuiteVector_h_INCLUDED__
37