Documentation
Overview
Building ASL
Documentation
Library Wiki Docs
Indices
Browse Perforce
More Info
Release Notes
Wiki
Site Search
License
Success Stories
Contributors
Media
Download
Perforce Depots
Support
ASL SourceForge Home
Mailing Lists
Discussion Forums
Report Bugs
Suggest Features
Contribute to ASL
RSS
Short-text news
Full-text news
File releases
Other Adobe Projects
Open @ Adobe
Adobe Open Source
Adobe Labs
Adobe Media Gallery
C++ Benchmarks
Other Resources
Boost
RIAForge
SGI STL
Macros
Final
Adobe Source Libraries
»
Libraries
»
Utility
Macros
#define
ADOBE_FINAL
(T)
Detailed Description
Macro Definition Documentation
#define ADOBE_FINAL
(
T
)
A mixin class to ensure that a class cannot be derived from. The term "final" is a Java keyword, for which there is no C++ equivalent.
See CUJ May 2001, Page 51 for more information.
Credit to Shanker Chandrabose for the idea.
Author
Doug Ahmann
Date
05/10/2001 - created
Example:
1
class foo : ADOBE_FINAL(foo)
2
{
3
};
Example:
1
class bar { };
2
class foo : public bar, ADOBE_FINAL(foo)
3
{
4
};
Definition at line
49
of file
final.hpp
.