Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
adelhpour committed Nov 20, 2024
2 parents f4d2eae + 96c53f8 commit ca48e88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/features/alias_elements/libsbmlnetwork_alias_reaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ namespace LIBSBMLNETWORK_CPP_NAMESPACE {
for (unsigned int stoichiometryIndex = 0; stoichiometryIndex < stoichiometry; stoichiometryIndex++)
alias_element_createAliasSpeciesReferenceGlyph(reactionGlyph, speciesReferenceGlyph,
connectedSpeciesGlyph->getId(), stoichiometryIndex);

return 0;
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions src/libsbmlnetwork_sbmldocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ namespace LIBSBMLNETWORK_CPP_NAMESPACE {
return false;
}

bool freeUserData(SBMLDocument* document) {
if (document) {
user_data_freeUserData(document);
return true;
}

return false;
}

bool isSetModel(SBMLDocument* document) {
if (document)
return document->isSetModel();
Expand Down
5 changes: 5 additions & 0 deletions src/libsbmlnetwork_sbmldocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ LIBSBMLNETWORK_EXTERN void clearErrorLog(SBMLDocument* document);
/// @return boolean value indicating success/failure of the function.
LIBSBMLNETWORK_EXTERN bool freeSBMLDocument(SBMLDocument* document);

/// @breif Free the user data of the given SBML document.
/// @param document a pointer to the SBMLDocument object.
/// @return boolean value indicating success/failure of the function.
LIBSBMLNETWORK_EXTERN bool freeUserData(SBMLDocument* document);

/// @brief Returns true if the Model object has been set, otherwise returns false.
/// @param document a pointer to the SBMLDocument object.
/// @return true if the Model object has been set, otherwise returns false.
Expand Down

0 comments on commit ca48e88

Please sign in to comment.