- A Logic Circuit Simulation Library in C++





lcs::DelayExprPair< bits, Type, LExprType, RExprType > Class Template Reference

#include <delexprpair.h>

List of all members.


Detailed Description

template<int bits, ExprType Type, typename LExprType, typename RExprType>
class lcs::DelayExprPair< bits, Type, LExprType, RExprType >

A class whose objects facilitate assignment delays when an expression is being assigned to a bus or a bus line. This class will never need to be used by a user of libLCS directly.

See lcs::Expression<1, LINE_EXPR, void, void>::operator= and lcs::Bus::operator= for more information on incorporating assignment delays.


Public Member Functions

 DelayExprPair (unsigned int delay, const Expression< bits, Type, LExprType, RExprType > &expr)
 DelayExprPair (const DelayExprPair< bits, Type, LExprType, RExprType > &obj)
unsigned int getDelay (void) const
const Expression< bits, Type,
LExprType, RExprType > 
getExpr (void) const


Constructor & Destructor Documentation

template<int bits, ExprType Type, typename LExprType, typename RExprType>
lcs::DelayExprPair< bits, Type, LExprType, RExprType >::DelayExprPair ( unsigned int  delay,
const Expression< bits, Type, LExprType, RExprType > &  expr 
) [inline]

The only useful constructor.

template<int bits, ExprType Type, typename LExprType, typename RExprType>
lcs::DelayExprPair< bits, Type, LExprType, RExprType >::DelayExprPair ( const DelayExprPair< bits, Type, LExprType, RExprType > &  obj  )  [inline]

Copy constructor.


Member Function Documentation

template<int bits, ExprType Type, typename LExprType, typename RExprType>
unsigned int lcs::DelayExprPair< bits, Type, LExprType, RExprType >::getDelay ( void   )  const [inline]

Returns the delay associated with the delay-expression pair.

template<int bits, ExprType Type, typename LExprType, typename RExprType>
const Expression<bits, Type, LExprType, RExprType> lcs::DelayExprPair< bits, Type, LExprType, RExprType >::getExpr ( void   )  const [inline]

Returns the expression associated with the delay-expression pair.


Copyright © 2006, 2007 Siva Chandra