当前位置: 首页>>代码示例>>Python>>正文


Python Overload.overloaded方法代码示例

本文整理汇总了Python中sample.Overload.overloaded方法的典型用法代码示例。如果您正苦于以下问题:Python Overload.overloaded方法的具体用法?Python Overload.overloaded怎么用?Python Overload.overloaded使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sample.Overload的用法示例。


在下文中一共展示了Overload.overloaded方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testOverloadMethod3

# 需要导入模块: from sample import Overload [as 别名]
# 或者: from sample.Overload import overloaded [as 别名]
 def testOverloadMethod3(self):
     '''Check overloaded method call for signature "overloaded(const Point&)".'''
     overload = Overload()
     point = Point()
     self.assertEqual(overload.overloaded(point), Overload.Function3)
开发者ID:Hasimir,项目名称:Shiboken,代码行数:7,代码来源:overload_test.py

示例2: testOverloadMethod1

# 需要导入模块: from sample import Overload [as 别名]
# 或者: from sample.Overload import overloaded [as 别名]
 def testOverloadMethod1(self):
     '''Check overloaded method call for signature "overloaded(Size*)".'''
     overload = Overload()
     size = Size()
     self.assertEqual(overload.overloaded(size), Overload.Function1)
开发者ID:Hasimir,项目名称:Shiboken,代码行数:7,代码来源:overload_test.py

示例3: testOverloadMethod2

# 需要导入模块: from sample import Overload [as 别名]
# 或者: from sample.Overload import overloaded [as 别名]
 def testOverloadMethod2(self):
     '''Check overloaded method call for signature "overloaded(Point*, ParamEnum)".'''
     overload = Overload()
     point = Point()
     self.assertEqual(overload.overloaded(point, Overload.Param1), Overload.Function2)
开发者ID:Hasimir,项目名称:Shiboken,代码行数:7,代码来源:overload_test.py

示例4: testOverloadMethod0

# 需要导入模块: from sample import Overload [as 别名]
# 或者: from sample.Overload import overloaded [as 别名]
 def testOverloadMethod0(self):
     '''Check overloaded method call for signature "overloaded()".'''
     overload = Overload()
     self.assertEqual(overload.overloaded(), Overload.Function0)
开发者ID:Hasimir,项目名称:Shiboken,代码行数:6,代码来源:overload_test.py


注:本文中的sample.Overload.overloaded方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。