encyclopegia.org

AspectC++

AspectC++ is an aspect-oriented extension of C and C++ languages. It has a source-to-source compiler, which translates AspectC++ source code into compilable C++. The compiler is available under the GNU GPL, though some extensions specific to Microsoft Windows are only available through pure-systems GmbH. Aspect-oriented programming allows modularizing cross-cutting concerns in a single module, an aspect. Aspects can modify existing classes, but most commonly they provide 'advice' that runs before, after, or around existing functionality.

AspectC++ is an aspect-oriented extension of C and C++ languages. It has a source-to-source compiler, which translates AspectC++ source code into compilable C++. The compiler is available under the GNU GPL, though some extensions specific to Microsoft Windows are only available through pure-systems GmbH. Aspect-oriented programming allows modularizing cross-cutting concerns in a single module, an aspect. Aspects can modify existing classes, but most commonly they provide 'advice' that runs before, after, or around existing functionality. using std::cerr; using std::endl; aspect Tracer { advice call("% %Iter::Reset(...)") : before() { cerr The Tracer aspect will print out a message before any call to %Iter::Reset . The %Iter syntax means that it will match all classes that end in Iter. Each 'matched' location in the source code is called a join point—the advice is joined to (or advises) that code. AspectC++ provides a join point API to provide and access to information about the join point. For example, the function: JoinPoint::signature() returns the name of the function (that matched %Iter::Reset ) that is about to be called. The join point API also provides compile-time type information that can be used within an aspect to access the type or the value of the arguments and the return type and return value of a method or function. ==External links== AspectC++ Articles on aspect-oriented programming and AspectC++ at past AOSD conferences

References

No reference rows published for this article.

Cite this article

MLA

"AspectC++." encyclopegia.org, 2026, https://encyclopegia.org/wiki/aspectc. Accessed 24 November 2026.

Chicago

"AspectC++." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/aspectc.

APA

encyclopegia.org. (2026). AspectC++. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/aspectc

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1361878393 · 0.55 · snapshot aspectc-549160-ed8e7c54148c005f · QID Q4807752

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.