~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to AspectC++/IntroductionInfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-04-07 11:56:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060407115635-e8wfgmetasrf2p27
Tags: 0.99+1.0pre3-1
* new upstream release
* Apply patch from Martin Michlmayr for g++-4.1 (Closes: #357901)
* further (simple) patches in Puma/ and AspectC++ for g++-4.1
* note that Puma needs to be rewoven so that it can be compiled
  with g++-4.1. This will be done we switch the default compiler
  version.
* Patch JoinPointRepo.cc so that it doesn't loop endlessly anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
class AspectInfo;
37
37
 
38
38
class IntroductionInfo {
39
 
 public:
 
39
public:
40
40
  enum intro_type { INTRO_BASECLASS, INTRO_INHERITED, INTRO_OTHER,
41
 
                    INTRO_ERROR };
 
41
    INTRO_SLICE_REF, INTRO_SLICE_DECL, INTRO_ERROR };
42
42
  
43
43
 private:
44
44
  AspectInfo *_aspect;
59
59
  intro_type type () const { return _type; }
60
60
  const char *type_str () const {
61
61
    switch (_type) {
62
 
    case INTRO_BASECLASS: return "baseclass";
63
 
    case INTRO_INHERITED: return "inherited";
64
 
    case INTRO_OTHER:     return "intro";
65
 
    case INTRO_ERROR:     return "error"; // Hm, shouldn't happen
 
62
    case INTRO_BASECLASS:  return "baseclass";
 
63
    case INTRO_INHERITED:  return "inherited";
 
64
    case INTRO_OTHER:      return "intro";
 
65
    case INTRO_SLICE_REF:  return "slice ref";
 
66
    case INTRO_SLICE_DECL: return "slice decl";
 
67
    case INTRO_ERROR:      return "error"; // Hm, shouldn't happen
66
68
    }
67
69
    return "error"; // just to suppress warnings
68
70
  }