[coco] Add 'Object' class template (#727)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 19 Jul 2018 10:37:48 +0000 (19:37 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 19 Jul 2018 10:37:48 +0000 (19:37 +0900)
This commit adds 'Object' class template which serves as a base class
for all typed values in coco IR, such as vector and feature.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/IR/Object.h [new file with mode: 0644]
contrib/coco/core/src/IR/Object.cpp [new file with mode: 0644]

diff --git a/contrib/coco/core/include/coco/IR/Object.h b/contrib/coco/core/include/coco/IR/Object.h
new file mode 100644 (file)
index 0000000..e678e05
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef __COCO_IR_OBJECT_H__
+#define __COCO_IR_OBJECT_H__
+
+namespace coco
+{
+
+/**
+ * @breif Base interface on all typed NN values
+ */
+class Object
+{
+public:
+  virtual ~Object() = default;
+};
+
+} // namespace coco
+
+#endif // __COCO_IR_OBJECT_H__
diff --git a/contrib/coco/core/src/IR/Object.cpp b/contrib/coco/core/src/IR/Object.cpp
new file mode 100644 (file)
index 0000000..c83a9ec
--- /dev/null
@@ -0,0 +1,3 @@
+#include "coco/IR/Object.h"
+
+// NOTE Do NOT delete this file; this file checks the completeness of 'Object.h'