Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

quantity::ReadSymbol< P > Class Template Reference

definition of template ReadSymbol More...

#include <Quantity.h>

List of all members.

Private Member Functions

void set (bool symbol) const
 store the status in ReadStatus


Friends

std::istream & operator>> (std::istream &is, const ReadSymbol &read)
 apply ReadSymbol in an input stream chain


Detailed Description

template<bool P>
class quantity::ReadSymbol< P >

definition of template ReadSymbol

this template is parameterized by the boolean value defining whether the symbol is to be read or not.

Definition at line 503 of file Quantity.h.


Member Function Documentation

template<bool P>
void quantity::ReadSymbol< P >::set bool  symbol  )  const [inline, private]
 

store the status in ReadStatus

ReadStatus has declared ReadSymbol a friend, so this routine can access the private _symbol data member.

Definition at line 509 of file Quantity.h.


Friends And Related Function Documentation

template<bool P>
std::istream& operator>> std::istream &  is,
const ReadSymbol< P > &  read
[friend]
 

apply ReadSymbol in an input stream chain

user code can place a ReadSymbol object in an std::istream chain; the corresponding bool value P is then stored in ReadStatus through function set (); this function is a friend of ReadSymbol, thus it can not access ReadStatus::_symbol directly; the reference to the istream object is returned.

Definition at line 519 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 14:05:22 2006 for Quantity by doxygen 1.3.6