Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
final.hpp
Go to the documentation of this file.
1/*
2 Copyright 2013 Adobe
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5*/
6/**************************************************************************************************/
7
8#ifndef ADOBE_FINAL_HPP
9#define ADOBE_FINAL_HPP
10
11#include <adobe/config.hpp>
12
13/**************************************************************************************************/
14
15#ifndef ADOBE_NO_DOCUMENTATION
16
17/**************************************************************************************************/
18
19namespace adobe {
20
21/**************************************************************************************************/
22
23namespace implementation {
24
25/**************************************************************************************************/
26
27template <typename T>
28class final {
29protected:
30 final() {}
31};
32
33/**************************************************************************************************/
34
35} // namespace implementation
36
37/**************************************************************************************************/
38
39} // namespace adobe
40
41/**************************************************************************************************/
42
43#endif
44
45/**************************************************************************************************/
46
47#define ADOBE_FINAL(T) \
48private \
49 virtual adobe::implementation::final<T>
50
51/**************************************************************************************************/
52
53#endif
54
55/**************************************************************************************************/