#!/usr/bin/python
#
#
import os, sys
import math
from _testPyInheritVM import *


##################################################
# THIS WORKS
##################################################

class Dummy:
   def __init__(self):
      pass

base = Base()
dummy = Dummy()

class Derived(Base):
   def f(self):
      return 42
            
derived = Derived()
derived.f()

functionWithBaseArgument(derived)

cwbm = classWithBaseMember(derived)
cwbm.test()


##################################################
# THIS DOESN'T WORK
##################################################

class MyPySmoothFunction(PyWrapSmoothFunction):
   def __init__(self):
      pass   
   def value(self, point):
      return 0.0
   def gradient(self, point):
      return DoubleVector()
   def hessian(self, point):
      return DoubleMatrix()

myFn = MyPySmoothFunction()

myClassHasAPyWrapSmoothFn = classWithBaseMember2(myFn)




