Simulation Modeling Tool Kit
Public Member Functions | Protected Attributes | List of all members
smtk::common::RangeDetector< I > Class Template Reference
Collaboration diagram for smtk::common::RangeDetector< I >:

Public Member Functions

void insert (I val)
 Insert a new entry, which may add to an existing range or start a new one.
std::map< I, I > & ranges () const
 Return the current set of intervals.
std::map< I, I > & ranges ()
size_t size () const
 Return the number of entries (not the number of ranges) as the size.
void clear ()
 Empty the list of detected ranges and start over.
void dump ()
 Dump the ranges.

Protected Attributes

std::map< I, I > m_collapse
std::map< I, I > m_ranges

The documentation for this class was generated from the following file: