Commit Graph

279 Commits (release/4.3a0)

Author SHA1 Message Date
dellaert 12791737e0 First non-passing grammar test 2014-12-02 11:41:09 +01:00
dellaert 78b1cd271a Fixed testClass unit tests 2014-12-01 20:34:05 +01:00
dellaert aceeb2037b Template tightening 2014-12-01 20:29:35 +01:00
dellaert e963512164 Tightened up individual Grammars 2014-12-01 20:03:26 +01:00
dellaert 08c9243acb Fixed tests 2014-12-01 14:47:18 +01:00
dellaert 8d128ef809 Make sure an Eigen type is tested as template parameter 2014-12-01 14:42:19 +01:00
dellaert 32852eeec7 Template class and parser 2014-12-01 12:43:12 +01:00
dellaert 9a77072654 Successfully used TypeListGrammar 2014-12-01 12:14:08 +01:00
dellaert 19ea0436db Moved to header 2014-12-01 11:35:48 +01:00
dellaert d25636685b TypeListGrammar 2014-12-01 11:32:33 +01:00
dellaert 7dbe9389cb Fixed ArgumentListGrammar 2014-12-01 10:38:24 +01:00
dellaert 0e5332ed3e Removed incorrect void, which fixed old problems and even improves on generated code. 2014-12-01 10:30:47 +01:00
dellaert 7362b4e393 Returned correct test 2014-12-01 10:20:54 +01:00
dellaert ba51b02cf0 Moving to optionals fixed template dreturn argument!
Merge branch 'qualified' into grammar_wrongtest

Conflicts:
	wrap/Class.cpp
	wrap/Function.h
	wrap/Qualified.h
	wrap/ReturnType.h
	wrap/tests/testWrap.cpp
2014-12-01 09:48:56 +01:00
dellaert f6faabf542 Temporarily checked in wrong tests to be able to fix everything else 2014-11-30 23:47:55 +01:00
dellaert 49870be846 Another test 2014-11-30 23:46:25 +01:00
dellaert e9915fe25c Moved to headers 2014-11-30 23:26:07 +01:00
dellaert c661329ac1 ReturnType grammar 2014-11-30 23:24:24 +01:00
dellaert dc42773f1e Some more tests 2014-11-30 23:02:23 +01:00
dellaert 58806b75d2 testReturnValue with prototype grammar 2014-11-30 22:33:30 +01:00
dellaert bba78e48e4 test VectorEigen 2014-11-30 21:54:56 +01:00
dellaert 303b051cd1 Original file restored 2014-11-30 21:54:24 +01:00
dellaert 0dcd102f5e Saving before restoring 2014-11-30 20:46:47 +01:00
dellaert 5bcd5d3c89 Commented out grammar 2014-11-30 20:46:19 +01:00
dellaert 24f5636d6a Moved to header 2014-11-30 20:25:26 +01:00
dellaert 6d916c6b75 Semi-private name/namespaces 2014-11-30 20:20:13 +01:00
dellaert f1c91d5d4b Clear now up to caller 2014-11-30 16:09:13 +01:00
dellaert b50f42a606 Equality 2014-11-30 16:08:56 +01:00
dellaert 8a54e19811 Succuessfully parse * at cost of also parsing *& 2014-11-30 15:51:14 +01:00
dellaert a6afe70c9c Good progress on Argument 2014-11-30 15:46:41 +01:00
dellaert 00c6bd2426 Start on Argument grammar 2014-11-30 14:58:45 +01:00
dellaert ff3349c1e1 Moved category to Qualified 2014-11-30 13:09:23 +01:00
dellaert 3f308e5f86 Moved to header 2014-11-30 11:30:06 +01:00
dellaert ad8a25c78c A bit of namespace shielding for use in header 2014-11-30 11:24:12 +01:00
dellaert f32f5c7ff2 Working type grammar 2014-11-30 11:19:23 +01:00
dellaert e98ec62804 start with grammar prototype 2014-11-30 11:09:34 +01:00
dellaert 14ef786dfe Removing empty in favor of boost::optional 2014-11-30 10:38:24 +01:00
dellaert 74361ce64a Test with argument templated 2014-11-30 10:37:25 +01:00
dellaert 8d9e108acc Check Vector by checking size 2014-11-29 21:43:48 +01:00
dellaert ea070353d6 non-serialization expected values 2014-11-29 13:59:23 +01:00
dellaert 1fd0f964ea Allow Eigen type in typedefs 2014-11-29 13:53:59 +01:00
dellaert 7fdcc98ea5 Updated tests with serialization 2014-11-29 13:50:04 +01:00
dellaert 5ab9b8e439 Test Vector and Matrix as template values 2014-11-29 13:45:11 +01:00
dellaert ab08cb65b0 Fixed unit test 2014-11-22 22:13:21 +01:00
dellaert 755cc60b6f python wrapper file generated at this point 2014-11-14 17:47:46 +01:00
dellaert 6c24fc2aca Python prototype 2014-11-14 17:47:25 +01:00
dellaert e07402a58a Re-factored matlab_code only emits code: it does not post-process the classes anymore. That is now done in parse_Markup, i.e., the constructor.... 2014-11-14 17:04:45 +01:00
dellaert 7a4748d3dc Simplified method/function hierarchy drastically, and renamed bottom addOverload to initializeOrCheck to reflect what it does. Also, gratuitous re-ordering of addOverload arguments. 2014-11-14 16:44:08 +01:00
dellaert 2d654f7fa7 Fixed some wrap unit tests that were left by the wayside 2014-11-14 01:12:43 +01:00
dellaert 67bc951ac2 Fixed proxy files and calls for static methods 2014-11-13 23:21:05 +01:00
dellaert e07da1c82d Added matlabName, and made data members private 2014-11-13 22:43:29 +01:00
dellaert 8ef78db9d8 Fixed template expansion of classes 2014-11-13 21:53:58 +01:00
dellaert 09e3c7df9f struct Constructor: public ArgumentOverloads 2014-11-13 21:34:59 +01:00
dellaert b451e97f6f New TemplateSubstitution object simplifies a lot 2014-11-13 17:28:05 +01:00
dellaert a5e0adb7e6 Made methods and global functions derive from Function 2014-11-13 12:52:41 +01:00
dellaert 341ad9f288 gtsam.h with templated Values::at now compiles ! 2014-11-13 01:26:06 +01:00
dellaert 3c1daa5d6f Templated methods work !!!! 2014-11-13 00:39:15 +01:00
dellaert 5ca71a2eb9 Fixed exception bug 2014-11-12 23:54:37 +01:00
dellaert 1ea0225030 Big refactor because methods now private member of Class 2014-11-12 23:23:07 +01:00
dellaert ad9f3b334c test addOverload 2014-11-12 22:06:53 +01:00
dellaert b7da52a61b Method unit test 2014-11-12 21:54:43 +01:00
dellaert 72d44fe0af Fixed docs 2014-11-12 20:50:20 +01:00
dellaert 67ab69d5ba Merge remote-tracking branch 'origin/fix/BAD_wrap' into fix/BAD_wrap_checkpoint
Conflicts:
	wrap/Module.cpp
2014-11-12 19:22:03 +01:00
dellaert 34a0913125 Fixed issue with templateArgName overloading 2014-11-12 19:09:30 +01:00
dellaert bad8e85c11 Little fudge? I think in MATLAB these are the same. 2014-11-12 15:31:04 +01:00
dellaert 0a23529032 Everything compiles 2014-11-12 14:37:08 +01:00
dellaert 77935bd631 Massive edit: new Qualified type groups namespaces with name, eliminates a lot of clutter. 2014-11-12 02:49:23 +01:00
dellaert 2ab5e17cd8 Added tests for doubly templated class and typedef 2014-11-11 23:09:20 +01:00
dellaert b8d9d5b6ca Starting down the path of a templated method 2014-11-11 22:38:50 +01:00
dellaert c66d6bd1a4 Added templated class 2014-11-11 18:14:17 +01:00
dellaert 752d4800f1 Added new set of expected files in case serialize is turned off 2014-11-11 13:43:25 +01:00
dellaert 5048946ae9 Make sure it works for namespaces as well 2014-05-25 16:37:43 -04:00
dellaert 399c5e5551 Added test for overloaded global functions 2014-05-25 16:28:59 -04:00
dellaert 5e9632e781 Now using emit_conditional_call (changed indenting) 2014-05-25 16:28:39 -04:00
dellaert 1129b384b2 Header order 2014-05-25 16:03:28 -04:00
dellaert 9a102e8c59 Handle special case of single overload with all numeric arguments 2014-05-25 15:21:49 -04:00
dellaert a38504dc6a Ignore some files 2014-05-25 15:21:33 -04:00
dellaert 61baef3be0 Don't emit overloads unless there are any 2014-05-25 13:37:44 -04:00
Richard Roberts 661a157553 Working on standardizing/simplifying building unit tests and examples. Much simpler cmake function to add a glob of tests, doing away with convenience libraries, and removing other options that we never change from their defaults. 2014-02-13 01:34:31 -05:00
Richard Roberts 2d60d2cdfa Fixed more unit tests 2013-08-06 18:04:40 +00:00
Chris Beall e1b24acc96 add missing end on saveobj 2013-06-25 18:36:57 +00:00
Alex Cunningham 0e1f07acaa Added matlab codegen for matlab save/load hooks. Can now save and load a gtsam object to/from a mat file 2013-06-22 23:16:53 +00:00
Alex Cunningham 9f9807ef19 Yet even more rebasing 2013-06-20 17:08:29 +00:00
Alex Cunningham 90246a4dab Rebasing... 2013-06-20 17:08:27 +00:00
Alex Cunningham 23de91d44d serialization works for graph and PriorFactor. Added second flag for serialization: can add "void serializable()" or "void serialize()" to allow for either just exporting (necessary if no default constructor), or implementing the full serialization functions 2013-06-19 17:50:05 +00:00
Alex Cunningham ed3ab55538 Fixed wrap test, now passes 2013-06-19 17:50:04 +00:00
Alex Cunningham f1b1a2f7d2 Added export flags, Values now serializes 2013-06-19 17:50:03 +00:00
Alex Cunningham 4d76386aa7 Updated expected values to match newer codegen 2013-06-19 17:50:02 +00:00
Alex Cunningham 14c5f205dd basic serialization works 2013-06-19 17:50:00 +00:00
Alex Cunningham 07407ff763 Completed codegen for serialize/deserialize functions 2013-06-19 17:49:59 +00:00
Alex Cunningham 8e73619989 Adding codegen components for serialization - in progress 2013-06-19 17:49:57 +00:00
Alex Cunningham c7576deb15 Added flag for serializable to parser, no codegen yet 2013-06-19 17:49:55 +00:00
Alex Cunningham 0030a28e45 all tests pass with new hack to parse pointers on arguments 2012-11-27 19:03:22 +00:00
Alex Cunningham ab7655e5eb Further debugging and tests of parsing issue with return type flags 2012-11-27 19:03:20 +00:00
Alex Cunningham d1b9185918 Trying more variations. Fixed small valgrind issue that didn't actually have an effect 2012-11-27 19:03:19 +00:00
Alex Cunningham 47fcb17ead Small variations on parser to try to debug problem 2012-11-27 19:03:18 +00:00
Alex Cunningham 16ad77cb53 Adding tests and notes to investigate errors parsing return types 2012-11-27 19:03:16 +00:00
Chris Beall 4297d24c96 changed tabs to spaces for consistent indentation in all of GTSAM 2012-10-02 14:40:07 +00:00
Andrew Melim 4752c10e21 Inherited methods show up on doc. ISAM2 for MATLAB now inherets from Bayes Tree 2012-09-08 19:51:23 +00:00
Andrew Melim 9938b4785d Changed method summaries to lower case 2012-09-03 22:48:08 +00:00
Andrew Melim 84a806bf39 Final fixes made for wrap comments 2012-08-29 20:27:10 +00:00
Andrew Melim d0a1e662a7 Wrap comments are now EVEN better 2012-08-28 21:44:45 +00:00
Andrew Melim 7d9139a854 Fix wrap tests 2012-08-27 18:10:51 +00:00
Andrew Melim a6545b4e01 Fixed wrap tests and changed comments 2012-08-27 17:54:25 +00:00
Richard Roberts cbbf62aeeb Updated wrap unit tests 2012-08-22 22:40:38 +00:00
Richard Roberts d95ca7857b Updated wrap unit tests 2012-07-27 19:16:00 +00:00
Alex Cunningham 656f573c0a Removed from wrap the use of "using namespace xxx" statements - wasn't fully supported before, and now we have real namespace support 2012-07-23 18:24:43 +00:00
Alex Cunningham b7c2177f0b Generating code for global functions now works 2012-07-23 18:24:35 +00:00
Alex Cunningham ece5888cac Removed need in wrap to end namespaces in special non-standard tag - can now just use } 2012-07-23 14:09:44 +00:00
Alex Cunningham e7e564268d global function parsing now tested and working 2012-07-23 14:09:42 +00:00
Alex Cunningham 26fce2d400 Adding support for global functions - parsing works 2012-07-23 14:09:40 +00:00
Richard Roberts 8dbffd4629 Wrap generates Matlab namespaces, so now 'import gtsam.*' allows class names like Values, NonlinearFactor, to be used. Without import, syntax is gtsam.Values, etc. 2012-07-18 15:47:06 +00:00
Richard Roberts 90fd122876 Updated wrap expected files from double clear all bug fix 2012-07-17 22:10:39 +00:00
Alex Cunningham 4b772b43cf Simplified include handling in wrap: no more default includes, includes are not associated with a class or a namespace. 2012-07-17 18:30:02 +00:00
Richard Roberts 4bcc974cae Updated unit tests after changing namespace handling 2012-07-17 17:38:31 +00:00
Richard Roberts b1a58e4447 Updated expected wrap unit test files 2012-07-12 02:11:36 +00:00
Alex Cunningham 774fcb5ca9 Fixed include sorting bug in wrap 2012-07-11 15:58:01 +00:00
Alex Cunningham f3406f3bc9 Small change to wrap to avoid redundant includes in cpp file 2012-07-11 14:54:13 +00:00
Alex Cunningham 2e6de9e9a1 Fixed wrap unit test 2012-07-11 14:54:11 +00:00
Alex Cunningham 5d58dbd512 Fixed testWrap so that it passes, fixed dependency checking in codegen, fixed warnings 2012-07-10 14:21:58 +00:00
Alex Cunningham 6daa86f137 Fixed C++ versioning issue in wrap, now compiles and toolbox passes matlab tests, testWrap now compiles but does not pass 2012-07-10 14:21:56 +00:00
Alex Cunningham 9c876ed6b0 Wrap tests now pass with new file structure 2012-07-08 20:23:47 +00:00
Alex Cunningham fe133ef97c Updated expected files to match current wrap test 2012-07-05 17:14:40 +00:00
Andrew Melim 15b3dd9d5f adding new constructors for matlab wrap tests 2012-07-02 19:09:50 +00:00
Andrew Melim ead88ae35a Changes to wrap requested by frank. Wrap now allows for multiple includes. Changes to wrap tests 2012-07-02 18:18:11 +00:00
Alex Cunningham 7ba7aa6cfc Updated wrap unit tests for new wrap changes 2012-06-30 20:04:16 +00:00
Alex Cunningham 3ab79d1597 Fixed wrap test 2012-06-28 16:13:22 +00:00
Frank Dellaert 1b23ebbdbf Fixed wrap unit test after adding documentation 2012-06-24 14:49:35 +00:00
Alex Cunningham 3a9b647b8f Updated expected wrap values 2012-06-06 12:03:49 +00:00
Richard Roberts 90578e2532 Merge remote-tracking branch 'svn/trunk' into windows
Conflicts:
	gtsam.h
	wrap/CMakeLists.txt
2012-06-05 13:11:34 +00:00
Chris Beall 129e29d4b2 fix related to mex command 2012-06-04 22:09:33 +00:00
Alex Cunningham a07e4a7368 Fixed handling of char in wrap, updated README 2012-06-04 19:45:32 +00:00
Richard Roberts d636534e40 Updated wrap unit tests 2012-05-29 19:30:59 +00:00
Richard Roberts dc036a0891 Updated wrap unit tests 2012-05-29 19:29:29 +00:00
Richard Roberts ac150043bd Fixed wrap under windows 2012-05-23 21:23:27 +00:00
Alex Cunningham f8a03ddbca Added better support for "using namespace x" to wrap - only applies to classes *after* it is called 2012-05-04 19:14:58 +00:00
Alex Cunningham f2c7e891c4 Added 'unsigned char' as argument option to wrap, added make targets 2012-05-04 18:50:36 +00:00
Andrew Melim 1ea890f4e5 Fixed testWrap failures with the new wrapper 2012-03-30 18:06:58 +00:00
Andrew Melim a1da906d33 Memory leak fixed within wrap. Must call 'clear' before 'clear all' and 'clear classes'. Wrap now creates delete_classname files for all wrapped classes. MATLAB classes now derive from the handle superclass. 2012-03-30 05:34:23 +00:00
Alex Cunningham ded872af5f Forced wrap to always add a "generated by" header, updated expected test code 2012-02-06 19:45:40 +00:00
Alex Cunningham c901ceee27 wrap: forward declarations now allow for namespaces 2012-02-01 15:19:34 +00:00
Alex Cunningham a8607d284d Added wrap support for char as a argument or return value type 2012-01-23 18:28:11 +00:00
Alex Cunningham 500d509f81 Added another expected value for toolbox codegen 2012-01-15 19:09:36 +00:00
Alex Cunningham 94cbee4208 Updated expected toolbox code to match updated states 2012-01-15 19:09:34 +00:00
Frank Dellaert 0c03fd010d Constructors now check argument types to allow multiple constructors in MATLAB with the same number of arguments 2012-01-10 05:06:46 +00:00
Alex Cunningham 56bce0ca9f Added dependency checking to return values in wrap, as well as forward declarations 2011-12-15 21:23:20 +00:00
Alex Cunningham 44aff08d56 Added support for namespace includes to wrap 2011-12-15 19:39:14 +00:00
Alex Cunningham ea1f1e8b65 Parser now handles both namespace and class headers 2011-12-15 19:39:11 +00:00
Alex Cunningham dbc6a8aeec Reverted wrap argument change due to failing tests 2011-12-15 19:39:09 +00:00
Alex Cunningham 99338805c0 re-enabled test 2011-12-15 16:18:04 +00:00