Public Member Functions | Public Attributes | Friends
pwiz::util::IntegerSet::Interval Struct Reference

a single closed interval of integers More...

#include <IntegerSet.hpp>

List of all members.

Public Member Functions

 Interval (int a=0)
 Interval (int a, int b)
bool contains (int n) const

Public Attributes

int begin
int end


PWIZ_API_DECL std::ostream & operator<< (std::ostream &os, const Interval &interval)
PWIZ_API_DECL std::istream & operator>> (std::istream &is, Interval &interval)

Detailed Description

a single closed interval of integers

Definition at line 42 of file IntegerSet.hpp.

Constructor & Destructor Documentation

pwiz::util::IntegerSet::Interval::Interval ( int  a = 0)
pwiz::util::IntegerSet::Interval::Interval ( int  a,
int  b 

Member Function Documentation

bool pwiz::util::IntegerSet::Interval::contains ( int  n) const

Definition at line 50 of file IntegerSet.hpp.

{return n>=begin && n<=end;}

Friends And Related Function Documentation

PWIZ_API_DECL std::ostream& operator<< ( std::ostream &  os,
const Interval interval 
PWIZ_API_DECL std::istream& operator>> ( std::istream &  is,
Interval interval 

Member Data Documentation

int pwiz::util::IntegerSet::Interval::begin

Definition at line 44 of file IntegerSet.hpp.

int pwiz::util::IntegerSet::Interval::end

Definition at line 45 of file IntegerSet.hpp.

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