aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-05 15:00:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-05 15:00:54 +0200
commitfc65c4e978759fa10fc61341d98d4dccac42a53f (patch)
tree33e00b793f42df703ddf50e677405e9f29cdc40c
parentbff376808a7684dc8c3752ee84a25f47b75f7075 (diff)
Add ability to mark unloaded section as loaded
Can be useful to skip loading state that is going to be overwritten.
-rw-r--r--doc/manual.xhtml16
1 files 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
}
</pre>
- <p>The <code>loaded()</code> accessor can be used to determine
- whether a section is already loaded. The <code>unload()</code>
- 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.</p>
+ <p>The <code>loaded()</code> accessor can be used to determine whether a
+ section is already loaded. The <code>unload()</code> 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
+ <code>load()</code> 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 <code>update()</code>.</p>
<p>The <code>changed()</code> accessor can be used to query the
section's change state. The <code>change()</code> modifier