]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdGetVectorElement.cxx
Acces to the i-th element of a vector
[bbtk.git] / packages / std / src / bbstdGetVectorElement.cxx
diff --git a/packages/std/src/bbstdGetVectorElement.cxx b/packages/std/src/bbstdGetVectorElement.cxx
new file mode 100644 (file)
index 0000000..d7a1896
--- /dev/null
@@ -0,0 +1,28 @@
+#include "bbstdGetVectorElement.h"
+#include "bbstdPackage.h"
+
+
+namespace bbstd
+{
+  //====================================================================
+  BBTK_BLACK_BOX_TEMPLATE_IMPLEMENTATION(GetVectorElement,
+                                        bbtk::AtomicBlackBox);
+  //====================================================================
+
+//====================================================================
+// Add the specialized boxes to the package
+
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,int8_t);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,uint8_t);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,int16_t);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,uint16_t);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,int32_t);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,uint32_t);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,long);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,float);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,double);
+typedef std::string string;
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(std,GetVectorElement,string);
+//====================================================================
+
+} // namespace bbstd