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

quantity::PrintName< P > Class Template Reference

definition of template PrintName More...

#include <Quantity.h>

List of all members.

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


Detailed Description

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

definition of template PrintName

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

Definition at line 360 of file Quantity.h.


Member Function Documentation

template<bool P>
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 366 of file Quantity.h.


Friends And Related Function Documentation

template<bool P>
std::ostream& operator<< std::ostream &  os,
const PrintName< P > &  print
[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 376 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:48:41 2007 for Quantity by doxygen 1.3.6