spot
0.8.2
|
Classes | |
class | location |
Abstract a location. More... | |
class | position |
Abstract a position. More... | |
class | stack |
class | slice |
Present a slice of the top of a stack. More... | |
Functions | |
const location | operator+ (const location &begin, const location &end) |
Join two location objects to create a location. | |
const location | operator+ (const location &begin, unsigned int width) |
Add two location objects. | |
location & | operator+= (location &res, unsigned int width) |
Add and assign a location. | |
bool | operator== (const location &loc1, const location &loc2) |
Compare two location objects. | |
bool | operator!= (const location &loc1, const location &loc2) |
Compare two location objects. | |
std::ostream & | operator<< (std::ostream &ostr, const location &loc) |
Intercept output stream redirection. | |
const position & | operator+= (position &res, const int width) |
Add and assign a position. | |
const position | operator+ (const position &begin, const int width) |
Add two position objects. | |
const position & | operator-= (position &res, const int width) |
Add and assign a position. | |
const position | operator- (const position &begin, const int width) |
Add two position objects. | |
bool | operator== (const position &pos1, const position &pos2) |
Compare two position objects. | |
bool | operator!= (const position &pos1, const position &pos2) |
Compare two position objects. | |
std::ostream & | operator<< (std::ostream &ostr, const position &pos) |
Intercept output stream redirection. |
bool kripkeyy::operator!= | ( | const location & | loc1, |
const location & | loc2 | ||
) | [inline] |
Compare two location objects.
bool kripkeyy::operator!= | ( | const position & | pos1, |
const position & | pos2 | ||
) | [inline] |
Compare two position objects.
const location kripkeyy::operator+ | ( | const location & | begin, |
const location & | end | ||
) | [inline] |
Join two location objects to create a location.
References kripkeyy::location::end.
const position kripkeyy::operator+ | ( | const position & | begin, |
const int | width | ||
) | [inline] |
Add two position objects.
const location kripkeyy::operator+ | ( | const location & | begin, |
unsigned int | width | ||
) | [inline] |
Add two location objects.
References kripkeyy::location::columns().
const position& kripkeyy::operator+= | ( | position & | res, |
const int | width | ||
) | [inline] |
Add and assign a position.
References kripkeyy::position::columns().
location& kripkeyy::operator+= | ( | location & | res, |
unsigned int | width | ||
) | [inline] |
Add and assign a location.
References kripkeyy::location::columns().
const position kripkeyy::operator- | ( | const position & | begin, |
const int | width | ||
) | [inline] |
Add two position objects.
const position& kripkeyy::operator-= | ( | position & | res, |
const int | width | ||
) | [inline] |
Add and assign a position.
std::ostream& kripkeyy::operator<< | ( | std::ostream & | ostr, |
const location & | loc | ||
) | [inline] |
Intercept output stream redirection.
ostr | the destination output stream |
loc | a reference to the location to redirect |
Avoid duplicate information.
References kripkeyy::location::begin, kripkeyy::position::column, kripkeyy::location::end, kripkeyy::position::filename, and kripkeyy::position::line.
std::ostream& kripkeyy::operator<< | ( | std::ostream & | ostr, |
const position & | pos | ||
) | [inline] |
Intercept output stream redirection.
ostr | the destination output stream |
pos | a reference to the position to redirect |
References kripkeyy::position::column, kripkeyy::position::filename, and kripkeyy::position::line.
bool kripkeyy::operator== | ( | const location & | loc1, |
const location & | loc2 | ||
) | [inline] |
Compare two location objects.
References kripkeyy::location::begin, and kripkeyy::location::end.
bool kripkeyy::operator== | ( | const position & | pos1, |
const position & | pos2 | ||
) | [inline] |
Compare two position objects.
References kripkeyy::position::column, kripkeyy::position::filename, and kripkeyy::position::line.