TCE  1.21
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OneClockGuardState Class Reference

#include <GuardState.hh>

Inheritance diagram for OneClockGuardState:
Inheritance graph
Collaboration diagram for OneClockGuardState:
Collaboration graph

Public Member Functions

 OneClockGuardState (const ReadableState &targetRegister)
 
virtual ~OneClockGuardState ()
 
virtual const SimValuevalue () const
 
virtual void endClock ()
 
virtual void advanceClock ()
 
- Public Member Functions inherited from GuardState
 GuardState (const ReadableState &targetRegister, int latency)
 
virtual ~GuardState ()
 
- Public Member Functions inherited from ClockedState
 ClockedState ()
 
virtual ~ClockedState ()
 
virtual bool isIdle ()
 
virtual void reset ()
 this is called at (re)initialization of the simulation More...
 
- Public Member Functions inherited from ReadableState
 ReadableState ()
 
virtual ~ReadableState ()
 

Private Member Functions

 OneClockGuardState ()
 
 OneClockGuardState (const OneClockGuardState &)
 Copying not allowed. More...
 
OneClockGuardStateoperator= (const OneClockGuardState &)
 Assignment not allowed. More...
 

Private Attributes

const ReadableStatetarget_
 The target register watched by this guard. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GuardState
 GuardState ()
 Only subclasses allowed to create empty GuardStates. More...
 

Detailed Description

Models a GuardState that has a latency of 1.

Definition at line 122 of file GuardState.hh.

Constructor & Destructor Documentation

◆ OneClockGuardState() [1/3]

OneClockGuardState::OneClockGuardState ( const ReadableState targetRegister)

Constructor.

Parameters
targetRegisterThe targer register this guard watches.

Definition at line 140 of file GuardState.cc.

140  :
141  target_(&targetRegister) {
142 }
const ReadableState * target_
The target register watched by this guard.
Definition: GuardState.hh:141

◆ ~OneClockGuardState()

OneClockGuardState::~OneClockGuardState ( )
virtual

Destructor.

Definition at line 147 of file GuardState.cc.

147  {
148 }

◆ OneClockGuardState() [2/3]

OneClockGuardState::OneClockGuardState ( )
private

◆ OneClockGuardState() [3/3]

OneClockGuardState::OneClockGuardState ( const OneClockGuardState )
private

Copying not allowed.

Member Function Documentation

◆ advanceClock()

void OneClockGuardState::advanceClock ( )
virtual

Does nothing.

Reimplemented from GuardState.

Definition at line 162 of file GuardState.cc.

162  {
163 }

◆ endClock()

void OneClockGuardState::endClock ( )
virtual

Does nothing.

Reimplemented from GuardState.

Definition at line 155 of file GuardState.cc.

155  {
156 }

◆ operator=()

OneClockGuardState& OneClockGuardState::operator= ( const OneClockGuardState )
private

Assignment not allowed.

◆ value()

const SimValue & OneClockGuardState::value ( ) const
virtual

Returns the current value of the guard.

Returns
The current value of the guard.

Reimplemented from GuardState.

Definition at line 171 of file GuardState.cc.

References target_, and ReadableState::value().

171  {
172  return target_->value();
173 }
const ReadableState * target_
The target register watched by this guard.
Definition: GuardState.hh:141
virtual const SimValue & value() const =0
Here is the call graph for this function:

Member Data Documentation

◆ target_

const ReadableState* OneClockGuardState::target_
private

The target register watched by this guard.

Definition at line 141 of file GuardState.hh.

Referenced by value().


The documentation for this class was generated from the following files: