Public Types | Public Member Functions | Data Fields

ts::detail::Interval< T, A > Struct Template Reference

Interval class. More...

#include <IpMap.h>

Inherited by ts::detail::Ip4Node [protected], and ts::detail::Ip6Node [protected].

Collaboration diagram for ts::detail::Interval< T, A >:
Collaboration graph
[legend]

Public Types

typedef T Metric
 Metric (storage) type.
typedef A ArgType
 Type used to pass instances of Metric.

Public Member Functions

 Interval ()
 Default constructor.
 Interval (ArgType min, ArgType max)
 Construct with values.

Data Fields

Metric _min
 Minimum value in span.
Metric _max
 Maximum value in span.

Detailed Description

template<typename T, typename A = T const&>
struct ts::detail::Interval< T, A >

Interval class.

This holds an interval based on a metric T along with client data.

Definition at line 42 of file IpMap.h.


Member Typedef Documentation

template<typename T , typename A = T const&>
typedef A ts::detail::Interval< T, A >::ArgType

Type used to pass instances of Metric.

Reimplemented in ts::detail::Ip6Node.

Definition at line 44 of file IpMap.h.

template<typename T , typename A = T const&>
typedef T ts::detail::Interval< T, A >::Metric

Metric (storage) type.

Definition at line 43 of file IpMap.h.


Constructor & Destructor Documentation

template<typename T , typename A = T const&>
ts::detail::Interval< T, A >::Interval (  )  [inline]

Default constructor.

Definition at line 46 of file IpMap.h.

template<typename T , typename A = T const&>
ts::detail::Interval< T, A >::Interval ( ArgType  min,
ArgType  max 
) [inline]

Construct with values.

Parameters:
min Minimum value in span.
max Maximum value in span.

Definition at line 48 of file IpMap.h.


Field Documentation

template<typename T , typename A = T const&>
Metric ts::detail::Interval< T, A >::_max
template<typename T , typename A = T const&>
Metric ts::detail::Interval< T, A >::_min

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