[coco] Introduce object casting helpers (#2673)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 14 Dec 2018 05:41:47 +0000 (14:41 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 14 Dec 2018 05:41:47 +0000 (14:41 +0900)
commit8936091958d3b8f6bf0a2eaf78904a13f9ef1356
treedbca418c78ea5d5fd136ef76376d8b60985bfe0e
parent618ca288795baa58a350a2583bd52c2888c378fe
[coco] Introduce object casting helpers (#2673)

This commit introduces the following object casting helpers:
 - isa<T>
 - cast<T>
 - safe_cast<T>

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/IR/Object.h
contrib/coco/core/src/IR/FeatureObject.test.cpp
contrib/coco/core/src/IR/KernelObject.test.cpp
contrib/coco/core/src/IR/Object.cpp
contrib/coco/core/src/IR/Object.test.cpp