Improved properties.h/cpp and added unit tests
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Fri, 26 Mar 2010 15:35:19 +0000 (16:35 +0100)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Fri, 26 Mar 2010 15:35:19 +0000 (16:35 +0100)
commit0985b9b36fe7e1a2c23b5da88e9966b040eb302b
tree523a3d2e220b32d882364e91e6f0f423dc0d8af4
parentb79912fd8ce2906d6670a833318082f6854e0475
Improved properties.h/cpp and added unit tests

* Improved properties.h/cpp:
  - Renamed PropertySet::Set() -> PropertySet::set()
  - Renamed PropertySet::Get() -> PropertySet::get()
  - Renamed PropertySet::GetAs<T>() -> PropertySet::getAs<T>()
  - Renamed PropertySet::ConvertTo<T>() -> PropertySet::convertTo<T>()
  - Added PropertySet::size()
  - Added PropertySet::clear()
  - Added PropertySet::erase()
  - Fixed bug in PropertySet::setAsString<T>()
26 files changed:
ChangeLog
Makefile
examples/example.cpp
examples/example_sprinkler_em.cpp
examples/example_sprinkler_gibbs.cpp
include/dai/exceptions.h
include/dai/properties.h
scripts/regenerate-properties
src/alldai.cpp
src/bbp.cpp
src/bp.cpp
src/cbp.cpp
src/exactinf.cpp
src/gibbs.cpp
src/hak.cpp
src/jtree.cpp
src/lc.cpp
src/mf.cpp
src/mr.cpp
src/properties.cpp
src/treeep.cpp
src/trwbp.cpp
tests/testbbp.cpp
tests/testem/testem.cpp
tests/unit/properties.cpp [new file with mode: 0644]
utils/createfg.cpp