ProteoWizard
Public Member Functions | Public Attributes | Friends | List of all members
pwiz::util::IntegerSet::Interval Struct Reference

a single closed interval of integers More...

#include <IntegerSet.hpp>

Public Member Functions

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

Public Attributes

int begin
 
int end
 

Friends

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

◆ Interval() [1/2]

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

◆ Interval() [2/2]

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

Member Function Documentation

◆ contains()

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

Definition at line 50 of file IntegerSet.hpp.

Friends And Related Symbol Documentation

◆ operator<<

PWIZ_API_DECL std::ostream & operator<< ( std::ostream &  os,
const Interval interval 
)
friend

◆ operator>>

PWIZ_API_DECL std::istream & operator>> ( std::istream &  is,
Interval interval 
)
friend

Member Data Documentation

◆ begin

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

Definition at line 44 of file IntegerSet.hpp.

Referenced by testIntervalExtraction(), and testIntervalExtraction2().

◆ end

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

Definition at line 45 of file IntegerSet.hpp.

Referenced by testIntervalExtraction(), and testIntervalExtraction2().


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