~ubuntu-branches/ubuntu/oneiric/mpqc/oneiric

« back to all changes in this revision

Viewing changes to src/bin/orbixme/optimizei.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2005-11-27 11:41:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127114149-zgz9r3gk50w8ww2q
Tags: 2.3.0-1
* New upstream release.
* debian/rules (SONAME): Activate awk snippet for automatic so-name
  detection again, resulting in a bump to `7' and making a `c2a' for
  the C++ allocator change unnecessary; closes: #339232.
* debian/patches/00list (08_gcc-4.0_fixes): Removed, no longer needed.
* debian/rules (test): Remove workarounds, do not abort build if tests
  fail.
* debian/ref: Removed.
* debian/control.in (libsc): Added Conflict against libsc6c2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include <optimizei.h>
3
 
 
4
 
#include <math/optimize/opt.h>
5
 
 
6
 
// force linkage of QNewtonOpt
7
 
#include <math/optimize/qnewton.h>
8
 
static ForceLink<QNewtonOpt> fl0;
9
 
 
10
 
C_OptimizeImpl::C_OptimizeImpl()
11
 
{
12
 
}
13
 
 
14
 
C_OptimizeImpl::~C_OptimizeImpl()
15
 
{
16
 
}
17
 
 
18
 
Optimize *
19
 
C_OptimizeImpl::opt()
20
 
{
21
 
  Optimize *ret;
22
 
  ret = dynamic_cast<Optimize*>(dc_);
23
 
  return ret;
24
 
}
25
 
 
26
 
long
27
 
C_OptimizeImpl::optimize(CORBA_Environment &)
28
 
{
29
 
  if (!opt()) return 0;
30
 
  return opt()->optimize();
31
 
}
32