Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/structcasa_1_1MaskArrIO__global__functions__MaskedArray__IO.html
Дата изменения: Unknown Дата индексирования: Tue Feb 15 00:40:57 2011 Кодировка: Поисковые слова: moon |
Ascii input/output operations for MaskedArrays. More...
#include <MaskArrIO.h>
Public Member Functions | |
template<class T > | |
ostream & | operator<< (ostream &, const MaskedArray< T > &) |
Write out an ascii representation of a MaskedArray. |
Ascii input/output operations for MaskedArrays.
MaskArrIO is short for MaskedArrayIO, which is too long by AIPS++ file naming conventions. This file contains global functions for writing out ascii representations of masked arrays.
These functions write out masked arrays in ascii representation. They simply write out the Array and the LogicalArray which is the mask using the ascii output functions for these objects.
Vector<Int> a(10); LogicalVector b(10); MaskedArray m (a,b); . . . cout << m;
This example writes out m in ascii. It writes first a and then the mask constructed from b.
These are primarily for debugging, so that one can examine the MaskedArray. Since MaskedArrays are manipulators of Arrays, it was not thought to be necessary, or even a good idea, to have other kinds of IO defined for them.
Definition at line 89 of file MaskArrIO.h.
ostream& casa::MaskArrIO_global_functions_MaskedArray_IO::operator<< | ( | ostream & | , | |
const MaskedArray< T > & | ||||
) |
Write out an ascii representation of a MaskedArray.
The component Array and LogicalArray are written out sequentially.