From 0097a0b756126179ec09183fb35d2f4eb7b12284 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 14 May 2022 08:47:13 -0700 Subject: [PATCH] core: Rescan bindings for previous commit --- src/core/bindings/modulegen__gcc_ILP32.py | 8 ++++---- src/core/bindings/modulegen__gcc_LP64.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/bindings/modulegen__gcc_ILP32.py b/src/core/bindings/modulegen__gcc_ILP32.py index b368333eb..2edd18b0a 100644 --- a/src/core/bindings/modulegen__gcc_ILP32.py +++ b/src/core/bindings/modulegen__gcc_ILP32.py @@ -1215,9 +1215,9 @@ def register_Ns3Length_methods(root_module, cls): 'bool', [param('ns3::Length const &', 'other'), param('double', 'tolerance', default_value='ns3::Length::DEFAULT_TOLERANCE')], is_const=True) - ## length.h (module 'core'): static std::tuple ns3::Length::TryParse(double value, std::string const & unit) [member function] + ## length.h (module 'core'): static std::optional ns3::Length::TryParse(double value, std::string const & unit) [member function] cls.add_method('TryParse', - 'std::tuple< bool, ns3::Length >', + 'std::optional< ns3::Length >', [param('double', 'value'), param('std::string const &', 'unit')], is_static=True) ## length.h (module 'core'): void ns3::Length::swap(ns3::Length & other) [member function] @@ -5379,9 +5379,9 @@ def register_functions(root_module): module.add_function('FemtoSeconds', 'ns3::Time', [param('uint64_t', 'value')]) - ## length.h (module 'core'): std::tuple ns3::FromString(std::string unitString) [free function] + ## length.h (module 'core'): std::optional ns3::FromString(std::string unitString) [free function] module.add_function('FromString', - 'std::tuple< bool, ns3::Length::Unit >', + 'std::optional< ns3::Length::Unit >', [param('std::string', 'unitString')]) ## log.h (module 'core'): ns3::LogComponent & ns3::GetLogComponent(std::string const name) [free function] module.add_function('GetLogComponent', diff --git a/src/core/bindings/modulegen__gcc_LP64.py b/src/core/bindings/modulegen__gcc_LP64.py index b65735806..ee9845c48 100644 --- a/src/core/bindings/modulegen__gcc_LP64.py +++ b/src/core/bindings/modulegen__gcc_LP64.py @@ -1215,9 +1215,9 @@ def register_Ns3Length_methods(root_module, cls): 'bool', [param('ns3::Length const &', 'other'), param('double', 'tolerance', default_value='ns3::Length::DEFAULT_TOLERANCE')], is_const=True) - ## length.h (module 'core'): static std::tuple ns3::Length::TryParse(double value, std::string const & unit) [member function] + ## length.h (module 'core'): static std::optional ns3::Length::TryParse(double value, std::string const & unit) [member function] cls.add_method('TryParse', - 'std::tuple< bool, ns3::Length >', + 'std::optional< ns3::Length >', [param('double', 'value'), param('std::string const &', 'unit')], is_static=True) ## length.h (module 'core'): void ns3::Length::swap(ns3::Length & other) [member function] @@ -5379,9 +5379,9 @@ def register_functions(root_module): module.add_function('FemtoSeconds', 'ns3::Time', [param('uint64_t', 'value')]) - ## length.h (module 'core'): std::tuple ns3::FromString(std::string unitString) [free function] + ## length.h (module 'core'): std::optional ns3::FromString(std::string unitString) [free function] module.add_function('FromString', - 'std::tuple< bool, ns3::Length::Unit >', + 'std::optional< ns3::Length::Unit >', [param('std::string', 'unitString')]) ## log.h (module 'core'): ns3::LogComponent & ns3::GetLogComponent(std::string const name) [free function] module.add_function('GetLogComponent',