A classification of almost contact metric manifolds