~ubuntu-branches/ubuntu/wily/aspectc++/wily

« back to all changes in this revision

Viewing changes to AspectC++/AspectInfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-15 10:17:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090615101702-qsr30iptwbxylmo2
Tags: 1.0pre4~svn.20090615-1
* New upstream release.
* don't ignore errors in the postrm script
* avoid spurious creation of empty dir ./usr/sbin/
* improve short descriptions of libpuma-doc and libpuma-dev
* bump Standards-Version to 3.8.1
* bump debhelper compat level to level 7 (latest in stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <string>
27
27
using std::string;
28
28
 
 
29
#ifdef ACMODEL
 
30
#include "Utils.h"
 
31
#else
29
32
#include "JoinPointLoc.h"
 
33
#endif
30
34
#include "ThisJoinPoint.h"
31
35
 
32
36
class BackEndProblems;
33
37
class AdviceInfo;
34
38
 
35
39
class AspectInfo {
 
40
#ifdef ACMODEL
 
41
  ACM_Aspect &_aspect;
 
42
#else
36
43
  JPL_Aspect &_aspect;
 
44
#endif
37
45
  ThisJoinPoint _aspectof_tjp;
38
46
  list<AdviceInfo*> _advice_infos;
39
47
    
40
48
 public:
41
49
 
 
50
#ifdef ACMODEL
 
51
  AspectInfo (ACM_Aspect &a) : _aspect (a) {}
 
52
  bool operator < (const AspectInfo &right) const {
 
53
    return name() < right.name();
 
54
  }
 
55
  ACM_Aspect &loc () const { return _aspect; }
 
56
  string name () const { return signature (_aspect); }
 
57
#else
42
58
  AspectInfo (JPL_Aspect &a) : _aspect (a) {}
43
59
  bool operator < (const AspectInfo &right) const {
44
60
    return string (_aspect.signature ()) < string (right.loc ().signature ());
45
61
  }
46
62
  JPL_Aspect &loc () const { return _aspect; }
47
63
  const char *name () const { return _aspect.signature (); }
 
64
#endif
48
65
  const ThisJoinPoint &aspectof_this_join_point () const { return _aspectof_tjp; }
49
66
  ThisJoinPoint &aspectof_this_join_point () { return _aspectof_tjp; }
50
67