OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
ProGe::SignalGroup Class Reference

#include <SignalGroup.hh>

Collaboration diagram for ProGe::SignalGroup:
Collaboration graph

Public Member Functions

 SignalGroup ()
 
template<typename... SignalT>
 SignalGroup (SignalGroupType groupType, SignalT... signals)
 
virtual ~SignalGroup ()
 
SignalGroupType type () const
 
void addSignalType (SignalType signalType)
 
const std::set< SignalTypedefinedSignalTypes () const
 
bool operator== (SignalGroupType signalGroupType) const
 

Private Attributes

SignalGroupType type_
 Signal group type id. More...
 
std::set< SignalTypesignals_
 Signals defined by this group. More...
 

Detailed Description

Definition at line 48 of file SignalGroup.hh.

Constructor & Destructor Documentation

◆ SignalGroup() [1/2]

ProGe::SignalGroup::SignalGroup ( )

Definition at line 38 of file SignalGroup.cc.

References ProGe::UNDEFINED.

◆ SignalGroup() [2/2]

template<typename... SignalT>
ProGe::SignalGroup::SignalGroup ( SignalGroupType  groupType,
SignalT...  signals 
)
inline

Definition at line 53 of file SignalGroup.hh.

54  : type_(groupType), signals_{signals...} {}

◆ ~SignalGroup()

ProGe::SignalGroup::~SignalGroup ( )
virtual

Definition at line 40 of file SignalGroup.cc.

40 {}

Member Function Documentation

◆ addSignalType()

void ProGe::SignalGroup::addSignalType ( SignalType  signalType)

Definition at line 48 of file SignalGroup.cc.

48  {
49  signals_.insert(signalType);
50 }

References signals_.

◆ definedSignalTypes()

const std::set< SignalType > ProGe::SignalGroup::definedSignalTypes ( ) const

Definition at line 53 of file SignalGroup.cc.

53  {
54  return signals_;
55 }

References signals_.

◆ operator==()

bool ProGe::SignalGroup::operator== ( SignalGroupType  signalGroupType) const
inline

Definition at line 61 of file SignalGroup.hh.

61  {
62  return type() == signalGroupType;
63  }

References type().

Here is the call graph for this function:

◆ type()

SignalGroupType ProGe::SignalGroup::type ( ) const

Definition at line 43 of file SignalGroup.cc.

43  {
44  return type_;
45 }

References type_.

Referenced by operator==(), ProGe::ProcessorWrapperBlock::ProcessorWrapperBlock(), and ProGe::PortFactory::registerPortGroup().

Member Data Documentation

◆ signals_

std::set<SignalType> ProGe::SignalGroup::signals_
private

Signals defined by this group.

Definition at line 71 of file SignalGroup.hh.

Referenced by addSignalType(), and definedSignalTypes().

◆ type_

SignalGroupType ProGe::SignalGroup::type_
private

Signal group type id.

Definition at line 69 of file SignalGroup.hh.

Referenced by type().


The documentation for this class was generated from the following files:
ProGe::SignalGroupType::UNDEFINED
@ UNDEFINED
ProGe::SignalGroup::type_
SignalGroupType type_
Signal group type id.
Definition: SignalGroup.hh:69
ProGe::SignalGroup::type
SignalGroupType type() const
Definition: SignalGroup.cc:43
ProGe::SignalGroup::signals_
std::set< SignalType > signals_
Signals defined by this group.
Definition: SignalGroup.hh:71