| 67 | } |
| 68 | |
| 69 | SegmentWeight CompressedEdgeContainer::ClipWeight(const EdgeWeight weight) |
| 70 | { |
| 71 | SegmentWeight seg_weight = alias_cast<SegmentWeight>(weight); |
| 72 | if (seg_weight >= INVALID_SEGMENT_WEIGHT) |
| 73 | { |
| 74 | clipped_weights++; |
| 75 | return MAX_SEGMENT_WEIGHT; |
| 76 | } |
| 77 | return seg_weight; |
| 78 | } |
| 79 | |
| 80 | SegmentDuration CompressedEdgeContainer::ClipDuration(const EdgeDuration duration) |
| 81 | { |
nothing calls this directly
no outgoing calls
no test coverage detected