Thyra_EpetraOperatorViewExtractorBase.hpp

Go to the documentation of this file.
00001 // ***********************************************************************
00002 // 
00003 //               Thyra: Trilinos Solver Framework Core
00004 //                 Copyright (2004) Sandia Corporation
00005 // 
00006 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00007 // license for use of this work by or on behalf of the U.S. Government.
00008 // 
00009 // This library is free software; you can redistribute it and/or modify
00010 // it under the terms of the GNU Lesser General Public License as
00011 // published by the Free Software Foundation; either version 2.1 of the
00012 // License, or (at your option) any later version.
00013 //  
00014 // This library is distributed in the hope that it will be useful, but
00015 // WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 // Lesser General Public License for more details.
00018 //  
00019 // You should have received a copy of the GNU Lesser General Public
00020 // License along with this library; if not, write to the Free Software
00021 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00022 // USA
00023 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00024 // 
00025 // ***********************************************************************
00026 // @HEADER
00027 
00028 #ifndef THYRA_EPETRA_OPERATOR_VIEW_EXTRACTOR_BASE_HPP
00029 #define THYRA_EPETRA_OPERATOR_VIEW_EXTRACTOR_BASE_HPP
00030 
00031 #include "Thyra_LinearOpBase.hpp"
00032 #include "Thyra_EpetraTypes.hpp"
00033 
00034 namespace Thyra {
00035 
00041 class EpetraOperatorViewExtractorBase : virtual public Teuchos::Describable
00042 {
00043 public:
00044 
00047 
00051   virtual bool isCompatible( const LinearOpBase<double> &fwdOp ) const = 0;
00052 
00099   virtual void getEpetraOpView(
00100     const Teuchos::RefCountPtr<LinearOpBase<double> >   &fwdOp
00101     ,Teuchos::RefCountPtr<Epetra_Operator>              *epetraOp
00102     ,ETransp                                            *epetraOpTransp
00103     ,EApplyEpetraOpAs                                   *epetraOpApplyAs
00104     ,EAdjointEpetraOp                                   *epetraOpAdjointSupport
00105     ,double                                             *epetraOpScalar
00106     ) const = 0;
00107 
00154   virtual void getEpetraOpView(
00155     const Teuchos::RefCountPtr<const LinearOpBase<double> >   &fwdOp
00156     ,Teuchos::RefCountPtr<const Epetra_Operator>              *epetraOp
00157     ,ETransp                                                  *epetraOpTransp
00158     ,EApplyEpetraOpAs                                         *epetraOpApplyAs
00159     ,EAdjointEpetraOp                                         *epetraOpAdjointSupport
00160     ,double                                                   *epetraOpScalar
00161     ) const = 0;
00162 
00164 
00165 };
00166 
00167 } // namespace Thyra
00168 
00169 #endif // THYRA_EPETRA_OPERATOR_VIEW_EXTRACTOR_BASE_HPP

Generated on Thu Sep 18 12:37:58 2008 for Epetra Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1