|
YAP
|
#include <PDL.h>
Public Types | |
| using | char_type = typename std::string::value_type |
| using | traits_type = typename std::string::traits_type |
| using | istream_type = std::basic_istream< char_type, traits_type > |
Public Member Functions | |
| PDLIterator (istream_type &is) | |
| const ParticleTableEntry | operator* () const |
| ParticleTableEntry | operator-> () const |
| PDLIterator & | operator++ () |
| PDLIterator | operator++ (int) |
post-increment operator (read line in by calling ++(*this)) | |
Static Public Member Functions | |
| static const PDLIterator & | end () |
| Returns just an empty iterator. | |
Private Member Functions | |
| PDLIterator () | |
| Default constructor (private). | |
Private Attributes | |
| istream_type * | InputStream_ |
input stream pointer to file being read in by this | |
| std::string | Value_ |
| currently loaded line | |
Friends | |
| const bool | operator== (const PDLIterator &lhs, const PDLIterator &rhs) |
| equality operator; checks if pointers to streams are equal | |
Stream iterator targeted for .pdl files to read the input stream line by line. It automatically discards comments and non-_add_-entries. When either the EOF or the end keyword is reached, the iterator is set to its end state (i.e. InputStream_ is set to nullptr).
.pdl format!
|
inline |
Construct and read the first line in
| is | ifstream to read from |
| const ParticleTableEntry operator* | ( | ) | const |
Deference operator
| PDLIterator & operator++ | ( | ) |
pre-increment operator (read line in)
Ignores the comments (lines starting with '*') and all the lines not starting with add. If the end keyword is found or the EOF is reached this is set to end()
|
inline |
Arrow iterator
i->m is the same as (*i).m
1.8.6