MOOSE - Multiscale Object Oriented Simulation Environment
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EpFunc.cpp File Reference
#include "header.h"
#include "../shell/Shell.h"
+ Include dependency graph for EpFunc.cpp:

Go to the source code of this file.

Functions

template<>
NeutralgetEpFuncData< Neutral > (const Eref &e)
 

Function Documentation

template<>
Neutral* getEpFuncData< Neutral > ( const Eref e)

This is a template specialization for GetEpFunc applied to Neutrals. This is necessary in order to access Element fields of objects that may not have been allocated (such as synapses), even though their Element has been created and needs to be manipulated. Apparently regular functions with same args will be preferred over templates, let's see if this works. Nope, it doesn't. Good try. extern Neutral* getEpFuncData( const Eref& e ); Try this form: it doesn't work either. extern Neutral* dummyNeutral(); template<> Neutral* getEpFuncData< Neutral >( const Eref& e ) { return dummyNeutral(); } Try externing the template itself.

Definition at line 13 of file EpFunc.cpp.

References dummy.

14 {
15  static Neutral dummy;
16  return &dummy;
17 }
static DestFinfo dummy("dummy","This Finfo is a dummy. If you are reading this you have used an invalid index", 0)