diff options
Diffstat (limited to 'covoar/CoverageRanges.cc')
-rw-r--r-- | covoar/CoverageRanges.cc | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/covoar/CoverageRanges.cc b/covoar/CoverageRanges.cc deleted file mode 100644 index 1f79dd3..0000000 --- a/covoar/CoverageRanges.cc +++ /dev/null @@ -1,61 +0,0 @@ -/*! @file CoverageRanges.cc - * @brief CoverageRanges Implementation - * - * This file contains the implementation of the functions - * which provide a base level of functionality of a CoverageRanges. - */ - -#include "CoverageRanges.h" -#include <stdio.h> - -namespace Coverage { - - /*! - * This member variable tracks a unique index for the ranges_t block. - */ - uint32_t id_m = 0; - - CoverageRanges::CoverageRanges() - { - } - - CoverageRanges::~CoverageRanges() - { - } - - void CoverageRanges::add( - uint32_t lowAddressArg, - uint32_t highAddressArg, - uncoveredReason_t why, - uint32_t numInstructions - ) - { - coverageRange_t c; - - id_m++; - c.id = id_m; - c.lowAddress = lowAddressArg; - c.highAddress = highAddressArg; - c.reason = why; - c.instructionCount = numInstructions; - set.push_back(c); - } - - uint32_t CoverageRanges::getId( uint32_t lowAddress ) - { - Coverage::CoverageRanges::ranges_t::iterator ritr; - uint32_t result = 0; - - for (ritr = set.begin() ; - ritr != set.end() ; - ritr++ ) { - if ( ritr->lowAddress == lowAddress ) { - result = ritr->id; - break; - } - } - - return result; - } - -} |