]> Creatis software - bbtk.git/blob - packages/std/src/bbstdGetDoubleVectorSize.cxx
Feature #1742 Add a box providing the size of a vector (an example has been added).
[bbtk.git] / packages / std / src / bbstdGetDoubleVectorSize.cxx
1 #include "bbstdGetDoubleVectorSize.h"
2 #include "bbstdPackage.h"
3 namespace bbstd
4 {
5
6 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,GetDoubleVectorSize)
7 BBTK_BLACK_BOX_IMPLEMENTATION(GetDoubleVectorSize,bbtk::AtomicBlackBox);
8
9 void GetDoubleVectorSize::Process()
10 {
11 // THE MAIN PROCESSING METHOD BODY
12    int size = bbGetInputIn().size();
13    bbSetOutputVectorSize(size);  
14 }
15
16 void GetDoubleVectorSize::bbUserSetDefaultValues()
17 {
18    // THE DEFAULT INPUT/OUTPUT VALUES 
19    bbSetOutputVectorSize(-1);  
20 }
21  
22 void GetDoubleVectorSize::bbUserInitializeProcessing()
23 {
24  
25 }
26
27 void GetDoubleVectorSize::bbUserFinalizeProcessing()
28 {
29   
30 }
31 }
32 // EO namespace bbstd