roman a clef

noun

1.
a novel in which actual persons and events are disguised as fictional characters