本文整理汇总了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)
示例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)
示例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)
示例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)