aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/hybrid/sequence.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-03-11 17:32:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-03-11 17:32:01 +0200
commit0bfda486167432a9da8eec62b4578a22592a9275 (patch)
tree968d622d3918c9ac969de8b9c1e97e67b6cbee8b /libxsde/xsde/cxx/hybrid/sequence.hxx
parentf8bb2faef4b272ed150eb3ca4cedaa79da410694 (diff)
Add generation of detach functions
New option: --generate-detach. Also added detach/attach functionality to var_seq, non-STL str_seq, and string_base.
Diffstat (limited to 'libxsde/xsde/cxx/hybrid/sequence.hxx')
-rw-r--r--libxsde/xsde/cxx/hybrid/sequence.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/hybrid/sequence.hxx b/libxsde/xsde/cxx/hybrid/sequence.hxx
index 6d8f33b..b0cdba2 100644
--- a/libxsde/xsde/cxx/hybrid/sequence.hxx
+++ b/libxsde/xsde/cxx/hybrid/sequence.hxx
@@ -792,6 +792,18 @@ namespace xsde
insert (iterator, T*);
#endif
+ // Detach an object from the sequence at a given position.
+ // The object pointer at this position in the sequence is
+ // set to 0.
+ //
+ T*
+ detach (iterator);
+
+ // Attach an object to the sequence at a given position.
+ //
+ void
+ attach (iterator, T*);
+
#ifndef XSDE_EXCEPTIONS
error
#else