I looked up nitroglycerine in a science dictionary (Oxford Dictionary of Science, 2003), and it explicitly mentions that nitroglycerine is an ester and not a nitro compound.
However my teacher told us in class, that nitroglycerine is a nitro compound (She didn't say it wasn't an ester though …).
The definition for a nitro compound (courtesy Wikipedia) is:
Nitro compounds are organic compounds that contain one or more nitro functional groups ($\ce{−NO2}$).
Assuming that definition is correct, as well and looking at the structure of nitroglycerine, it appears (to me) that nitroglycerine is both an ester and a nitro compound.
So who's right here?