メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

ArrayN-idx.h

解説を見る。
00001 // Template array classes
00002 /*
00003 
00004 Copyright (C) 2000 John W. Eaton
00005 
00006 This file is part of Octave.
00007 
00008 Octave is free software; you can redistribute it and/or modify it
00009 under the terms of the GNU General Public License as published by the
00010 Free Software Foundation; either version 2, or (at your option) any
00011 later version.
00012 
00013 Octave is distributed in the hope that it will be useful, but WITHOUT
00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00015 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00016 for more details.
00017 
00018 You should have received a copy of the GNU General Public License
00019 along with Octave; see the file COPYING.  If not, write to the Free
00020 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00021 
00022 */
00023 
00024 #include "Array-flags.h"
00025 #include "Range.h"
00026 #include "idx-vector.h"
00027 #include "lo-error.h"
00028 
00029 #if 0
00030 
00031 template <class T>
00032 ArrayN<T>
00033 ArrayN<T>::value (void)
00034 {
00035   ArrayN<T> retval;
00036 
00037   int n_idx = index_count ();
00038 
00039   if (n_idx > 1)
00040     {
00041       Array<idx_vector> ra_idx (n_idx);
00042 
00043       idx_vector *tmp = get_idx ();
00044 
00045       for (int i = 0; i < n_idx; i++)
00046         ra_idx(i) = tmp[i];
00047 
00048       return index (ra_idx);
00049     }
00050   else if (n_idx == 1)
00051     {
00052       idx_vector *tmp = get_idx ();
00053 
00054       idx_vector ra_idx = tmp[0];
00055 
00056       return index (ra_idx);
00057     }
00058   else
00059     (*current_liboctave_error_handler)
00060       ("invalid number of indices for array expression");
00061 
00062   clear_index ();
00063 
00064   return retval;
00065 }
00066 
00067 #endif
00068 
00069 /*
00070 ;;; Local Variables: ***
00071 ;;; mode: C++ ***
00072 ;;; End: ***
00073 */

Wed Dec 29 11:50:54 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送