My understanding of a D flip flop is that when the clock is high and D=1, it sets Q to 1. If D=0, Q is set to 0. So it is like a set to 1 if D=1 and reset to 0 otherwise.
The table repeatedly given in my book is:
D CLK Q QN 0 High 0 1 1 High 1 0 x 0 (last Q) (last QN) x 1 (last Q) (last QN)
The book is: John F Wakerly, Digital Design Principles and Practices.
It repeatedly reuses this table when describing negative edge/enable flip flops. It seems like it is doing a T flip flop, basically. But it defines T flip flop later too.
Am I misunderstanding D flip flop? Why does the book differ from other sources?