Changes between Version 3 and Version 4 of addnewenum


Ignore:
Timestamp:
11/15/14 14:25:15 (10 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • addnewenum

    v3 v4  
    11== Introduction ==
    22
    3 Each model input is assigned an Enum in order to be found quickly (integers are easier to compare than strings).
     3The idea is that comparing integers in C++ is easier and faster than comparing strings. So each model input is assigned an enum. In the code you will see `IceVolumeAboveFloatationEnum` but the code interpret this word as the integer 682. Each enum has a number associated to it automatically by the compiler. See this [[http://en.wikipedia.org/wiki/Enumerated_type wikipedia page]] for more info.
    44
    55== Add a new Enum ==