[coco] Default constructible DLinkedList::Node (#926)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 8 Aug 2018 04:56:41 +0000 (13:56 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 8 Aug 2018 04:56:41 +0000 (13:56 +0900)
commitb9e1f85269c43000f88938cb3079a8bcdd3c8e98
tree5f5370751d59128e72cdce3c3d6f870ccca92de3
parentcb0d0e4b5e0407808c19a3522af1ce2f79319585
[coco] Default constructible DLinkedList::Node (#926)

The current design of DLinkedList::Node enforces all of its descendent classes to
implement a consturctor that takes PtrLink, and passes it to its parent.

This restriction makes it difficult to introduce some intermediate
traists.

This commit revises DLinkedList::Node to remove this restriction.

The current design enforces only leaf classes to implement 'get' method.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/ADT/DLinkedList.h
contrib/coco/core/include/coco/IR/Block.h
contrib/coco/core/include/coco/IR/Instr.h
contrib/coco/core/src/ADT/DLinkedList.test.cpp
contrib/coco/core/src/IR/Instr.test.cpp