Mercurial > hg > octave-lyh
annotate src/ov-colon.cc @ 10325:8b3cfc1288e2
implement lazy index conversions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 16 Feb 2010 15:28:53 +0100 |
parents | 57a59eae83cc |
children | fd0a3ac60b0e |
rev | line source |
---|---|
2376 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1996, 1997, 1998, 2000, 2002, 2003, 2004, 2005, 2007 |
4 John W. Eaton | |
2376 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
2376 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
2376 | 21 |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 #include <config.h> | |
26 #endif | |
27 | |
3503 | 28 #include <iostream> |
2466 | 29 |
2376 | 30 #include "error.h" |
31 #include "pr-output.h" | |
4055 | 32 #include "oct-obj.h" |
2376 | 33 #include "ov-colon.h" |
34 | |
4612 | 35 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_magic_colon, |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
36 "magic-colon", "magic-colon"); |
2376 | 37 |
2466 | 38 void |
3523 | 39 octave_magic_colon::print (std::ostream& os, bool) const |
2901 | 40 { |
41 indent (os); | |
42 print_raw (os); | |
43 } | |
44 | |
45 void | |
3523 | 46 octave_magic_colon::print_raw (std::ostream& os, bool) const |
2466 | 47 { |
48 os << ":"; | |
49 } |