votca 2024.2-dev
Loading...
Searching...
No Matches
votca::tools::RangeParser Class Reference

RangeParser. More...

#include <rangeparser.h>

Collaboration diagram for votca::tools::RangeParser:

Classes

struct  block_t
 
struct  iterator
 

Public Member Functions

 RangeParser ()
 
void Parse (std::string str)
 
void Add (Index begin, Index end, Index stride=1)
 
RangeParser::iterator begin ()
 
RangeParser::iterator end ()
 

Private Member Functions

void ParseBlock (std::string str)
 

Private Attributes

std::list< block_tblocks_
 

Friends

std::ostream & operator<< (std::ostream &out, const RangeParser &rp)
 

Detailed Description

RangeParser.

parse strings like min:step:max, not flexible enough yet to be really useful

Definition at line 37 of file rangeparser.h.

Constructor & Destructor Documentation

◆ RangeParser()

votca::tools::RangeParser::RangeParser ( )
default

Member Function Documentation

◆ Add()

void votca::tools::RangeParser::Add ( Index begin,
Index end,
Index stride = 1 )
inline

Definition at line 86 of file rangeparser.h.

◆ begin()

RangeParser::iterator votca::tools::RangeParser::begin ( )
inline

Definition at line 90 of file rangeparser.h.

◆ end()

RangeParser::iterator votca::tools::RangeParser::end ( )
inline

Definition at line 94 of file rangeparser.h.

◆ Parse()

void votca::tools::RangeParser::Parse ( std::string str)

Definition at line 32 of file rangeparser.cc.

◆ ParseBlock()

void votca::tools::RangeParser::ParseBlock ( std::string str)
private

Definition at line 44 of file rangeparser.cc.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const RangeParser & rp )
friend

Definition at line 116 of file rangeparser.h.

Member Data Documentation

◆ blocks_

std::list<block_t> votca::tools::RangeParser::blocks_
private

Definition at line 81 of file rangeparser.h.


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