<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def row_to_dict(self, row):
        '''
        translate a row of the current table to dictionary

        :param row: a row of the current table (selected with \\*)
        :return: dictionary of all fields
        '''
        res = {}
        for i in range(len(self._fields)):
            res[self._fields[i][0]] = row[i]
        return res