buffers.hh (12334:e0ab29a34764) | buffers.hh (13449:2f7efa89c58b) |
---|---|
1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 104 unchanged lines hidden (view full) --- 113 * implement BubbleIF themselves */ 114 115/** Default behaviour, no bubbles */ 116template <typename ElemType> 117class NoBubbleTraits 118{ 119 public: 120 static bool isBubble(const ElemType &) { return false; } | 1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 104 unchanged lines hidden (view full) --- 113 * implement BubbleIF themselves */ 114 115/** Default behaviour, no bubbles */ 116template <typename ElemType> 117class NoBubbleTraits 118{ 119 public: 120 static bool isBubble(const ElemType &) { return false; } |
121 static ElemType bubble() { assert(false); } | 121 static ElemType 122 bubble() 123 { 124 panic("bubble called but no bubble interface"); 125 } |
122}; 123 124/** Pass on call to the element */ 125template <typename ElemType> 126class BubbleTraitsAdaptor 127{ 128 public: 129 static bool isBubble(const ElemType &elem) --- 525 unchanged lines hidden --- | 126}; 127 128/** Pass on call to the element */ 129template <typename ElemType> 130class BubbleTraitsAdaptor 131{ 132 public: 133 static bool isBubble(const ElemType &elem) --- 525 unchanged lines hidden --- |