#ifndef _PHYSICS_TXX #define _PHYSICS_TXX #include "Physics.h" namespace mial { // constructor: template Physics ::Physics() { numDeformations = 0; time =0; } // destructor: template Physics ::~Physics() { } template bool Physics ::addDeformation(Deformation* b) { if(b!=NULL) { typename Deformation::Pointer dp = b; deformationsList.push_back(dp); //Copy by value numDeformations++; return true; } else { Error e; e.deformationNumber = numDeformations; e.msg = "Cannot add null deformation."; return false; } } } // end namespace mial #endif