COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
03/01/07 18:14:24 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3215
Message:

getNotifier to notifier renaming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/edge_set_extender.h

    r2046 r2384  
    8282  public:
    8383
    84     using Parent::getNotifier;
     84    using Parent::notifier;
    8585
    8686    /// \brief Gives back the edge alteration notifier.
    8787    ///
    8888    /// Gives back the edge alteration notifier.
    89     EdgeNotifier& getNotifier(Edge) const {
     89    EdgeNotifier& notifier(Edge) const {
    9090      return edge_notifier;
    9191    }
     
    247247    Edge addEdge(const Node& from, const Node& to) {
    248248      Edge edge = Parent::addEdge(from, to);
    249       getNotifier(Edge()).add(edge);
     249      notifier(Edge()).add(edge);
    250250      return edge;
    251251    }
    252252   
    253253    void clear() {
    254       getNotifier(Edge()).clear();
     254      notifier(Edge()).clear();
    255255      Parent::clear();
    256256    }
    257257
    258258    void erase(const Edge& edge) {
    259       getNotifier(Edge()).erase(edge);
     259      notifier(Edge()).erase(edge);
    260260      Parent::erase(edge);
    261261    }
     
    341341  public:
    342342
    343     using Parent::getNotifier;
     343    using Parent::notifier;
    344344   
    345     EdgeNotifier& getNotifier(Edge) const {
     345    EdgeNotifier& notifier(Edge) const {
    346346      return edge_notifier;
    347347    }
    348348
    349     UEdgeNotifier& getNotifier(UEdge) const {
     349    UEdgeNotifier& notifier(UEdge) const {
    350350      return uedge_notifier;
    351351    }
     
    590590    UEdge addEdge(const Node& from, const Node& to) {
    591591      UEdge uedge = Parent::addEdge(from, to);
    592       getNotifier(UEdge()).add(uedge);
    593       getNotifier(Edge()).add(Parent::direct(uedge, true));
    594       getNotifier(Edge()).add(Parent::direct(uedge, false));
     592      notifier(UEdge()).add(uedge);
     593      notifier(Edge()).add(Parent::direct(uedge, true));
     594      notifier(Edge()).add(Parent::direct(uedge, false));
    595595      return uedge;
    596596    }
    597597   
    598598    void clear() {
    599       getNotifier(Edge()).clear();
    600       getNotifier(UEdge()).clear();
     599      notifier(Edge()).clear();
     600      notifier(UEdge()).clear();
    601601      Parent::clear();
    602602    }
    603603
    604604    void erase(const UEdge& uedge) {
    605       getNotifier(Edge()).erase(Parent::direct(uedge, true));
    606       getNotifier(Edge()).erase(Parent::direct(uedge, false));
    607       getNotifier(UEdge()).erase(uedge);
     605      notifier(Edge()).erase(Parent::direct(uedge, true));
     606      notifier(Edge()).erase(Parent::direct(uedge, false));
     607      notifier(UEdge()).erase(uedge);
    608608      Parent::erase(uedge);
    609609    }
Note: See TracChangeset for help on using the changeset viewer.