Skip to content

Commit

Permalink
feat: expose the GetStartIndex and GetEndIndex methods of the Routing…
Browse files Browse the repository at this point in the history
…IndexManager
  • Loading branch information
ateirney authored and Mizux committed Jan 16, 2020
1 parent 72731ca commit fa9b346
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ortools/constraint_solver/java/routing_index_manager.i
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
DEFINE_INDEX_TYPE_TYPEDEF(operations_research::RoutingNodeIndex,
operations_research::RoutingIndexManager::NodeIndex);

%rename (getStartIndex) GetStartIndex;
%rename (getEndIndex) GetEndIndex;
%rename (indexToNode) IndexToNode;
%rename (nodeToIndex) NodeToIndex;
%rename (nodesToIndices) NodesToIndices;
Expand All @@ -34,6 +36,8 @@ DEFINE_INDEX_TYPE_TYPEDEF(operations_research::RoutingNodeIndex,
namespace operations_research {

%unignore RoutingIndexManager;
%unignore RoutingIndexManager::GetStartIndex(int);
%unignore RoutingIndexManager::GetEndIndex(int);
%unignore RoutingIndexManager::IndexToNode(int64);
%unignore RoutingIndexManager::NodeToIndex(NodeIndex);
%unignore RoutingIndexManager::NodesToIndices(const std::vector<NodeIndex>&);
Expand Down

0 comments on commit fa9b346

Please sign in to comment.