~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/teuchos/example/ExplicitInstantiation/four_files/EvilBase_def.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EVIL_BASE_DEF_HPP
 
2
#define EVIL_BASE_DEF_HPP
 
3
 
 
4
 
 
5
#include "EvilBase_decl.hpp"
 
6
 
 
7
// Include the subclasses that we are going to instantiate in the factory
 
8
// (i.e. evil)!  NOTE: We need to include the possible function definitions
 
9
// here in case we are doing implicit instantiation!
 
10
#include "AEvil.hpp"
 
11
#include "BEvil.hpp"
 
12
 
 
13
 
 
14
namespace EvilPack {
 
15
 
 
16
 
 
17
template<class T>
 
18
EvilBase<T>::~EvilBase()
 
19
{}
 
20
 
 
21
 
 
22
template<class T>
 
23
RCP<EvilBase<T> >
 
24
EvilBase<T>::createEvil(const std::string& concreteEvilName)
 
25
{
 
26
  if (concreteEvilName == "AEvil") {
 
27
    return aEvil<T>();
 
28
  }
 
29
  else if (concreteEvilName == "BEvil") {
 
30
    return bEvil<T>();
 
31
  }
 
32
  else {
 
33
    TEST_FOR_EXCEPT(true);
 
34
  }
 
35
  return Teuchos::null; // Never be executed
 
36
}
 
37
 
 
38
 
 
39
} // namespace EvilPack
 
40
 
 
41
 
 
42
#endif // EVIL_BASE_DEF_HPP