|
libSBML C API
libSBML 5.21.2 C API
|
@_tstruct_t _tToken_t_t @_tsbmlbrief_t{_tcore_t} _tA_t _ttoken_t _tfrom_t _tFormulaTokenizer_nextToken_t().
_tA_t #_tToken_t_t _ttoken_t _thas_t _ta_t @_tc_t _ttype_t _tand_t _ta_t @_tc_t _tvalue_t. _tThe_t @_tc_t _tvalue_t _tfield_t _tis_t _ta_t _tunion_t _tof_t _tdifferent_t _tpossible_t _tmembers_t; _tthe_t _tmember_t _tthat_t _tholds_t _tthe_t _tvalue_t _tfor_t _ta_t _tgiven_t _ttoken_t (_tand_t _tthus_t _tthe_t _tname_t _tof_t _tthe_t _tmember_t _tthat_t _tis_t _tto_t _tbe_t _taccessed_t _tprogrammatically_t) _tdepends_t _ton_t _tthe_t _tvalue_t _tof_t _tthe_t @_tc_t _ttype_t _tfield_t. _tThe_t _tfollowing_t _ttable_t _tlists_t _tthe_t _tpossible_t _tscenarios_t:
<_tcenter_t> <_ttable_t _tborder_t="_t0_t" _tclass_t="_ttext_t-_ttable_t _twidth80_t _tnormal_t-_tfont_t _talt_t-_trow_t-_tcolors_t"> <_ttr_t><_tth_t>_tValue_t _tof_t _tthe_t _tfield_t <_tcode_t>_ttype_t</_tcode_t></_tth_t><_tth_t>_tMember_t _twithin_t <_tcode_t>_tvalue_t</_tcode_t> _tto_t _tuse_t</_tth_t></_ttr_t> <_ttr_t><_ttd_t><_tcode_t>_tTT_NAME_t</_tcode_t></_ttd_t><_ttd_t><_tcode_t>_tname_t</_tcode_t></_ttd_t></_ttr_t> <_ttr_t><_ttd_t><_tcode_t>_tTT_INTEGER_t</_tcode_t></_ttd_t><_ttd_t><_tcode_t>_tinteger_t</_tcode_t></_ttd_t></_ttr_t> <_ttr_t><_ttd_t><_tcode_t>_tTT_REAL_t</_tcode_t></_ttd_t><_ttd_t><_tcode_t>_treal_t</_tcode_t></_ttd_t></_ttr_t> <_ttr_t><_ttd_t><_tcode_t>_tTT_REAL_t</_tcode_t>_E_t</_ttd_t><_ttd_t><_tcode_t>_treal_t</_tcode_t> _tand_t <_tcode_t>_texponent_t</_tcode_t></_ttd_t></_ttr_t> <_ttr_t><_ttd_t><_ti_t>_tAnything_t _telse_t</_ti_t></_ttd_t><_ttd_t><_tcode_t>_tch_t</_tcode_t></_ttd_t></_ttr_t> </_ttable_t> </_tcenter_t>
_tIf_t _tthis_t _ttoken_t _tencodes_t _ta_t _treal_t _tnumber_t _tin_t _te_t-_tnotation_t, @_tc_t _ttype_t _twill_t _tbe_t @_tc_t _tTT_REAL_E_t _tinstead_t _tof_t @_tc_t _tTT_REAL_t. _tThe_t _tfield_t @_tc_t _tvalue_t._treal_t _twill_t _tthen_t _tcontain_t _tthe_t _tmantissa_t, _tand_t _tthe_t _tseparate_t _tfield_t _tnamed_t @_tc_t _texponent_t _twill_t _tcontain_t (_tcan_t _tyou_t _tguess_t?) _tthe_t _texponent_t. _tFor_t _texample_t, _tif_t _twe_t _thave_t _ta_t _tpointer_t _tto_t _ta_t _tstructure_t _tnamed_t @_tc_t _tt_t, _tthen_t _tthe_t _trepresentation_t _tfor_t &_tquot_t;<_tcode_t>_t1_t._t2e3_t</_tcode_t>&_tquot_t; _twill_t _tbe_t: @_tverbatim_t _tt_t->_ttype_t = _tTT_REAL_E_t; _tt_t->_tvalue_t._treal_t = _t1_t._t2_t; _tt_t->_texponent_t = _t3_t; @_tendverbatim_t
_tWhen_t _tthe_t @_tc_t _ttype_t _thas_t _ta_t _tvalue_t _tof_t @_tsbmlconstant_t{_tTT_UNKNOWN_t, _tTokenType_t_t}, _tthe_t _tfield_t @_tc_t _tch_t _twill_t _tcontain_t _tthe_t _tunrecognized_t _tcharacter_t. _tWhen_t _tthe_t _ttype_t _tis_t @_tc_t _tTT_END_t, _tthe_t _tfield_t @_tc_t _tch_t _twill_t _tcontain_t @_tc_t '\_t0_t'. _tFor_t _tall_t _tothers_t, _tthe_t @_tc_t _tvalue._tch_t _twill_t _tcontain_t _tthe_t _tcorresponding_t _tcharacter_t.
Data Fields | |
| long | exponent |
| TokenType_t | type |
| union { | |
| char | ch |
| long | integer |
| char * | name |
| double | real |
| } | value |
| long Token_t::exponent |
Secondary field used when the token is a real in e-notation.
| TokenType_t Token_t::type |
This token's type.
| union { ... } Token_t::value |
Value of the token.