#include <Quantity.h>
Private Member Functions | |
void | set (bool symbol) const |
store the status in PrintStatus | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PrintSymbol &print) |
apply PrintSymbol to an output stream |
this template is parameterized by the boolean value defining whether the symbol is to be printed or not.
Definition at line 385 of file Quantity.h.
|
store the status in PrintStatus PrintStatus has declared PrintSymbol a friend, so this routine can access the private _symbol data member. Definition at line 391 of file Quantity.h. |
|
apply PrintSymbol to an output stream user code can place a PrintSymbol object in an std::ostream; the corresponding bool value P is then stored in PrintStatus through function set (); this function is a friend of PrintSymbol, thus it can not access PrintStatus::_symbol directly; the reference to the ostream object is returned. Definition at line 401 of file Quantity.h. |