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

Quantities::ReadName< P > Class Template Reference

definition of template ReadName More...

#include <Quantity.h>

List of all members.

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


Detailed Description

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

definition of template ReadName

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

Definition at line 446 of file Quantity.h.


Member Function Documentation

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

store the status in ReadStatus

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

Definition at line 452 of file Quantity.h.


Friends And Related Function Documentation

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

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 462 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