Mercurial > hg > octave-lyh
comparison libinterp/octave-value/ov-java.h @ 15770:e61405133a76
Add new isjava function.
* libinterp/octave-value/ov-base.h: Add new virtual function is_java ().
Returns false.
libinterp/octave-value/ov-java.h: Overload virtual function is_java to return
true for objects in class octave_java.
libinterp/octave-value/ov.h: Add is_java function that calls objects
is_java function.
* libinterp/octave-value/ov-java.cc: Add new DEFUN (isjava) which uses
is_java. Placed outside HAVE_JAVA ifdef so that it is always available.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 12 Dec 2012 13:15:31 -0800 |
parents | f96faf028d90 |
children | 921912c92102 |
comparison
equal
deleted
inserted
replaced
15769:eade542fedaa | 15770:e61405133a76 |
---|---|
147 | 147 |
148 bool is_defined (void) const { return true; } | 148 bool is_defined (void) const { return true; } |
149 | 149 |
150 bool is_map (void) const { return true; } | 150 bool is_map (void) const { return true; } |
151 | 151 |
152 bool is_java (void) const { return true; } | |
153 | |
152 string_vector map_keys (void) const; | 154 string_vector map_keys (void) const; |
153 | 155 |
154 dim_vector dims (void) const; | 156 dim_vector dims (void) const; |
155 | 157 |
156 void print (std::ostream& os, bool pr_as_read_syntax = false) const | 158 void print (std::ostream& os, bool pr_as_read_syntax = false) const |