On classes of meromorphic or complex harmonic functions with a pole at the infinity