libSBML C API  libSBML 5.20.4 C API
Loading...
Searching...
No Matches
FbcExtension.cpp File Reference

Implementation of FbcExtension_t, the core module of fbc package. More...

Include dependency graph for FbcExtension.cpp:

Functions

FbcVariableType_t FbcVariableType_fromString (const char *code)
 _tReturns_t _tthe_t #_tFbcVariableType_t_t _tenumeration_t _tcorresponding_t _tto_t _tthe_t _tgiven_t _tstring_t _tor_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_INVALID_t, _tFbcVariableType_t_t} _tif_t _tthere_t _tis_t _tno_t _tsuch_t _tmatch_t.
 
int FbcVariableType_isValid (FbcVariableType_t fvt)
 _tPredicate_t _treturning_t @_tc_t _t1_t (_ttrue_t) _tor_t @_tc_t _t0_t (_tfalse_t) _tdepending_t _ton_t _twhether_t _tthe_t _tgiven_t #_tFbcVariableType_t_t _tis_t _tvalid_t.
 
int FbcVariableType_isValidString (const char *code)
 _tPredicate_t _treturning_t @_tc_t _t1_t (_ttrue_t) _tor_t @_tc_t _t0_t (_tfalse_t) _tdepending_t _ton_t _twhether_t _tthe_t _tgiven_t _tstring_t _tis_t _ta_t _tvalid_t #_tFbcVariableType_t_t.
 
const char * FbcVariableType_toString (FbcVariableType_t fvt)
 _tReturns_t _tthe_t _tstring_t _tversion_t _tof_t _tthe_t _tprovided_t #_tFbcVariableType_t_t _tenumeration_t.
 

Variables

static const char * SBML_FBC_VARIABLE_TYPE_STRINGS []
 

Detailed Description

Implementation of FbcExtension_t, the core module of fbc package.

Author
Akiya Jouraku
Frank Bergmann

Function Documentation

◆ FbcVariableType_fromString()

FbcVariableType_t FbcVariableType_fromString ( const char *  code)

_tReturns_t _tthe_t #_tFbcVariableType_t_t _tenumeration_t _tcorresponding_t _tto_t _tthe_t _tgiven_t _tstring_t _tor_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_INVALID_t, _tFbcVariableType_t_t} _tif_t _tthere_t _tis_t _tno_t _tsuch_t _tmatch_t.

@_tparam_t _tcode_t _tthe_t _tstring_t _tto_t _tconvert_t _tto_t _ta_t #_tFbcVariableType_t_t.

@_treturn_t _tthe_t _tcorresponding_t #_tFbcVariableType_t_t _tor_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_INVALID_t, _tFbcVariableType_t_t} _tif_t _tno_t _tmatch_t _tis_t _tfound_t.

@_tnote_t _tThe_t _tmatching_t _tis_t _tcase_t-_tsensitive_t: "_tlinear_t" _twill_t _treturn_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_LINEAR_t, _tFbcVariableType_t_t}, _tbut_t "_tLinear_t" _twill_t _treturn_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_INVALID_t, _tFbcVariableType_t_t}.

@_tif_t _tconly_t @_tmemberof_t _tFbc_t_t @_tendif_t

◆ FbcVariableType_isValid()

int FbcVariableType_isValid ( FbcVariableType_t  fvt)

_tPredicate_t _treturning_t @_tc_t _t1_t (_ttrue_t) _tor_t @_tc_t _t0_t (_tfalse_t) _tdepending_t _ton_t _twhether_t _tthe_t _tgiven_t #_tFbcVariableType_t_t _tis_t _tvalid_t.

@_tparam_t _tfvt_t _tthe_t #_tFbcVariableType_t_t _tenumeration_t _tto_t _tquery_t.

@_treturn_t @_tc_t _t1_t (_ttrue_t) _tif_t _tthe_t #_tFbcVariableType_t_t _tis_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_LINEAR_t, _tFbcVariableType_t_t}, _tor_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_QUADRATIC_t, _tFbcVariableType_t_t}; @_tc_t _t0_t (_tfalse_t) _totherwise_t (_tincluding_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_INVALID_t, _tFbcVariableType_t_t}).

@_tif_t _tconly_t @_tmemberof_t _tFbc_t_t @_tendif_t

◆ FbcVariableType_isValidString()

int FbcVariableType_isValidString ( const char *  code)

_tPredicate_t _treturning_t @_tc_t _t1_t (_ttrue_t) _tor_t @_tc_t _t0_t (_tfalse_t) _tdepending_t _ton_t _twhether_t _tthe_t _tgiven_t _tstring_t _tis_t _ta_t _tvalid_t #_tFbcVariableType_t_t.

@_tparam_t _tcode_t _tthe_t _tstring_t _tto_t _tquery_t.

@_treturn_t @_tc_t _t1_t (_ttrue_t) _tif_t _tthe_t _tstring_t _tis_t "_tlinear_t", "_tquadratic_t", _tor_t "_tinvalid_t _tFbcVariableType_t _tvalue_t"; @_tc_t _t0_t (_tfalse_t) _totherwise_t.

@_tnote_t _tThe_t _tmatching_t _tis_t _tcase_t-_tsensitive_t: "_tlinear_t" _twill_t _treturn_t @_tc_t _t1_t (_ttrue_t), _tbut_t "_tLinear_t" _twill_t _treturn_t @_tc_t _t0_t (_tfalse_t).

@_tif_t _tconly_t @_tmemberof_t _tFbc_t_t @_tendif_t

◆ FbcVariableType_toString()

const char * FbcVariableType_toString ( FbcVariableType_t  fvt)

_tReturns_t _tthe_t _tstring_t _tversion_t _tof_t _tthe_t _tprovided_t #_tFbcVariableType_t_t _tenumeration_t.

@_tparam_t _tfvt_t _tthe_t #_tFbcVariableType_t_t _tenumeration_t _tvalue_t _tto_t _tconvert_t.

@_treturn_t _tA_t _tstring_t _tcorresponding_t _tto_t _tthe_t _tgiven_t _ttype_t: "_tlinear_t", "_tquadratic_t", "_tinvalid_t _tFbcVariableType_t _tvalue_t", _tor_t @_tc_t _tNULL_t _tif_t _tthe_t _tvalue_t _tis_t @_tsbmlconstant_t{_tFBC_VARIABLE_TYPE_INVALID_t, _tFbcVariableType_t_t} _tor_t _tanother_t _tinvalid_t _tenumeration_t _tvalue_t.

@_tcopydetails_t _tdoc_returned_unowned_char_t

@_tif_t _tconly_t @_tmemberof_t _tFbc_t_t @_tendif_t

Variable Documentation

◆ SBML_FBC_VARIABLE_TYPE_STRINGS

const char* SBML_FBC_VARIABLE_TYPE_STRINGS[]
static
Initial value:
=
{
"linear"
, "quadratic"
, "invalid FbcVariableType value"
}