lemon/concepts/digraph.h
changeset 893 d395358592df
parent 786 e20173729589
child 1049 7bf489cf624e
child 1084 8b2d4e5d96e4
equal deleted inserted replaced
11:71e96538a75f 12:e27936e0bf81
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2009
     5  * Copyright (C) 2003-2010
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
   432         /// Constructor with given initial value
   432         /// Constructor with given initial value
   433         NodeMap(const Digraph&, T) { }
   433         NodeMap(const Digraph&, T) { }
   434 
   434 
   435       private:
   435       private:
   436         ///Copy constructor
   436         ///Copy constructor
   437         NodeMap(const NodeMap& nm) : 
   437         NodeMap(const NodeMap& nm) :
   438           ReferenceMap<Node, T, T&, const T&>(nm) { }
   438           ReferenceMap<Node, T, T&, const T&>(nm) { }
   439         ///Assignment operator
   439         ///Assignment operator
   440         template <typename CMap>
   440         template <typename CMap>
   441         NodeMap& operator=(const CMap&) {
   441         NodeMap& operator=(const CMap&) {
   442           checkConcept<ReadMap<Node, T>, CMap>();
   442           checkConcept<ReadMap<Node, T>, CMap>();