mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Specifiy the meaning of a defined sequence in sequence/
Change-Id: I082a7f9f9785c12dfedcee070badb4eded66ab89
This commit is contained in:
@@ -12,7 +12,7 @@ Function * FunctionStore::activeFunctionAtIndex(int i) {
|
||||
assert(i>=0 && i<m_numberOfFunctions);
|
||||
int index = 0;
|
||||
for (int k = 0; k < m_numberOfFunctions; k++) {
|
||||
if (functionAtIndex(k)->isActive() && functionAtIndex(k)->layout() != nullptr) {
|
||||
if (functionAtIndex(k)->isActive() && functionAtIndex(k)->isDefined()) {
|
||||
if (i == index) {
|
||||
return functionAtIndex(k);
|
||||
}
|
||||
@@ -27,7 +27,7 @@ Function * FunctionStore::definedFunctionAtIndex(int i) {
|
||||
assert(i>=0 && i<m_numberOfFunctions);
|
||||
int index = 0;
|
||||
for (int k = 0; k < m_numberOfFunctions; k++) {
|
||||
if (functionAtIndex(k)->layout() != nullptr) {
|
||||
if (functionAtIndex(k)->isDefined()) {
|
||||
if (i == index) {
|
||||
return functionAtIndex(k);
|
||||
}
|
||||
@@ -45,7 +45,7 @@ int FunctionStore::numberOfFunctions() {
|
||||
int FunctionStore::numberOfActiveFunctions() {
|
||||
int result = 0;
|
||||
for (int i = 0; i < m_numberOfFunctions; i++) {
|
||||
if (functionAtIndex(i)->layout() != nullptr && functionAtIndex(i)->isActive()) {
|
||||
if (functionAtIndex(i)->isDefined() && functionAtIndex(i)->isActive()) {
|
||||
result++;
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,7 @@ int FunctionStore::numberOfActiveFunctions() {
|
||||
int FunctionStore::numberOfDefinedFunctions() {
|
||||
int result = 0;
|
||||
for (int i = 0; i < m_numberOfFunctions; i++) {
|
||||
if (functionAtIndex(i)->layout() != nullptr) {
|
||||
if (functionAtIndex(i)->isDefined()) {
|
||||
result++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user