From fc65c4e978759fa10fc61341d98d4dccac42a53f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 5 Apr 2017 15:00:54 +0200 Subject: Add ability to mark unloaded section as loaded Can be useful to skip loading state that is going to be overwritten. --- doc/manual.xhtml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/doc/manual.xhtml b/doc/manual.xhtml index 8796fec..074dbdc 100644 --- a/doc/manual.xhtml +++ b/doc/manual.xhtml @@ -9263,6 +9263,9 @@ namespace odb void unload (); + void + load (); + // Change state. // bool @@ -9282,11 +9285,14 @@ namespace odb } -

The loaded() accessor can be used to determine - whether a section is already loaded. The unload() - modifier marks a loaded section as not loaded. This, for example, - can be useful if you don't want the section to be reloaded during - the object reload.

+

The loaded() accessor can be used to determine whether a + section is already loaded. The unload() modifier marks a + loaded section as not loaded. This, for example, can be useful if you + don't want the section to be reloaded during the object reload. The + load() modifier marks an unloaded section as loaded + without actually loading any of its data members. This, for example, + can be useful if you don't want to load the old state before overwriting + it with update().

The changed() accessor can be used to query the section's change state. The change() modifier -- cgit v1.1