cosi::RealQuantity Class Reference

#include <Quantity.h>

Inheritance diagram for cosi::RealQuantity:

cosi::Quantity cosi::Bandwidth cosi::RealLatency cosi::RealDelay

List of all members.

Public Member Functions

 RealQuantity ()
 RealQuantity (double pValue)
RealQuantity Get ()
void Set (RealQuantity pValue)
double GetValue () const
void SetValue (double pValue)

Static Public Member Functions

static std::string QuantityType ()

Static Public Attributes

static std::string sQuantityType = "Real"
static std::string sQuantityName = "Real"

Protected Attributes

double mValue

Friends

std::ostream & operator<< (std::ostream &pOs, const RealQuantity &pL)


Detailed Description

This class defines a quantity that takes on value in $R$. This class has a private member that is a of type double.

Author:
Alessandro Pinto,

The Donald O. Pederson Center for Electronic System Design

Electrical Engineering Department

University of California, Berkeley

545P Cory Hall, Berkeley, CA 94720

+1 (510) 642 9670

http://www.eecs.berkeley.edu/~apinto

Version:
Id
Quantity.h,v 1.9 2008/08/21 23:46:05 apinto Exp

Constructor & Destructor Documentation

cosi::RealQuantity::RealQuantity (  ) 

cosi::RealQuantity::RealQuantity ( double  pValue  ) 


Member Function Documentation

std::string cosi::RealQuantity::QuantityType (  )  [static]

RealQuantity cosi::RealQuantity::Get (  ) 

void cosi::RealQuantity::Set ( RealQuantity  pValue  ) 

double cosi::RealQuantity::GetValue (  )  const

void cosi::RealQuantity::SetValue ( double  pValue  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOs,
const RealQuantity pL 
) [friend]


Member Data Documentation

double cosi::RealQuantity::mValue [protected]

std::string cosi::RealQuantity::sQuantityType = "Real" [static]

std::string cosi::RealQuantity::sQuantityName = "Real" [static]

Reimplemented in cosi::Bandwidth, and cosi::RealLatency.


The documentation for this class was generated from the following files:
Generated on Sun Sep 7 18:37:47 2008 for COSI by  doxygen 1.5.4
Contact 
©2002-2018 U.C. Regents