1 #ifndef SM_TemplatedOperator_H
2 #define SM_TemplatedOperator_H
102 const tReal *mu)
const {
103 return static_cast<const I*
>(
this)->omputeTemplatedEnergy(t,network,mu);
This class is describes a a network.
Definition: SM_Network.h:18
This class is describes an operator.
Definition: SM_Operator.h:18
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: SM_Operator.h:80
This class is describes an implmentation of operator with the class I.
Definition: SM_TemplatedOperator.h:18
SM_TemplatedOperator(void)
create a network class
Definition: SM_TemplatedOperator.h:32
void computeTemplatedMagneticField(const tIndex &t, const SM_Network &network, const tReal *mu, tReal *B) const
compute the magnetic field by templated method at time t
Definition: SM_TemplatedOperator.h:74
virtual ~SM_TemplatedOperator(void)
destroy
Definition: SM_TemplatedOperator.h:39
void computeTemplatedMagneticFieldAndEnergy(const tIndex &t, const SM_Network &network, const tReal *mu, tReal *H, tReal &E)
compute the magnetic field and energy at time t
Definition: SM_TemplatedOperator.h:87
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_TemplatedOperator.h:62
tReal computeTemplatedEnergy(const tIndex &t, const SM_Network &network, const tReal *mu) const
compute the energy
Definition: SM_TemplatedOperator.h:100
#define tIndex
Definition: types.h:157
#define tMemSize
Definition: types.h:166
#define tReal
Definition: types.h:137