Last change
on this file since 73 was
73,
checked in by ymipsl, 14 years ago
|
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | // -*- C++ -*- |
---|
2 | /*************************************************************************** |
---|
3 | * blitz/etbase.h Declaration of the ETBase<T> class |
---|
4 | * |
---|
5 | * $Id: etbase.h,v 1.5 2003/12/30 23:03:29 julianc Exp $ |
---|
6 | * |
---|
7 | * Copyright (C) 1997-2001 Todd Veldhuizen <tveldhui@oonumerics.org> |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU General Public License |
---|
11 | * as published by the Free Software Foundation; either version 2 |
---|
12 | * of the License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * Suggestions: blitz-dev@oonumerics.org |
---|
20 | * Bugs: blitz-bugs@oonumerics.org |
---|
21 | * |
---|
22 | * For more information, please see the Blitz++ Home Page: |
---|
23 | * http://oonumerics.org/blitz/ |
---|
24 | * |
---|
25 | ***************************************************************************/ |
---|
26 | |
---|
27 | #ifndef BZ_ETBASE_H |
---|
28 | #define BZ_ETBASE_H |
---|
29 | |
---|
30 | BZ_NAMESPACE(blitz) |
---|
31 | |
---|
32 | template<typename T> |
---|
33 | class ETBase { |
---|
34 | public: |
---|
35 | ETBase() |
---|
36 | { } |
---|
37 | |
---|
38 | ETBase(const ETBase<T>&) |
---|
39 | { } |
---|
40 | |
---|
41 | T& unwrap() { return static_cast<T&>(*this); } |
---|
42 | |
---|
43 | const T& unwrap() const { return static_cast<const T&>(*this); } |
---|
44 | }; |
---|
45 | |
---|
46 | BZ_NAMESPACE_END |
---|
47 | |
---|
48 | #endif // BZ_ETBASE_H |
---|
49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.