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

Quantities::PrintSymbol< P > Class Template Reference

definition of template PrintSymbol More...

#include <Quantity.h>

List of all members.

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


Detailed Description

template<bool P>
class Quantities::PrintSymbol< P >

definition of template PrintSymbol

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

Definition at line 347 of file Quantity.h.


Member Function Documentation

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

store the status in PrintStatus

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

Definition at line 353 of file Quantity.h.


Friends And Related Function Documentation

template<bool P>
std::ostream& operator<< std::ostream &  os,
const PrintSymbol< P > &  print
[friend]
 

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 363 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 13:58:00 2006 for Quantity by doxygen 1.3.6