libSBML C++ API
5.20.2
|
: Implementation of the SubListOfSpeciesFeatures class More...
Classes | |
class | SubListOfSpeciesFeatures |
Enumerations | |
enum | Relation_t { MULTI_RELATION_AND , MULTI_RELATION_OR , MULTI_RELATION_NOT , MULTI_RELATION_UNKNOWN } |
Enumeration of possible relations between the children of a SubListOfSpeciesFeatures in the libSBML "multi" package implementation. More... | |
Functions | |
Relation_t | Relation_fromString (const char *code) |
Returns the Relation_t enumeration corresponding to the given string or MULTI_RELATION_UNKNOWN if there is no such match. More... | |
const char * | Relation_toString (Relation_t r) |
Returns the string version of the provided Relation_t enumeration. More... | |
: Implementation of the SubListOfSpeciesFeatures class
enum Relation_t |
Enumeration of possible relations between the children of a SubListOfSpeciesFeatures in the libSBML "multi" package implementation.
SBML_
. The set of possible type codes for core elements is defined in the enumeration SBMLTypeCode_t, and in addition, libSBML plug-ins for SBML Level 3 packages define their own extra enumerations of type codes (e.g., SBMLLayoutTypeCode_t for the Level 3 Layout package). Note that different Level 3 package plug-ins may use overlapping type codes; to identify the package to which a given object belongs, call the SBase::getPackageName()
method on the object.The exception to this is lists: all SBML-style list elements have the type SBML_LIST_OF, regardless of what package they are from.
SBMLLayoutTypeCode_t
for the SBML Level 3 Layout extension, SBMLFbcTypeCode_t
for the SBML Level 3 Flux Balance Constraints extension, etc.).NULL
if the value you give it is actually from a package.The following example code illustrates the combined use of SBase::getPackageName() and SBase::getTypeCode():
Enumerator | |
---|---|
MULTI_RELATION_AND | The SpeciesFeature children of the SubListOfSpeciesFeatures share an 'and' relationship. |
MULTI_RELATION_OR | The SpeciesFeature children of the SubListOfSpeciesFeatures share an 'or' relationship. |
MULTI_RELATION_NOT | The SpeciesFeature children of the SubListOfSpeciesFeatures share a 'not' relationship. |
MULTI_RELATION_UNKNOWN | The SpeciesFeature children of the SubListOfSpeciesFeatures share an unknown relationship. This value is not permitted for valid SBML models. |
Relation_t Relation_fromString | ( | const char * | code | ) |
Returns the Relation_t enumeration corresponding to the given string or MULTI_RELATION_UNKNOWN if there is no such match.
code | the string to convert to a Relation_t. |
const char* Relation_toString | ( | Relation_t | r | ) |
Returns the string version of the provided Relation_t enumeration.
r | the Relation_t enumeration value to convert. |
NULL
if the value is MULTI_RELATION_UNKNOWN or another invalid enumeration value.