Pretty much the title says it all. For $f$, $g$ in $S(\mathbb{R})$ one has
$$ \langle f, g \rangle = \int_{-\infty}^{\infty} f(x)g(x) dx = \int_{-\infty}^\infty \hat{f}(k)\hat{g}(k) dk = \langle \hat{f},\hat{g} \rangle \quad \quad (1) $$
where $\hat{f}$ is the Fourier transform of $f$.
Are there other function transforms with the property (1) above? If there are, is there some kind of generalized Fourier transform that encompasses them all? If there aren't, could you provide a link to the proof?
What is a good reference to read about this subject?
Edit 1: As Yiorgos showed below, it is rather trivial to find a host of $T$s such that
$$\langle f,g\rangle = \langle Tf, Tg \rangle \,. $$
However, all these $T$s satisfy that there exists an $n$ such that
$$T^n = 1 \,. \quad\quad (2)$$
This is also true for the Fourier transform. A $T$ that does not satisfy (2) and still preserves the scalar product is simply
$$Tf = f(x+a) \,.$$
Are there any other examples of $T$ that do not satisfy $T^n = 1$? I would be specifically interested in $T$s that, in analogy with the Fourier transform, do NOT preserve the "shape" of $f$.
Edit 2: Maybe I should create another question given that the original one has been answered.
Anyhow, as Yiorgos points out, one can find unitary transformations $T(\alpha)$ in general parametrized by an infinite number of phases which I collectively represent here as $\alpha$. These $T$ do not satisfy $T^n = 1$.
On the other hand, any two such $T$ commute:
$$T(\alpha_1) \cdot T(\alpha_2) = T(\alpha_2) \cdot T(\alpha_1) $$
The new question is then, does there exist a family of unitary transformations on $S(\mathbb{R})$ as above - say parametrized by some parameters collectively denoted as $\beta$ - such that $T(\beta_1)$ and $T(\beta_2)$ do not commute for some values of $\beta_1$ and $\beta_2$?