- A Logic Circuit Simulation Library in C++





lcs::Bit Class Reference

#include <bit.h>

List of all members.


Detailed Description

A class which is denotes a single bit. A bit object holds a lcs::LineState value. Users of libLCS will not need to directly use Bit objects under normal circumstances. One has to use objects of class lcs::BitBuffer, which bundles one or more Bit objects, as neccesary.


Public Member Functions

 Bit (void)
 Bit (const Bit &bit)
 ~Bit ()
void operator= (const LineState &rhs)
const LineState state (void)

Private Member Functions

Bitoperator= (const Bit &rhs)


Constructor & Destructor Documentation

lcs::Bit::Bit ( void   ) 

The default constructor.

lcs::Bit::Bit ( const Bit bit  ) 

The copy constructor.

lcs::Bit::~Bit (  ) 

Destructor.


Member Function Documentation

Bit& lcs::Bit::operator= ( const Bit rhs  )  [private]

The assignment operator.

void lcs::Bit::operator= ( const LineState rhs  ) 

An assignment operator to assign the bit state using a lcs::LineState variable.

Parameters:
rhs The RHS lcs::LineState variable for the assignment operator.

const LineState lcs::Bit::state ( void   )  [inline]

Returns the logic state of the bit.


Copyright © 2006, 2007 Siva Chandra