15 #ifdef HAVE_MUELU_DEBUG
16 : multipleCallCheck_(FIRSTCALL)
32 if (varName ==
"NoFactory")
58 while (it != paramList->end()) {
59 it = paramList->begin();
61 for (; it != paramList->end(); it++)
63 paramList->remove(it->first);
76 void Factory::Input(
Level& level,
const std::string& varName,
const std::string& varParamName)
const {
88 #ifdef HAVE_MUELU_DEBUG
92 if (multipleCallCheck_ == FIRSTCALL && lastLevelID_ == -1)
95 multipleCallCheck_ = FIRSTCALL;
109 if (paramList.isType<RCP<const FactoryBase> >(it->first)) {
110 RCP<const Factory> fact = rcp_dynamic_cast<
const Factory>(paramList.get<RCP<const FactoryBase> >(it->first));
112 fact->ResetDebugData();
128 #ifdef HAVE_MUELU_DEBUG
129 Factory::multipleCallCheckEnum Factory::multipleCallCheckGlobal_ = ENABLED;
virtual const Teuchos::ParameterList & GetParameterList() const
void DisableMultipleCallCheck() const
virtual void SetFactory(const std::string &varName, const RCP< const FactoryBase > &factory)
Configuration.
T & get(const std::string &name, T def_value)
static void DisableTimerSync()
RCP< ParameterList > RemoveFactoriesFromList(const ParameterList &list) const
static void DisableMultipleCheckGlobally()
static void EnableTimerSync()
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Class that holds all level-specific information.
void EnableMultipleCallCheck() const
params_t::ConstIterator ConstIterator
static const RCP< const NoFactory > getRCP()
Static Get() functions.
virtual RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void ResetDebugData() const
void SetParameter(const std::string &name, const ParameterEntry &entry)
Set a parameter directly as a ParameterEntry.
bool IsAvailable(Level &level, const std::string &varName) const
static void EnableMultipleCheckGlobally()
void DeclareInput(const std::string &ename, const FactoryBase *factory, const FactoryBase *requestedBy=NoFactory::get())
Callback from FactoryBase::CallDeclareInput() and FactoryBase::DeclareInput()
void Input(Level &level, const std::string &varName) const
const RCP< const FactoryBase > GetFactory(const std::string &varName) const
Default implementation of FactoryAcceptor::GetFactory()
bool IsAvailable(const std::string &ename, const FactoryBase *factory=NoFactory::get()) const
Test whether a need's value has been saved.
virtual ~Factory()
Destructor.