William S Fulton
d92faa7f7f
Remove Java std::list::max_size
...
Not in any Java equivalent containers nor std::vector wrapper.
2017-06-26 13:43:57 +01:00
William S Fulton
90d2ba884c
Java std::list std::vector - test addAll and subList
2017-06-26 13:42:19 +01:00
William S Fulton
3af40e7423
Handle length_error exceptions in Java std::vector::reserve
2017-06-26 12:46:22 +01:00
William S Fulton
6daed2cea1
Remove Java std::list::assign
...
This doesn't exist in equivalent Java containers. If we put it back, the
full set of overloaded assign wrappers ought to be added.
2017-06-26 12:28:02 +01:00
William S Fulton
ecebbdd0df
Additional add/remove methods added to Java std::list wrappers
...
Add functions similar to java.util.LinkedList<E>:
addFirst
addLast
removeFirst
removeLast
2017-06-25 00:10:06 +01:00
William S Fulton
c686045f55
More efficient add implementation for Java std::list
...
The default implementation in AbstractSequentialList<E>
calls add(size(), e) and size() might be expensive.
2017-06-24 23:33:31 +01:00
William S Fulton
a8e948e96d
Java std::vector std::list: add missing exception handling
2017-06-24 22:53:11 +01:00
William S Fulton
ea55c5bba0
Java std::vector std::list enhancements
...
- Add missing vector copy constructor
- Add constructor to initialize the containers. Note that Java's
equivalent constructor for ArrayList just sets the capacity, whereas
the wrappers behave like the C++ constructor and set the size. I've
done this mainly because there has been a vector(size_type) constructor
in the Java wrappers for many years, so best to keep this unchanged.
2017-06-24 14:30:03 +01:00
William S Fulton
b40b9aee83
Modify std::list declarations to match the C++ standard
2017-06-23 20:10:26 +01:00
William S Fulton
2d99027935
Fix removing elements from std::list Java wrapper
...
Add missing remove method on Java side (without it elements aren't
removed).
2017-06-23 16:17:00 +01:00
William S Fulton
428b332e68
Improve Java std::list std::vector runtime tests and wrap std::list::clear
2017-06-23 15:42:59 +01:00
William S Fulton
990c597365
Wrap std::list::empty as isEmpty in Java
2017-06-23 15:26:53 +01:00
William S Fulton
109a60add6
javabase typemap improvement for std::list
2017-06-22 22:17:59 +01:00
William S Fulton
430376e115
Java std::list - fully qualifiy Java class name to avoid potential name ambiguity
2017-06-22 22:11:02 +01:00
William S Fulton
7b7f921ccb
cosmetics
2017-06-22 20:38:19 +01:00
William S Fulton
02a00db9f5
Remove redundant code
2017-06-22 20:33:16 +01:00
William S Fulton
dd25f5b722
Java std::list rework to be consistent with std::vector wrappers
2017-06-22 20:33:09 +01:00
William S Fulton
fa416e4d40
li_std_list testcase not working for most languages
2017-06-21 15:51:52 +01:00
Alan Woodland
0695cb72cb
re-enabled li_std_list test
2017-06-05 22:09:41 +01:00
Alan Woodland
0083d451db
Switched from autobox to jboxtype per #842
2017-06-05 21:58:58 +01:00
Alan Woodland
4db1300622
Merge branch 'master' into javalist
2017-06-05 21:55:12 +01:00
William S Fulton
9d5d991f83
Merge branch 'master' of git+ssh://github.com/swig/swig
...
* 'master' of git+ssh://github.com/swig/swig:
update changes referencing issue
fix Scilab 6.0.0 linking issue
Conflicts:
CHANGES.current
2017-06-05 20:58:12 +01:00
William S Fulton
10e73a5bfb
Java jboxtype typemap documentation and tidy up
2017-06-05 20:47:49 +01:00
William S Fulton
e1a667bd52
minor update to the changes file
2017-06-05 19:46:06 +01:00
William S Fulton
bc7c80b862
More Java vector runtime tests
2017-06-05 19:33:45 +01:00
William S Fulton
65abd9558d
Merge branch 'java-vector-test'
...
* java-vector-test:
Java std_vector runtime test
Conflicts:
Examples/test-suite/java/li_std_vector_runme.java
2017-06-05 19:23:31 +01:00
William S Fulton
30b7424f8e
Java std_vector runtime test
...
From Volker Diels-Grabsch in SF patch https://sourceforge.net/p/swig/patches/278/
2017-06-05 19:15:32 +01:00
William S Fulton
5eb9f735da
Add generic approach in fragments for converting size_t to Java int
2017-06-05 18:49:54 +01:00
William S Fulton
be63f73e33
Fix c++ compiler warnings in c++11 testcases
2017-06-03 18:37:05 +01:00
William S Fulton
57a89f987d
Fix %import and %fragment forced inclusion to not generate code.
2017-06-03 18:37:05 +01:00
William S Fulton
857a62425c
Formatting fixes in Lisp docs
2017-06-03 18:37:05 +01:00
William S Fulton
9f55985a6c
Remove unused code
2017-06-03 18:37:05 +01:00
William S Fulton
32e7074d9b
Whitespace fixes in STL wrappers
2017-06-03 18:36:59 +01:00
Simon Marchetto
d5517f24ef
Merge pull request #995 from davidcl/master
...
fix Scilab linking issue
2017-05-30 15:59:43 +02:00
Clément DAVID
8410649045
update changes referencing issue
2017-05-30 15:30:59 +02:00
Clément DAVID
9278593dc4
fix Scilab 6.0.0 linking issue
2017-05-30 14:42:44 +02:00
William S Fulton
fdca8e9829
Better variable naming consistency in STL containers
2017-05-26 22:37:29 +01:00
William S Fulton
b51f32a915
Java std::vector tweaks
...
- Replace javacode typemap with %proxycode to make this typemap available to users
- Make doSize private.
2017-05-26 22:37:22 +01:00
William S Fulton
338acfabeb
Merge branch 'vadz-java-vector'
...
* vadz-java-vector:
Fix potential STL std::vector wrappers <: digraphs problems.
Add runtime checks for vector size in Java
Make std::vector<> wrappers conform to List interface in Java
Add helper macro to avoid duplication in Java vector typemaps
Conflicts:
CHANGES.current
2017-05-26 19:15:12 +01:00
William S Fulton
0bafadea5a
Fix potential STL std::vector wrappers <: digraphs problems.
2017-05-26 18:55:52 +01:00
William S Fulton
a4d01cddeb
Missing smart pointer handling in Java director extra methods
...
- Add CHANGES file entry
- Add testcase
2017-05-25 20:35:18 +01:00
William S Fulton
a2d65ca3bb
Merge branch 'asibross-master' into director-smartptr-ownership
...
* asibross-master:
Missing smart pointer handling in Java director extra methods implementation.
Conflicts:
Source/Modules/java.cxx
2017-05-25 08:00:35 +01:00
William S Fulton
63a7f3c6b3
Merge branch 'director-shared_ptr'
...
* director-shared_ptr:
director_smartptr runtime tests enhancement
Fix Java shared_ptr and directors for derived classes java compilation error.
2017-05-23 21:37:47 +01:00
William S Fulton
241460eddc
director_smartptr runtime tests enhancement
...
Add same changes from previous commit to additional languages
2017-05-23 21:36:24 +01:00
William S Fulton
4bf607589f
Fix Java shared_ptr and directors for derived classes java compilation error.
...
For shared_ptr proxy proxy classes, add a protected method swigSetCMemOwn for modifying
the swigCMemOwn and swigCMemOwnDerived member variables which are used by various other
methods for controlling memory ownership.
Closes #230
Closes #759
2017-05-23 21:36:08 +01:00
William S Fulton
41db45beff
director runtime test for java
2017-05-22 19:33:20 +01:00
William S Fulton
98e67539dd
Director testcase cosmetic fixes
2017-05-22 19:15:39 +01:00
William S Fulton
05badeb1a4
Remove undocumented features used in directors
...
The jsdowncast and csdowncast features are not documented and I think
these are a relic of something that was never finished.
2017-05-21 17:43:06 +01:00
William S Fulton
b90a8d7444
Remove unnecessary dynamic_cast in C#/D/Java directors
...
Also revert the removal of dynamic_cast in the csdowncast feature.
2017-05-21 17:42:27 +01:00
William S Fulton
7f2849cb0a
Merge branch 'Sghirate-master'
...
* Sghirate-master:
[C#] static_cast for native directors
2017-05-21 00:22:17 +01:00