AspectC++

Пример

aspect Tracer
{ 
   advice call("% %Iter::Reset(...)") : before()
   {
      cerr << "about to call Iter::Reset for " << JoinPoint::signature() << endl;
   }
};

Tracer выведет сообщение перед каждым вызовом Reset для классов заканчивающихся на Iter .

См. также

Примечания

  1. AspectC++ Publications (англ.).

Ссылки

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.