![]() |
- A Logic Circuit Simulation Library in C++ |
#include <expression.h>
lcs::Bus::cass
.
Public Member Functions | |
Expression (const InExprType &e) | |
Expression (const Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType > &e) | |
const LineState | operator[] (int index) const throw (OutOfRangeException<int>) |
int | width (void) const |
void | notify (Module *mod) |
lcs::Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType >::Expression | ( | const InExprType & | e | ) |
The only usefull constructor. The default constructor is practically useless.
lcs::Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType >::Expression | ( | const Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType > & | e | ) |
Copy constructor.
void lcs::Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType >::notify | ( | Module * | mod | ) | [inline] |
This function can be used by a lcs::Module
derivative to be notified of line state changes in the busses used in the expression.
const LineState lcs::Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType >::operator[] | ( | int | index | ) | const throw (OutOfRangeException<int>) |
Returns the bit state (which is a result of the one's complement operation performed by the expression) at the index specified.
int lcs::Expression< bits, ONES_COMPLEMENT_EXPR, void, InExprType >::width | ( | void | ) | const [inline] |
Returns the width for which an lcs::Expression
object is valid.