Beispiel #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)
Beispiel #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)
Beispiel #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
 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