Logo Search packages:      
Sourcecode: pan version File versions  Download package

pan::Numbers Class Reference
[Usenet Utilities]

#include <numbers.h>

List of all members.

Detailed Description

Builds a range of numbers. Used for reading/writing newsrc strings.

Definition at line 35 of file numbers.h.

Public Types

typedef std::vector< Rangeranges_t

Public Member Functions

void clear ()
void clip (const unsigned long low, const unsigned long high)
bool from_string (const char *)
bool is_marked (const unsigned long) const
bool mark_one (unsigned long number, bool add=true)
unsigned long mark_range (unsigned long low, unsigned long high, bool add=true)
void mark_str (const StringView &str, bool add=true)
 operator std::string () const
bool operator== (const Numbers &that) const
void to_string (std::string &setme) const
std::string to_string () const

Private Member Functions

unsigned long mark_range (const Range &)
unsigned long unmark_range (const Range &)

Private Attributes

ranges_t _marked


struct  Range

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

Generated by  Doxygen 1.6.0   Back to index