File: local-downcast-packages-multi.cpp

package info (click to toggle)
libsbml 5.10.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 141,800 kB
  • ctags: 98,793
  • sloc: cpp: 804,405; xml: 206,907; ansic: 66,144; cs: 52,916; java: 25,093; python: 23,449; sh: 9,847; perl: 8,414; makefile: 7,580; ruby: 4,760; csh: 3
file content (108 lines) | stat: -rw-r--r-- 3,230 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#ifdef USE_MULTI
else if (pkgName == "multi")
{
  switch (sb->getTypeCode() )
  {
    case SBML_LIST_OF:
      name = sb->getElementName();
      if (name == "listOfPossibleSpeciesFeatureValues")
      {
        return SWIGTYPE_p_ListOfPossibleSpeciesFeatureValues;
      }
      else if (name == "listOfSpeciesFeatureValues")
      {
        return SWIGTYPE_p_ListOfSpeciesFeatureValues;
      }
      else if (name == "listOfCompartmentReferences")
      {
        return SWIGTYPE_p_ListOfCompartmentReferences;
      }
      else if (name == "listOfSpeciesTypeInstances")
      {
        return SWIGTYPE_p_ListOfSpeciesTypeInstances;
      }
      else if (name == "listOfInSpeciesTypeBonds")
      {
        return SWIGTYPE_p_ListOfInSpeciesTypeBonds;
      }
      else if (name == "listOfDenotedSpeciesTypeComponentIndexes")
      {
        return SWIGTYPE_p_ListOfDenotedSpeciesTypeComponentIndexes;
      }
      else if (name == "listOfOutwardBindingSites")
      {
        return SWIGTYPE_p_ListOfOutwardBindingSites;
      }
      else if (name == "listOfSpeciesFeatureChanges")
      {
        return SWIGTYPE_p_ListOfSpeciesFeatureChanges;
      }
      else if (name == "listOfSpeciesFeatureTypes")
      {
        return SWIGTYPE_p_ListOfSpeciesFeatureTypes;
      }
      else if (name == "listOfSpeciesTypeComponentIndexes")
      {
        return SWIGTYPE_p_ListOfSpeciesTypeComponentIndexes;
      }
      else if (name == "listOfSpeciesFeatures")
      {
        return SWIGTYPE_p_ListOfSpeciesFeatures;
      }
      else if (name == "listOfSpeciesTypeComponentMapInProducts")
      {
        return SWIGTYPE_p_ListOfSpeciesTypeComponentMapInProducts;
      }
      else if (name == "listOfMultiSpeciesTypes")
      {
        return SWIGTYPE_p_ListOfMultiSpeciesTypes;
      }

      return SWIGTYPE_p_ListOf;

    case SBML_MULTI_POSSIBLE_SPECIES_FEATURE_VALUE:
      return SWIGTYPE_p_PossibleSpeciesFeatureValue;

    case SBML_MULTI_SPECIES_FEATURE_VALUE:
      return SWIGTYPE_p_SpeciesFeatureValue;

    case SBML_MULTI_COMPARTMENT_REFERENCE:
      return SWIGTYPE_p_CompartmentReference;

    case SBML_MULTI_SPECIES_TYPE_INSTANCE:
      return SWIGTYPE_p_SpeciesTypeInstance;

    case SBML_MULTI_IN_SPECIES_TYPE_BOND:
      return SWIGTYPE_p_InSpeciesTypeBond;

    case SBML_MULTI_DENOTED_SPECIES_TYPE_COMPONENT_INDEX:
      return SWIGTYPE_p_DenotedSpeciesTypeComponentIndex;

    case SBML_MULTI_OUTWARD_BINDING_SITE:
      return SWIGTYPE_p_OutwardBindingSite;

    case SBML_MULTI_SPECIES_FEATURE_CHANGE:
      return SWIGTYPE_p_SpeciesFeatureChange;

    case SBML_MULTI_SPECIES_FEATURE_TYPE:
      return SWIGTYPE_p_SpeciesFeatureType;

    case SBML_MULTI_SPECIES_TYPE_COMPONENT_INDEX:
      return SWIGTYPE_p_SpeciesTypeComponentIndex;

    case SBML_MULTI_SPECIES_FEATURE:
      return SWIGTYPE_p_SpeciesFeature;

    case SBML_MULTI_SPECIES_TYPE_COMPONENT_MAP_IN_PRODUCT:
      return SWIGTYPE_p_SpeciesTypeComponentMapInProduct;

    case SBML_MULTI_SPECIES_TYPE:
      return SWIGTYPE_p_MultiSpeciesType;

    default:
      return SWIGTYPE_p_SBase;
  }
}

#endif // USE_MULTI