#include <Quantity.h>
Private Member Functions | |
void | set (bool name) const |
store the status in ReadStatus | |
Friends | |
std::istream & | operator>> (std::istream &is, const ReadName &read) |
apply ReadName to an output stream |
this template is parameterized by the boolean value defining whether the name is to be read or not.
Definition at line 478 of file Quantity.h.
|
store the status in ReadStatus ReadStatus has declared ReadName a friend, so this routine can access the private _name data member. Definition at line 484 of file Quantity.h. |
|
apply ReadName to an output stream user code can place a ReadName object in a std::istream chain; the corresponding bool value P is then stored in ReadStatus through function set (); this function is a friend of ReadName, thus it can not access ReadStatus::_name directly; the reference to the istream object is returned. Definition at line 494 of file Quantity.h. |