Skip to content

Commit

Permalink
route: rewrite link-state calculator with Boost.MultiArray
Browse files Browse the repository at this point in the history
refs #5308

Change-Id: I0dc899479819430e86b9124b86f408f044367743
  • Loading branch information
yoursunny committed Mar 22, 2024
1 parent 5a1d77a commit 29b91ff
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 464 deletions.
4 changes: 2 additions & 2 deletions src/adjacency-list.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2014-2023, The University of Memphis,
* Copyright (c) 2014-2024, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
Expand Down Expand Up @@ -40,7 +40,7 @@ AdjacencyList::insert(const Adjacent& adjacent)
}

Adjacent
AdjacencyList::getAdjacent(const ndn::Name& adjName)
AdjacencyList::getAdjacent(const ndn::Name& adjName) const
{
Adjacent adj(adjName);
auto it = find(adjName);
Expand Down
4 changes: 2 additions & 2 deletions src/adjacency-list.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2014-2023, The University of Memphis,
* Copyright (c) 2014-2024, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
Expand Down Expand Up @@ -84,7 +84,7 @@ class AdjacencyList
getNumOfActiveNeighbor() const;

Adjacent
getAdjacent(const ndn::Name& adjName);
getAdjacent(const ndn::Name& adjName) const;

bool
operator==(const AdjacencyList& adl) const;
Expand Down
Loading

0 comments on commit 29b91ff

Please sign in to comment.