Пример #1
0
 def test_no_less(self):
     no_ns = self.global_ns.namespace('noless')
     for typedef in no_ns.typedefs():
         self.assertTrue(
             not declarations.has_public_less(typedef),
             "Class '%s' should not have public operator<" %
             typedef.decl_string)
Пример #2
0
 def test_yes_less(self):
     yes_ns = self.global_ns.namespace('yesless')
     for typedef in yes_ns.typedefs():
         self.assertTrue(
             declarations.has_public_less(typedef),
             "Class '%s' should have public operator<" %
             typedef.decl_string)
Пример #3
0
 def _get_less_than_comparable( self ):
     if None is self._less_than_comparable:
         self._less_than_comparable = declarations.has_public_less( self )
     return self._less_than_comparable
Пример #4
0
 def _get_less_than_comparable(self):
     if None is self._less_than_comparable:
         self._less_than_comparable = declarations.has_public_less(self)
     return self._less_than_comparable