ngscopeclient v0.2
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
InputConstraintDigitalWidth Class Reference

Match if the input's digital width matches the requested value. More...

#include <InputConstraint.h>

Inheritance diagram for InputConstraintDigitalWidth:
Inheritance graph
[legend]
Collaboration diagram for InputConstraintDigitalWidth:
Collaboration graph
[legend]

Public Member Functions

 InputConstraintDigitalWidth (FlowGraphNode *sink, size_t width)
 
virtual bool Check (StreamDescriptor source) override
 Checks if the given input satisfies the constraint.
 
virtual std::string ToString () override
 Convert this constraint to a string.
 
- Public Member Functions inherited from InputConstraint
 InputConstraint (FlowGraphNode *sink)
 

Protected Attributes

size_t m_width
 
- Protected Attributes inherited from InputConstraint
FlowGraphNodem_sink
 

Additional Inherited Members

- Protected Member Functions inherited from InputConstraint
std::string StreamTypeToString (Stream::StreamType type)
 

Detailed Description

Match if the input's digital width matches the requested value.

Does not verify the input is a digital scalar, waveform, or bus; separate constraints are needed for that

Member Function Documentation

◆ Check()

virtual bool InputConstraintDigitalWidth::Check ( StreamDescriptor  source)
inlineoverridevirtual

Checks if the given input satisfies the constraint.

Implements InputConstraint.

◆ ToString()

virtual std::string InputConstraintDigitalWidth::ToString ( )
inlineoverridevirtual

Convert this constraint to a string.

Implements InputConstraint.


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