| 
    ztsdb
    
   | 
 
Abstract a location. More...
#include <location.hpp>
Public Member Functions | |
| location (const position &b, const position &e) | |
| Construct a location from b to e.  | |
| location (const position &p=position()) | |
| Construct a 0-width location in p.  | |
| location (const std::string &filename_p, unsigned int l=1u, unsigned int c=1u, std::shared_ptr< const std::string > s_p=std::make_shared< const std::string >()) | |
| Construct a 0-width location in f, l, c.  | |
| void | initialize (const std::string &filename_p, unsigned int l, unsigned int c, std::shared_ptr< const std::string > s_p) | 
| Initialization.  | |
Line and Column related manipulators  | |
| void | step () | 
| Reset initial location to final location.  | |
| void | columns (int count=1) | 
| Extend the current location to the COUNT next columns.  | |
| void | lines (int count=1) | 
| Extend the current location to the COUNT next lines.  | |
Public Attributes | |
| position | begin | 
| Beginning of the located region.  | |
| position | end | 
| End of the located region.  | |
Abstract a location.
 1.8.17