cosi::Quantity Class Reference

#include <Quantity.h>

Inheritance diagram for cosi::Quantity:

cosi::Commodity cosi::CommoditySet cosi::IntQuantity cosi::PortRates cosi::Ports cosi::Position cosi::quantity::onchipcommunication::IpGeometry cosi::quantity::onchipcommunication::LinkParameter cosi::quantity::onchipcommunication::NodeParameter cosi::quantity::onchipcommunication::Ports cosi::RealQuantity cosi::rules::wiredbas::WiringRule::SurfacePair cosi::StringQuantity cosi::Thread cosi::ThreadSet cosi::TransferTable cosi::WiringPath

List of all members.

Public Member Functions

 Quantity ()
 Defailt constructor.
virtual ~Quantity ()
 Default destructor.
bool IsAny () const
 Returns true if the quantity holds "any value".
void IsAny (bool pAny)
 If the paramter pAny is true, the quantity holds "any value".
bool IsBot () const
 Returns true if the quantity holds "no value".
void IsBot (bool pBot)
 If the paramter pAny is true, the quantity holds "no value".
bool IsOrdered () const
 Returns true if the domain of the quantity is ordered.
void IsOrdered (bool pOrdered)
 If the paramter pAny is true, the domain of the quantity is ordered (and an order should be define by three operators: <, >, ==.

Private Attributes

bool mAny
 This member is true if value associated with the quantity is "any value".
bool mBot
 This member is true if value associated with the quantity is "no value".
bool mOrdered
 This member is true if domain of the quantity is ordered and false otherwise (this field may not be needed).


Detailed Description

This class defines the basic quantity data type. This basic class defines the following three attributes: -Ordered that specifies if the quantity is ordered or not (i.e. the ordering is flat) -Any that specifies if the value held by the quantity is "any value" -Bot that specifies if the value held by the quantity is "no value"

All quantities should be derived from this base class.

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::Quantity::Quantity (  ) 

Defailt constructor.

By default this constructor sets the fields such that the quantity is not ordered, and holds no value.

cosi::Quantity::~Quantity (  )  [virtual]

Default destructor.


Member Function Documentation

bool cosi::Quantity::IsAny (  )  const

Returns true if the quantity holds "any value".

void cosi::Quantity::IsAny ( bool  pAny  ) 

If the paramter pAny is true, the quantity holds "any value".

bool cosi::Quantity::IsBot (  )  const

Returns true if the quantity holds "no value".

void cosi::Quantity::IsBot ( bool  pBot  ) 

If the paramter pAny is true, the quantity holds "no value".

bool cosi::Quantity::IsOrdered (  )  const

Returns true if the domain of the quantity is ordered.

void cosi::Quantity::IsOrdered ( bool  pOrdered  ) 

If the paramter pAny is true, the domain of the quantity is ordered (and an order should be define by three operators: <, >, ==.


Member Data Documentation

bool cosi::Quantity::mAny [private]

This member is true if value associated with the quantity is "any value".

bool cosi::Quantity::mBot [private]

This member is true if value associated with the quantity is "no value".

bool cosi::Quantity::mOrdered [private]

This member is true if domain of the quantity is ordered and false otherwise (this field may not be needed).


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