inline bool Monotone::check_for_existance(Teuchos::ParameterList &source_list) { std::string g("Monotone"); bool exists = source_list.getEntryPtr("Type"); if (exists) exists = g==source_list.get("Type",g); return exists; }
inline bool Gaussian<EvalT>::check_for_existance(Teuchos::ParameterList &source_list) { std::string g("Gaussian"); bool exists = source_list.getEntryPtr("Type"); if (exists) exists = g==source_list.get("Type",g); return exists; }
RCP<Teuchos::ParameterEntry> getEntryCopy( const Teuchos::ParameterList &l, const std::string &name) { const Teuchos::Ptr<const Teuchos::ParameterEntry> source(l.getEntryPtr(name)); if (Teuchos::nonnull(source)) { return Teuchos::rcp(new Teuchos::ParameterEntry(*source)); } return Teuchos::null; }