COIN-OR::LEMON - Graph Library

Changeset 936:b6f76c95992e in lemon


Ignore:
Timestamp:
03/04/10 10:03:14 (8 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Message:

Clarify type names in NetworkSimplex? (#353)

This patch clarifies the misleading effects of the renamings
in [f3bc4e9b5f3a].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/network_simplex.h

    r911 r936  
    171171 
    172172    // State constants for arcs 
    173     enum ArcStateEnum { 
     173    enum ArcState { 
    174174      STATE_UPPER = -1, 
    175175      STATE_TREE  =  0, 
    176176      STATE_LOWER =  1 
    177177    }; 
     178 
     179    typedef std::vector<signed char> StateVector; 
     180    // Note: vector<signed char> is used instead of vector<ArcState> for 
     181    // efficiency reasons 
    178182 
    179183  private: 
     
    216220    IntVector _dirty_revs; 
    217221    BoolVector _forward; 
    218     BoolVector _state; 
     222    StateVector _state; 
    219223    int _root; 
    220224 
     
    247251      const IntVector  &_target; 
    248252      const CostVector &_cost; 
    249       const BoolVector &_state; 
     253      const StateVector &_state; 
    250254      const CostVector &_pi; 
    251255      int &_in_arc; 
     
    299303      const IntVector  &_target; 
    300304      const CostVector &_cost; 
    301       const BoolVector &_state; 
     305      const StateVector &_state; 
    302306      const CostVector &_pi; 
    303307      int &_in_arc; 
     
    338342      const IntVector  &_target; 
    339343      const CostVector &_cost; 
    340       const BoolVector &_state; 
     344      const StateVector &_state; 
    341345      const CostVector &_pi; 
    342346      int &_in_arc; 
     
    411415      const IntVector  &_target; 
    412416      const CostVector &_cost; 
    413       const BoolVector &_state; 
     417      const StateVector &_state; 
    414418      const CostVector &_pi; 
    415419      int &_in_arc; 
     
    514518      const IntVector  &_target; 
    515519      const CostVector &_cost; 
    516       const BoolVector &_state; 
     520      const StateVector &_state; 
    517521      const CostVector &_pi; 
    518522      int &_in_arc; 
Note: See TracChangeset for help on using the changeset viewer.