ParallelImagerAdaptor.h

Go to the documentation of this file.
00001 // -*- mode: c++ -*-
00002 //# ParallelImagerAdaptor.h: Adapt ParallelImagerMixin classes to ParallelImager
00003 //#                          interface
00004 //# Copyright (C) 2016
00005 //# Associated Universities, Inc. Washington DC, USA.
00006 //#
00007 //# This library is free software; you can redistribute it and/or modify it
00008 //# under the terms of the GNU Library General Public License as published by
00009 //# the Free Software Foundation; either version 2 of the License, or (at your
00010 //# option) any later version.
00011 //#
00012 //# This library is distributed in the hope that it will be useful, but WITHOUT
00013 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00015 //# License for more details.
00016 //#
00017 //# You should have received a copy of the GNU Library General Public License
00018 //# along with this library; if not, write to the Free Software Foundation,
00019 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00020 //#
00021 //# Correspondence concerning AIPS++ should be addressed as follows:
00022 //#        Internet email: aips2-request@nrao.edu.
00023 //#        Postal address: AIPS++ Project Office
00024 //#                        National Radio Astronomy Observatory
00025 //#                        520 Edgemont Road
00026 //#                        Charlottesville, VA 22903-2475 USA
00027 //#
00028 #ifndef PARALLEL_IMAGER_ADAPTOR_H_
00029 #define PARALLEL_IMAGER_ADAPTOR_H_
00030 
00031 #include <synthesis/ImagerObjects/ParallelImager.h>
00032 #include <synthesis/ImagerObjects/ParallelImagerMixin.h>
00033 
00034 namespace casa {
00035 
00041 template <class T>
00042 class ParallelImagerAdaptor
00043         : public ParallelImager, public T
00044 {
00045 public:
00046         using T::T;
00047 
00048         virtual Record clean() {
00049                 return T::clean();
00050         };
00051 };
00052 
00053 // Standard parallel imager classes based on implementation classes in
00054 // ParallelImagerMixin.h
00055 
00056 //Parallel continuum imager
00057 typedef ParallelImagerAdaptor<ContinuumParallelImagerImpl> ContinuumParallelImager;
00058 
00059 // Parallel cube imager
00060 typedef ParallelImagerAdaptor<CubeParallelImagerImpl> CubeParallelImager;
00061 
00062 // Serial imager
00063 typedef ParallelImagerAdaptor<SerialParallelImagerImpl> SerialParallelImager;
00064 } // namespace casa
00065 
00066 #endif // PARALLEL_IMAGER_ADAPTOR_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1