(self, preserve_base, preserve_deftype)
Reset and clear variables, type definitions, array base and fields.
Reset and clear variables, type definitions, array base and fields.
Reset and clear variables type definitions array base and fields .
def clear(self, preserve_base, preserve_deftype):
        """Reset and clear variables, type definitions, array base and fields."""
        if not preserve_deftype:
            # deftype is not preserved on CHAIN with ALL, but is preserved with MERGE
            self.clear_deftype()
        # clear arrays, scalars and string space
        self.scalars.clear()
        self.arrays.clear()
        self.strings.clear()
        if not(preserve_base):
            # clear OPTION BASE
            self.arrays.clear_base()
        # release all disk buffers (FIELD)?
        self.reset_fields()
def clear ( self , preserve_base , preserve_deftype ) : if not preserve_deftype : # deftype is not preserved on CHAIN with ALL, but is preserved with MERGE self . clear_deftype ( ) # clear arrays, scalars and string space self . scalars . clear ( ) self . arrays . clear ( ) self . strings . clear ( ) if not ( preserve_base ) : # clear OPTION BASE self . arrays . clear_base ( ) # release all disk buffers (FIELD)? self . reset_fields ( )