Guillaume Melquiond
1e027ce607
Removed function config::proxy_string::to_serialized.
2010-04-05 06:01:07 +00:00
Guillaume Melquiond
9294a2b473
Removed functions config::proxy_string::operator+=.
2010-04-05 06:01:04 +00:00
Guillaume Melquiond
8119629789
Removed functions [v]config::all_children_iterator::get_index.
2010-04-05 06:00:00 +00:00
Guillaume Melquiond
260411c281
Removed function config::child_range_deprecated.
2010-04-05 05:59:56 +00:00
Guillaume Melquiond
0d392c7b54
Removed function config::get_children_deprecated.
2010-04-05 05:59:44 +00:00
Guillaume Melquiond
4f7afbf559
Removed unused header.
2010-03-28 13:26:41 +00:00
Guillaume Melquiond
bd9937e53c
Renamed config::get_children...
...
...so that people stop adding it again and again in new places.
2010-03-27 18:49:19 +00:00
Guillaume Melquiond
8f32240573
Added accessors for the nth child of a config object.
2010-03-27 18:49:14 +00:00
Guillaume Melquiond
9f2392ba91
Avoided a two-step removal of unwanted attributes.
...
Removed useless function config::prune.
2010-03-27 18:48:12 +00:00
Guillaume Melquiond
30c60c8963
Added missing overload.
2010-03-27 15:26:29 +00:00
Guillaume Melquiond
6f02d54cd9
Removed shared config objects.
2010-03-27 15:26:25 +00:00
Guillaume Melquiond
01e0010adf
Removed hardcoding of boolean names when storing values into config object.
2010-03-27 10:59:17 +00:00
Guillaume Melquiond
1896b603f1
Prevented t_string non-const references from being returned by functions.
...
(Original patch #1139 by Frank Richter.)
This avoids leaking an implementation detail from the config class and
opens the door to a considerable reduction of the memory footprint of
lexical data.
2010-03-27 09:32:58 +00:00
Tomasz Śniatowski
c453cbd440
add config::apply_diff tracking
2010-01-05 00:05:26 +01:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Mark de Wever
29ae8bf5de
Remove an unneeded include.
2009-11-27 23:00:41 +00:00
Jörg Hinrichs
b0be5d5fb2
Fixes objectives showing despite being set to silent...
...
...and adds a recursive search for config childs. This was needed,
because the position of [objectives] is not fixed, not even in the WML
hierarchy.
2009-09-05 06:53:28 +00:00
Mark de Wever
671b0b256c
Strip trailing whitespace.
2009-08-29 18:46:38 +00:00
Guillaume Melquiond
b118b7c68c
Removed unused function config::merge_and_keep.
2009-08-15 14:20:48 +00:00
Iurii Chernyi
09223f03cc
new AI configuration syntax. Note: boost 1.35 required for compilation
2009-08-01 14:17:15 +00:00
Guillaume Melquiond
395423e0b5
Fixed hotkey dialog not being refreshed on language change.
...
(In fact, definitely fixed all the issues related to language changes
by removing the code responsible for resetting translations.)
2009-07-15 20:17:33 +00:00
Tomasz Śniatowski
d7f2e50bf4
remove the skiplist_map.hpp #include from config.hpp...
...
...as it is unused and including it breaks compilation in msvc
2009-07-11 23:19:54 +01:00
Chris Hopman
a7359a3604
change config maps to std::map. config uses std::string instead of shared_string
2009-07-11 09:02:15 +00:00
Chris Hopman
6e51135886
modify config objects to use skiplist_map<shared_string, X>...
...
...rather than std::map<std::string, X>
2009-07-11 09:02:01 +00:00
Chris Hopman
b790014503
change to typedeffed typenames
2009-07-11 09:01:49 +00:00
Chris Hopman
c4c8b6059f
use typedeffed typenames where appropriate
2009-06-15 05:22:35 +00:00
Guillaume Melquiond
cdf4ee261c
Removed config::const_attribute_iterator...
...
...default constructor. Defaulted its copy constructor.
2009-04-12 14:13:49 +00:00
Guillaume Melquiond
55ab65ecec
Removed config::all_children_iterator...
...
...and vconfig::all_children_iterator default constructors.
2009-04-12 14:13:46 +00:00
Guillaume Melquiond
d551970919
Removed config::child_iterator default constructor.
2009-04-12 14:13:42 +00:00
Guillaume Melquiond
112592ce01
Removed config::const_child_iterator default constructor...
...
...and unit_type_data::unit_type_map_wrapper copy constructor.
2009-04-12 14:13:38 +00:00
Sergey Popov
e3858e48f1
Fixed "attempt to copy-construct an iterator...
...
...from a singular iterator" glibcxx_debug error
which was caused by passing a default-constructed iterator as default
argument to const_child_iterator's constructor and copy-constructing a
member from it.
2009-04-11 15:52:05 +00:00
Guillaume Melquiond
84ed1d6117
Removed almost unused and redundant functions.
2009-04-05 18:03:14 +00:00
Guillaume Melquiond
c37154dea4
Definitely removed config::all_children.
2009-04-05 09:44:25 +00:00
Guillaume Melquiond
0a7688cb7f
A few comments.
2009-04-04 19:13:04 +00:00
Guillaume Melquiond
60808a88ba
Got rid of pointers to config objects. Removed code duplication along the way.
2009-04-04 17:51:20 +00:00
Guillaume Melquiond
ef9dc011dc
Removed last bits of implementation from config interface.
2009-04-04 17:51:00 +00:00
Guillaume Melquiond
9629856fed
Added a config::add_child variant...
...
...that does not create the child if it already exists.
2009-04-04 17:50:56 +00:00
Guillaume Melquiond
2199088e7b
Added a config::child variant for safe initialization.
2009-04-04 17:50:51 +00:00
Guillaume Melquiond
6115b88def
Removed bisection-friendly fields...
...
...from config::any_child now that they are no longer used.
2009-03-21 18:45:08 +00:00
Guillaume Melquiond
42603c5edc
Used an opaque type for config::all_children_iterator with some...
...
...(not yet used) non-pointer fields.
2009-03-21 18:44:18 +00:00
Guillaume Melquiond
e613c354d2
Improved config::all_children_iterator by getting rid of std::auto_ptr.
2009-03-20 19:48:17 +00:00
Guillaume Melquiond
cf8325c20c
Replaced field config::values by function...
...
...config::attribute_range which returns opaque iterators.
2009-03-20 07:08:43 +00:00
Guillaume Melquiond
041c3e75be
Removed hardly used function.
2009-03-20 07:08:35 +00:00
Guillaume Melquiond
dd48a01888
Added conversion from child_iterator to const_child_iterator.
2009-03-20 07:06:36 +00:00
Guillaume Melquiond
bee7ad1385
Modified config::child_range so that it returns opaque iterators.
2009-03-20 07:06:27 +00:00
Mark de Wever
a5d1d2e969
New year copyright update.
2009-01-01 10:27:41 +00:00
Patrick Parker
f0bced745f
massive cleanup for the [role] code,
...
...including crash prevention for invalid side numbers, consistent
handling of precedence order, and removing excessive config copy
operations.
2008-12-05 04:06:02 +00:00
Patrick Parker
6511160a75
now able to safely insert to an index at array.length...
...
...using [set_variables] mode=insert (before it would create empty
child data before inserting).
2008-08-31 19:56:15 +00:00
Pauli Nieminen
fb70f62c97
Changed game.cpp to use config_cache object for caching
2008-08-27 21:58:51 +00:00
Pauli Nieminen
99305160ae
Refactored config_cache to support loading multiple cached items...
...
...using path as key
2008-08-26 15:42:26 +00:00