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