The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::__RegisterDefintionSet< RegisterT > Class Template Reference

Type that holds a set of register definitions. More...

#include <RegisterDefinitionSet.hpp>

Public Types

using Definition = typename RegisterT::Definition
 

Public Member Functions

void addDefinitions (const Definition *definitions)
 
const Definition * getDefinitions () const
 

Detailed Description

template<typename RegisterT>
class sparta::__RegisterDefintionSet< RegisterT >

Type that holds a set of register definitions.

The invariant of this type is that the last element of definitions_ must be DefinitionT::DEFINITION_END.

Definition at line 16 of file RegisterDefinitionSet.hpp.

Member Typedef Documentation

◆ Definition

template<typename RegisterT >
using sparta::__RegisterDefintionSet< RegisterT >::Definition = typename RegisterT::Definition

Definition at line 19 of file RegisterDefinitionSet.hpp.

Constructor & Destructor Documentation

◆ __RegisterDefintionSet()

template<typename RegisterT >
sparta::__RegisterDefintionSet< RegisterT >::__RegisterDefintionSet ( )
inline

Definition at line 21 of file RegisterDefinitionSet.hpp.

Member Function Documentation

◆ addDefinitions()

template<typename RegisterT >
void sparta::__RegisterDefintionSet< RegisterT >::addDefinitions ( const Definition *  definitions)
inline

Adds definitions to this definition set.

Parameters
definitionsArray of definitions to add. Last element must be DefinitionT::DEFINITION_END.

Definition at line 32 of file RegisterDefinitionSet.hpp.

◆ getDefinitions()

template<typename RegisterT >
const Definition * sparta::__RegisterDefintionSet< RegisterT >::getDefinitions ( ) const
inline

Returns array of the definitions added to this set. The last element is DefinitionT::DEFINITION_END.

Definition at line 47 of file RegisterDefinitionSet.hpp.


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