casa
$Rev:20696$
|
00001 //# LogiArrayFwd.h: Forwards for LogicalArrays. 00002 //# Copyright (C) 1994,1995,1999 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id: LogiArrayFwd.h 20551 2009-03-25 00:11:33Z Malte.Marquarding $ 00027 00028 #ifndef CASA_LOGIARRAYFWD_H 00029 #define CASA_LOGIARRAYFWD_H 00030 00031 00032 #include <casa/aips.h> 00033 00034 namespace casa { //# NAMESPACE CASA - BEGIN 00035 00036 // <summary> 00037 // Forward declarations for LogicalArrays. 00038 // </summary> 00039 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests=""> 00040 // 00041 // <prerequisite> 00042 // <li> <linkto class=Array>Array</linkto> 00043 // <li> <linkto group="LogiArray.h#LogicalArray">LogicalArray</linkto> 00044 // </prerequisite> 00045 // 00046 // <etymology> 00047 // LogiArrayFwd is short for LogicalArrayForwards, which is too long by 00048 // AIPS++ file naming conventions. It contains forwards for LogicalArrays. 00049 // </etymology> 00050 // 00051 // <synopsis> 00052 // This file contains forward definitions for LogicalArrays. 00053 // </synopsis> 00054 // 00055 // <motivation> 00056 // There are places where LogicalArrays cannot be defined, i.e. where 00057 // LogiArray.h cannot be included. In those places, one must provide 00058 // forward declarations for those objects which one is using. 00059 // This is particularly tricky for LogicalArrays, since they are not 00060 // classes, but are rather typedefs. In order to make these forwards 00061 // easier to get correct, and easier to maintain, this file was created. 00062 // If LogicalArrays should ever be change to a class, only this file would 00063 // need to be changed, instead of every file where the current typedefs 00064 // would have to be changed to class forwards. 00065 // </motivation> 00066 // 00067 // <todo asof="$DATE:$> 00068 // <li> Change LogicalArrayElem char. 00069 // <li> Consider making these into classes. 00070 // <li> Consider replacing with builtin boolean class when that 00071 // makes it into the C++ compiler. 00072 // </todo> 00073 // 00074 // <linkfrom anchor="LogicalArray forwards" classes="Array MaskedArray"> 00075 // <here>LogicalArray forwards</here> -- Forward declarations for LogicalArrays. 00076 // </linkfrom> 00077 // 00078 // <group name="LogicalArray forwards"> 00079 00080 00081 //# Typedefs 00082 00083 // The element type for LogicalArray. 00084 // This should stay a typedef and not a class, so that it will work inside 00085 // of logical expressions without defining a cast to int, which would 00086 // lose its typesafeness. 00087 // 00088 typedef Bool LogicalArrayElem; 00089 00090 00091 //# Forwards 00092 00093 template<class T> class Array; 00094 00095 00096 // Define LogicalArray. 00097 // 00098 typedef Array<LogicalArrayElem> LogicalArray; 00099 00100 00101 // </group> 00102 00103 00104 } //# NAMESPACE CASA - END 00105 00106 #endif