COIN-OR::LEMON - Graph Library

Changeset 783:81bf2d766164 in lemon-0.x for src/hugo


Ignore:
Timestamp:
09/02/04 12:54:26 (16 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1076
Message:
 
Location:
src/hugo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/array_map_factory.h

    r782 r783  
    2525
    2626      typedef V Value;
     27      typedef V ValueType;
    2728      typedef A Allocator;
    2829
     
    5758
    5859      template <typename CMap> Map(const CMap& copy)
    59         : capacity(0), values(0), MapBase(copy) {
     60        : MapBase(copy), capacity(0), values(0) {
    6061        if (MapBase::getGraph()) {
    6162          allocate_memory();
  • src/hugo/map_registry.h

    r782 r783  
    5757      */       
    5858       
    59       MapBase(const MapBase& copy) : registry(0), graph(copy.graph) {
     59      MapBase(const MapBase& copy) : graph(copy.graph), registry(0) {
    6060        if (copy.registry) {
    6161          copy.registry->attach(*this);
     
    7575          copy.registry->attach(*this);
    7676        }
     77        return *this;
    7778      }
    7879       
     
    233234     * Notify all the registered maps about a Key added.
    234235     */
    235     virtual void add(Key& key) {
     236    void add(Key& key) {
    236237      typename Container::iterator it;
    237238      for (it = container.begin(); it != container.end(); ++it) {
     
    243244     * Notify all the registered maps about a Key erased.
    244245     */
    245     virtual void erase(Key& key) {
     246    void erase(Key& key) {
    246247      typename Container::iterator it;
    247248      for (it = container.begin(); it != container.end(); ++it) {
     
    253254     * Notify all the registered maps about the map should be cleared.
    254255     */
    255     virtual void clear() {
     256    void clear() {
    256257      typename Container::iterator it;
    257258      for (it = container.begin(); it != container.end(); ++it) {
Note: See TracChangeset for help on using the changeset viewer.