[coco] Refine Bag::reads method interface (#1446)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 11 Sep 2018 08:07:16 +0000 (17:07 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 11 Sep 2018 08:07:16 +0000 (17:07 +0900)
commited09cb3d63862202fe4b66b7f644558fc3060954
treea4b9f8a840e0082c18d9e2c1bdbee205da7eb8cc
parentc3525ba1b53f510e8a948e90f22ffac0234ec82d
[coco] Refine Bag::reads method interface (#1446)

This commit refines Bag::reads method to support constant-time access
over Read links.

Note that this commit introduces semantic changes over Bag::reads
method, but does not change the semantics of readers helper.

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