COIN-OR::LEMON - Graph Library

Changeset 2547:f393a8162688 in lemon-0.x for lemon/concepts


Ignore:
Timestamp:
12/27/07 14:40:16 (16 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3424
Message:

Renaming state_enum to State
Removing "Type" suffix from typedefs
Moving implementation into the class definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/heap.h

    r2391 r2547  
    5353      /// The ItemIntMap _should_ be initialized in such way, that it maps
    5454      /// PRE_HEAP (-1) to any element to be put in the heap...
    55       enum state_enum {
     55      enum State {
    5656        IN_HEAP = 0,
    5757        PRE_HEAP = -1,
     
    156156      /// get back to the heap again.
    157157      /// \param i The item.
    158       state_enum state(const Item &i) const {}
     158      State state(const Item &i) const {}
    159159
    160160      /// \brief Sets the state of the \c item in the heap.
     
    165165      /// \param i The item.
    166166      /// \param st The state. It should not be \c IN_HEAP.
    167       void state(const Item& i, state_enum st) {}
     167      void state(const Item& i, State st) {}
    168168
    169169
     
    182182          ignore_unused_variable_warning(prio);
    183183
    184           typedef typename _Heap::state_enum state_enum;
    185           state_enum state;
     184          typedef typename _Heap::State State;
     185          State state;
    186186
    187187          ignore_unused_variable_warning(state);
Note: See TracChangeset for help on using the changeset viewer.