![]() |
Kactus2
Kactus2 reference guide
|
Interface for editing fields. More...
#include <FieldInterface.h>
Public Member Functions | |
FieldInterface (QSharedPointer< FieldValidator > validator, QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter, ResetInterface *subInterface) | |
virtual | ~FieldInterface ()=default |
void | addField (int const &row, std::string const &newFieldName=std::string("")) |
void | addField (std::string const &newFieldName=std::string("")) |
bool | addFieldAccessPolicy (std::string const &fieldName) |
void | copyFieldAccessPolicies (std::string const &fieldName, std::vector< int > const &selectedAccessPolicies) |
void | copyRows (std::vector< int > const &selectedRows) |
int | getAccessPolicyCount (std::string const &fieldName) const |
std::string | getAccessString (std::string const &fieldName, int accessPolicyIndex=-1) const |
AccessTypes::Access | getAccessType (std::string const &fieldName, int accessPolicyIndex=-1) const |
int | getAllReferencesToIdInFieldAccessPolicy (std::string const &fieldName, int accessPolicyIndex, std::string const &valueID) const |
virtual int | getAllReferencesToIdInItem (const std::string &itemName, std::string const &valueID) const override final |
std::vector< std::string > | getExpressionsInSelectedFields (std::vector< std::string > const &fieldNames) const |
std::string | getID (std::string const &fieldName) |
std::string | getIndexedItemName (int itemIndex) const final |
std::string | getIsPresentExpression (std::string const &fieldName) const |
std::string | getIsPresentFormattedExpression (std::string const &fieldName) const |
std::string | getIsPresentValue (std::string const &fieldName, int const &baseNumber=0) const |
virtual int | getItemIndex (std::string const &itemName) const override final |
virtual std::vector< std::string > | getItemNames () const override final |
ModeReferenceInterface * | getModeReferenceInterface () const |
std::vector< std::pair< unsigned int, std::string > > | getModeReferences (std::string const &fieldName, int accessPolicyIndex) const |
std::vector< std::pair< unsigned int, std::string > > | getModeReferencesInUse (std::string const &fieldName, int accessPolicyIndex) const |
std::vector< std::pair< std::string, unsigned int > > | getModeRefs (std::string const &fieldName, int accessPolicyIndex) const |
std::string | getModifiedWriteString (std::string const &fieldName, int accessPolicyIndex=-1) const |
General::ModifiedWrite | getModifiedWriteValue (std::string const &fieldName) const |
std::string | getOffsetExpression (std::string const &fieldName) const |
std::string | getOffsetFormattedExpression (std::string const &fieldName) const |
std::string | getOffsetValue (std::string const &fieldName, int const &baseNumber=0) const |
int | getPasteRowCount () const |
General::ReadAction | getReadAction (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getReadActionString (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getReadResponseExpression (std::string const &fieldName, int accessPolicyIndex) const |
std::string | getReadResponseFormattedExpression (std::string const &fieldName, int accessPolicyIndex) const |
std::string | getReadResponseValue (std::string const &fieldName, int accessPolicyIndex, int baseNumber=0) const |
std::string | getReservedExpression (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getReservedFormattedExpression (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getReservedValue (std::string const &fieldName, int accessPolicyIndex=-1, int const &baseNumber=0) const |
std::string | getResets (std::string const &fieldName) const |
std::string | getResetsToolTip (std::string const &fieldName) const |
ResetInterface * | getSubInterface () const |
bool | getTestableBool (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getTestableValue (std::string const &fieldName, int accessPolicyIndex=-1) const |
General::TestConstraint | getTestConstraint (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getTestConstraintString (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getVolatile (std::string const &fieldName) const |
std::string | getWidthExpression (std::string const &fieldName) const |
std::string | getWidthFormattedExpression (std::string const &fieldName) const |
std::string | getWidthValue (std::string const &fieldName, int const &baseNumber=0) const |
std::string | getWriteConstraint (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getWriteConstraintMaximumExpression (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getWriteConstraintMaximumFormattedExpression (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getWriteConstraintMaximumValue (std::string const &fieldName, int accessPolicyIndex=-1, int const &baseNumber=0) const |
std::string | getWriteConstraintMinimumExpression (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getWriteConstraintMinimumFormattedExpression (std::string const &fieldName, int accessPolicyIndex=-1) const |
std::string | getWriteConstraintMinimumValue (std::string const &fieldName, int accessPolicyIndex=-1, int const &baseNumber=0) const |
bool | hasValidAccess (std::string const &fieldName, int accessPolicyIndex=-1) const |
bool | hasValidAccessPolicyModeRefs (std::string const &fieldName, int accessPolicyIndex) const |
bool | hasValidIsPresent (std::string const &fieldName) const |
bool | hasValidOffset (std::string const &fieldName) const |
bool | hasValidReadResponse (std::string const &fieldName, int accessPolicyIndex) const |
bool | hasValidReserved (std::string const &fieldName, int accessPolicyIndex) const |
bool | hasValidResets (std::string const &fieldName) const |
bool | hasValidWidth (std::string const &fieldName) const |
bool | hasValidWriteValueConstraint (std::string const &fieldName, int accessPolicyIndex) const |
bool | hasWriteConstraint (std::string const &fieldName) const |
virtual int | itemCount () const override final |
virtual bool | itemHasValidName (std::string const &itemName) const override final |
int | pasteFieldaccessPolicies (std::string const &fieldName) |
std::vector< std::string > | pasteRows () |
bool | removeField (std::string const &fieldName) |
bool | removeFieldAccessPolicy (std::string const &fieldName, int accessPolicyIndex) |
bool | setAccess (std::string const &fieldName, std::string const &accessType, int accessPolicyIndex=-1) const |
void | setFields (QSharedPointer< QList< QSharedPointer< Field > > > newFields) |
bool | setID (std::string const &fieldName, std::string const &newID) |
bool | setIsPresent (std::string const &fieldName, std::string const &newIsPresent) |
void | setModeReferenceInterface (ModeReferenceInterface *modeRefInterface) |
bool | setModeReferences (std::string const &fieldName, int accessPolicyIndex, std::vector< std::pair< unsigned int, std::string > > const &newModeRefs) |
bool | setModifiedWrite (std::string const &fieldName, std::string const &newModifiedWrite, int accessPolicyIndex=-1) |
virtual bool | setName (std::string const ¤tName, std::string const &newName) override final |
bool | setOffset (std::string const &fieldName, std::string const &newOffset) |
bool | setReadAction (std::string const &fieldName, std::string const &newReadAction, int accessPolicyIndex=-1) |
bool | setReadResponse (std::string const &fieldName, int accessPolicyIndex, std::string const &newReadResponse) const |
bool | setReserved (std::string const &fieldName, std::string const &newReserved, int accessPolicyIndex=-1) |
bool | setTestable (std::string const &fieldName, std::string const &newTestable, int accessPolicyIndex=-1) const |
bool | setTestConstraint (std::string const &fieldName, std::string const &newTestConstraint, int accessPolicyIndex=-1) const |
bool | setVolatile (std::string const &fieldName, std::string const &newVolatile) |
bool | setWidth (std::string const &fieldName, std::string const &newWidth) |
bool | setWriteConstraint (std::string const &fieldName, std::string const &newConstraintText, int accessPolicyIndex=-1) |
bool | setWriteConstraintMaximum (std::string const &fieldName, std::string const &newWriteConstraintMaximum, int accessPolicyIndex=-1) |
bool | setWriteConstraintMinimum (std::string const &fieldName, std::string const &newWriteConstraintMinimum, int accessPolicyIndex=-1) |
virtual bool | validateItems () const override final |
![]() | |
ParameterizableInterface (const ParameterizableInterface &other)=delete | |
No copying. No assignment. | |
ParameterizableInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
virtual | ~ParameterizableInterface ()=default |
ParameterizableInterface & | operator= (const ParameterizableInterface &other)=delete |
![]() | |
NameGroupInterface () | |
NameGroupInterface (const NameGroupInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~NameGroupInterface ()=default |
virtual std::string | getDescription (std::string const &itemName) const |
virtual std::string | getDisplayName (std::string const &itemName) const |
virtual std::string | getShortDescription (std::string const &itemName) const |
NameGroupInterface & | operator= (const NameGroupInterface &other)=delete |
virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) |
virtual bool | setDisplayName (std::string const &itemName, std::string const &newDisplayName) const |
bool | setShortDescription (std::string const &itemName, std::string const &newShortDescription) const |
![]() | |
CommonInterface ()=default | |
CommonInterface (const CommonInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~CommonInterface ()=default |
CommonInterface & | operator= (const CommonInterface &other)=delete |
Additional Inherited Members | |
![]() | |
QString | formattedValueFor (QString const &expression) const |
QString | parseExpressionToBaseNumber (QString const &expression, unsigned int const &baseNumber, bool *expressionIsValid=nullptr) const |
QString | parseExpressionToDecimal (QString const &expression, bool *expressionIsValid=nullptr) const |
![]() | |
QString | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
Interface for editing fields.
Definition at line 38 of file FieldInterface.h.
FieldInterface::FieldInterface | ( | QSharedPointer< FieldValidator > | validator, |
QSharedPointer< ExpressionParser > | expressionParser, | ||
QSharedPointer< ExpressionFormatter > | expressionFormatter, | ||
ResetInterface * | subInterface ) |
The constructor.
[in] | validator | Validator for fields. |
[in] | expressionParser | Parser for expressions. |
[in] | expressionFormatter | Formatter for expressions. |
[in] | subInterface | Interface for accessing resets. |
|
virtualdefault |
The destructor.
void FieldInterface::addField | ( | int const & | row, |
std::string const & | newFieldName = std::string("") ) |
Add a new field, inserting it to specified position given by row.
[in] | row | Row of the new field. |
[in] | newFieldName | Name of the new field. |
void FieldInterface::addField | ( | std::string const & | newFieldName = std::string("") | ) |
Add a new field. This overload should be preferred when using Python.
[in] | newFieldName | Name of the new field. |
bool FieldInterface::addFieldAccessPolicy | ( | std::string const & | fieldName | ) |
Add a new field access policy to a selected field.
[in] | fieldName | The field to add a new access policy to. |
void FieldInterface::copyFieldAccessPolicies | ( | std::string const & | fieldName, |
std::vector< int > const & | selectedAccessPolicies ) |
Copy selected field access policies to clipboard.
[in] | fieldName | The field containing the access policies. |
[in] | selectedAccessPolicies | List containing the indices of the selected access policies. |
void FieldInterface::copyRows | ( | std::vector< int > const & | selectedRows | ) |
Copy the selected fields.
[in] | selectedRows | Indexes of the selected fields. |
int FieldInterface::getAccessPolicyCount | ( | std::string const & | fieldName | ) | const |
Get the access policy count of the given field.
[in] | fieldName | Description |
std::string FieldInterface::getAccessString | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the access string of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
AccessTypes::Access FieldInterface::getAccessType | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the access of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
int FieldInterface::getAllReferencesToIdInFieldAccessPolicy | ( | std::string const & | fieldName, |
int | accessPolicyIndex, | ||
std::string const & | valueID ) const |
Get the number of references to a parameter used in the different sub-elements of the field access policy.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | Index of the field access policy. |
[in] | valueID | The parameter (ID) to check. |
|
finaloverridevirtual |
Calculate all the references to the selected ID in the selected item.
[in] | itemName | Name of the selected item. |
[in] | valueID | The selected ID. |
Implements ParameterizableInterface.
std::vector< std::string > FieldInterface::getExpressionsInSelectedFields | ( | std::vector< std::string > const & | fieldNames | ) | const |
Get the expressions in the selected fields.
[in] | fieldNames | Names of the selected fields. |
std::string FieldInterface::getID | ( | std::string const & | fieldName | ) |
Get the ID of the selected field.
[in] | fieldName | Name of the selected field. |
|
finalvirtual |
Get name of the indexed item.
[in] | itemIndex | Index of the selected item. |
Implements NameGroupInterface.
std::string FieldInterface::getIsPresentExpression | ( | std::string const & | fieldName | ) | const |
Get the is present expression of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getIsPresentFormattedExpression | ( | std::string const & | fieldName | ) | const |
Get the formatted is present expression of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getIsPresentValue | ( | std::string const & | fieldName, |
int const & | baseNumber = 0 ) const |
Get the calculated is present value of the selected field.
[in] | fieldName | Name of the selected field. |
[in] | baseNumber | Base for displaying the value. |
|
finaloverridevirtual |
Get index of the selected item.
[in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get the names of the available items.
Implements CommonInterface.
ModeReferenceInterface * FieldInterface::getModeReferenceInterface | ( | ) | const |
Get the mode reference interface in use.
@return The mode reference interface.
std::vector< std::pair< unsigned int, std::string > > FieldInterface::getModeReferences | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Get mode references of given field access policy.
[in] | fieldName | The name of the field, which contains the field access policy. |
[in] | accessPolicyIndex | Index of the field access policy whose mode references to get. |
std::vector< std::pair< unsigned int, std::string > > FieldInterface::getModeReferencesInUse | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Get all mode references of field access policies except for the one given by index.
[in] | fieldName | The field containing the field access policies. |
[in] | accessPolicyIndex | The index of the access policy whose mode references are not to get. |
std::vector< std::pair< std::string, unsigned int > > FieldInterface::getModeRefs | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Get the mode references of a given field access policy.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | Index of the field access policy. |
std::string FieldInterface::getModifiedWriteString | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the modified write value string of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
General::ModifiedWrite FieldInterface::getModifiedWriteValue | ( | std::string const & | fieldName | ) | const |
Get the modified write value of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getOffsetExpression | ( | std::string const & | fieldName | ) | const |
Get the offset expression of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getOffsetFormattedExpression | ( | std::string const & | fieldName | ) | const |
Get the formatted offset expression of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getOffsetValue | ( | std::string const & | fieldName, |
int const & | baseNumber = 0 ) const |
Get the calculated offset value of the selected field.
[in] | fieldName | Name of the selected field. |
[in] | baseNumber | Base for displaying the value. |
int FieldInterface::getPasteRowCount | ( | ) | const |
Get the number of pasted fields.
General::ReadAction FieldInterface::getReadAction | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the read action of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field. |
std::string FieldInterface::getReadActionString | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the read action string of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
std::string FieldInterface::getReadResponseExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Get the read response of a field access policy as an expression.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | Index of the field access policy. |
std::string FieldInterface::getReadResponseFormattedExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Get the read response of a field access policy as a formatted expression.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | Index of the field access policy. |
std::string FieldInterface::getReadResponseValue | ( | std::string const & | fieldName, |
int | accessPolicyIndex, | ||
int | baseNumber = 0 ) const |
Get the evaluated read response value of a field access policy.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | Index of the field access policy. |
[in] | baseNumber | Base for displaying the value. |
std::string FieldInterface::getReservedExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the reserved expression of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getReservedFormattedExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the formatted reserved expression of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getReservedValue | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1, | ||
int const & | baseNumber = 0 ) const |
Get the calculated reserved value of the selected field or field access policy, which can be specified by index, for getting the reserved value from a field access policy of a 2022 standard compliant field.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The selected access policy index. |
[in] | baseNumber | Base for displaying the value. |
std::string FieldInterface::getResets | ( | std::string const & | fieldName | ) | const |
Get the reset values of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getResetsToolTip | ( | std::string const & | fieldName | ) | const |
Get the tooltip of the reset values of the selected field.
[in] | fieldName | Name of the selected field. |
ResetInterface * FieldInterface::getSubInterface | ( | ) | const |
Get the sub interface.
bool FieldInterface::getTestableBool | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the testable bool of the selected field or field access policy. Access policy index is provided only when getting the testable value of a field access policy within a 2022 std revision field.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getTestableValue | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the testable string of the selected field access policy of a selected field.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
General::TestConstraint FieldInterface::getTestConstraint | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the test constraint of the selected field or field access policy. Access policy index is provided only when getting the test constraint of a field access policy within a 2022 std revision field.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getTestConstraintString | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the test constraint string of the selected field. Access policy index is provided only when getting the test constraint of a field access policy within a 2022 std revision field.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getVolatile | ( | std::string const & | fieldName | ) | const |
Get the volatile status of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getWidthExpression | ( | std::string const & | fieldName | ) | const |
Get the bit width expression of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getWidthFormattedExpression | ( | std::string const & | fieldName | ) | const |
Get the formatted bit width expression of the selected field.
[in] | fieldName | Name of the selected field. |
std::string FieldInterface::getWidthValue | ( | std::string const & | fieldName, |
int const & | baseNumber = 0 ) const |
Get the calculated bit width value of the selected field.
[in] | fieldName | Name of the selected field. |
[in] | baseNumber | Base for displaying the value. |
std::string FieldInterface::getWriteConstraint | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the write value constraint type of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getWriteConstraintMaximumExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the write value constraint maximum expression of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getWriteConstraintMaximumFormattedExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the formatted write value constraint maximum expression of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getWriteConstraintMaximumValue | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1, | ||
int const & | baseNumber = 0 ) const |
Get the calculated write value constraint maximum value of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
[in] | baseNumber | Base for displaying the value. |
std::string FieldInterface::getWriteConstraintMinimumExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the write value constraint minimum expression of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getWriteConstraintMinimumFormattedExpression | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Get the formatted write value constraint minimum expression of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
std::string FieldInterface::getWriteConstraintMinimumValue | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1, | ||
int const & | baseNumber = 0 ) const |
Get the calculated write value constraint minimum value of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
[in] | baseNumber | Base for displaying the value. |
bool FieldInterface::hasValidAccess | ( | std::string const & | fieldName, |
int | accessPolicyIndex = -1 ) const |
Check if the selected field or field access policy has a valid access.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the field access policy to validate. |
bool FieldInterface::hasValidAccessPolicyModeRefs | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Checks if the field access policy given by index has valid mode references.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | The index of the field access policy to check. |
bool FieldInterface::hasValidIsPresent | ( | std::string const & | fieldName | ) | const |
Check if the selected field has a valid is present.
[in] | fieldName | Name of the selected field. |
bool FieldInterface::hasValidOffset | ( | std::string const & | fieldName | ) | const |
Check if the selected field has a valid offset.
[in] | fieldName | Name of the selected field. |
bool FieldInterface::hasValidReadResponse | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Check if the selected field access policy has a valid read response.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the field access policy to validate. |
bool FieldInterface::hasValidReserved | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Check if the selected field access policy has a valid reserved value.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the field access policy to validate. |
bool FieldInterface::hasValidResets | ( | std::string const & | fieldName | ) | const |
Check if the selected field has valid reset values.
[in] | fieldName | Name of the selected field. |
bool FieldInterface::hasValidWidth | ( | std::string const & | fieldName | ) | const |
Check if the selected field has a valid bit width.
[in] | fieldName | Name of the selected field. |
bool FieldInterface::hasValidWriteValueConstraint | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) const |
Check if the selected field access policy has a valid write value constraint.
[in] | fieldName | Name of the selected field. |
[in] | accessPolicyIndex | Index of the field access policy to validate. |
bool FieldInterface::hasWriteConstraint | ( | std::string const & | fieldName | ) | const |
Check if the selected field or field access policy has a write value constraint. Access policy index is provided only when checking the existence of a write constraint of a field access policy within a 2022 std revision field.
[in] | fieldName | Name of the selected field. |
|
finaloverridevirtual |
|
finaloverridevirtual |
Check if the selected item has a valid name.
[in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
int FieldInterface::pasteFieldaccessPolicies | ( | std::string const & | fieldName | ) |
Paste the selected field access policies.
[in] | fieldName | The name of the field to paste into. |
std::vector< std::string > FieldInterface::pasteRows | ( | ) |
Paste the selected fields.
bool FieldInterface::removeField | ( | std::string const & | fieldName | ) |
Remove the selected field.
[in] | FieldName | Name of the selected field. |
bool FieldInterface::removeFieldAccessPolicy | ( | std::string const & | fieldName, |
int | accessPolicyIndex ) |
Remove the given field access policy from a specific field.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | The index of the field access policy to be removed. |
bool FieldInterface::setAccess | ( | std::string const & | fieldName, |
std::string const & | accessType, | ||
int | accessPolicyIndex = -1 ) const |
Set the access of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | newAccess | The new access of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
void FieldInterface::setFields | ( | QSharedPointer< QList< QSharedPointer< Field > > > | newFields | ) |
Set available fields.
[in] | newFields | The new fields. |
bool FieldInterface::setID | ( | std::string const & | fieldName, |
std::string const & | newID ) |
Set a ID for the selected field.
[in] | parameterName | Name of the selected parameter. |
[in] | newID | New ID. |
bool FieldInterface::setIsPresent | ( | std::string const & | fieldName, |
std::string const & | newIsPresent ) |
Set a new is present value for the selected field.
[in] | parameterName | Name of the selected parameter. |
[in] | newIsPresent | New is present value. |
void FieldInterface::setModeReferenceInterface | ( | ModeReferenceInterface * | modeRefInterface | ) |
Set the mode reference interface to be used.
[in] | modeRefInterface | The mode reference interface to be used. |
bool FieldInterface::setModeReferences | ( | std::string const & | fieldName, |
int | accessPolicyIndex, | ||
std::vector< std::pair< unsigned int, std::string > > const & | newModeRefs ) |
Set the mode references of a field access policy.
[in] | fieldName | The name of the field, which contains the field access policy. |
[in] | accessPolicyIndex | Index of the field access policy whose mode references to set. |
[in] | newModeRefs | The mode references to set. |
bool FieldInterface::setModifiedWrite | ( | std::string const & | fieldName, |
std::string const & | newModifiedWrite, | ||
int | accessPolicyIndex = -1 ) |
Set the modified write value of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | newModifiedWrite | The new modified write value of the selected field. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
|
finaloverridevirtual |
Set a new name for the selected item.
[in] | currentName | Name of the selected item. |
[in] | newName | New name for the item. |
Implements NameGroupInterface.
bool FieldInterface::setOffset | ( | std::string const & | fieldName, |
std::string const & | newOffset ) |
Set a new offset value for the selected field.
[in] | fieldName | Name of the selected field. |
[in] | newOffset | New offset value. |
bool FieldInterface::setReadAction | ( | std::string const & | fieldName, |
std::string const & | newReadAction, | ||
int | accessPolicyIndex = -1 ) |
Set the read action of the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | newReadAction | The new read action. |
[in] | accessPolicyIndex | Index of the selected field access policy. |
bool FieldInterface::setReadResponse | ( | std::string const & | fieldName, |
int | accessPolicyIndex, | ||
std::string const & | newReadResponse ) const |
Set the read response of a selected field access policy.
[in] | fieldName | The name of the field. |
[in] | accessPolicyIndex | Index of the field access policy. |
[in] | newReadResponse | The read response to set. |
bool FieldInterface::setReserved | ( | std::string const & | fieldName, |
std::string const & | newReserved, | ||
int | accessPolicyIndex = -1 ) |
Set a new reserved value for the selected field or field access policy.
[in] | parameterName | Name of the selected parameter. |
[in] | newReserved | New reserved value. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
bool FieldInterface::setTestable | ( | std::string const & | fieldName, |
std::string const & | newTestable, | ||
int | accessPolicyIndex = -1 ) const |
Set the testable value of either a selected field or a selected field access policy within a field. Access policy index is provided only when setting a testable value of a field access policy within a std revision 2022 field.
[in] | fieldName | Name of the selected field. |
[in] | newTestable | The new testable value of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
bool FieldInterface::setTestConstraint | ( | std::string const & | fieldName, |
std::string const & | newTestConstraint, | ||
int | accessPolicyIndex = -1 ) const |
Set the test constraint of the selected field or field access policy. Access policy index is provided only when setting the test constraint of a field access policy within a 2022 std revision field.
[in] | fieldName | Name of the selected field. |
[in] | newTestConstraint | The new test constraint of the selected field. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
bool FieldInterface::setVolatile | ( | std::string const & | fieldName, |
std::string const & | newVolatile ) |
Set the volatile status of the selected field.
[in] | fieldName | Name of the selected field. |
[in] | newVolatile | The new volatile status of the selected field. |
bool FieldInterface::setWidth | ( | std::string const & | fieldName, |
std::string const & | newWidth ) |
Set a new bit width value for the selected field.
[in] | fieldName | Name of the selected field. |
[in] | newWidth | New bit width value. |
bool FieldInterface::setWriteConstraint | ( | std::string const & | fieldName, |
std::string const & | newConstraintText, | ||
int | accessPolicyIndex = -1 ) |
Set a new write value constraint type for the selected field or field access policy.
[in] | fieldName | Name of the selected field. |
[in] | newConstraintText | The new write value constraint type. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
bool FieldInterface::setWriteConstraintMaximum | ( | std::string const & | fieldName, |
std::string const & | newWriteConstraintMaximum, | ||
int | accessPolicyIndex = -1 ) |
Set a new write value constraint maximum value for the selected field or field access policy.
[in] | parameterName | Name of the selected parameter. |
[in] | newWriteConstraintMaximum | New write value constraint maximum value. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
bool FieldInterface::setWriteConstraintMinimum | ( | std::string const & | fieldName, |
std::string const & | newWriteConstraintMinimum, | ||
int | accessPolicyIndex = -1 ) |
Set a new write value constraint minimum value for the selected field or field access policy.
[in] | parameterName | Name of the selected parameter. |
[in] | newWriteConstraintMinimum | New write value constraint minimum value. |
[in] | accessPolicyIndex | The index of the selected field access policy. |
|
finaloverridevirtual |
Validates the contained items.
Implements CommonInterface.