Add typedef for AtomicStructureAdapterPtr.
Use AtomicStructureAdapterPtr instead of local typedef.