Changes between Version 4 and Version 5 of addnewenum


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

--

Legend:

Unmodified
Added
Removed
Modified
  • addnewenum

    v4 v5  
    11== Introduction ==
    22
    3 The 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.
     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 ==