aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/hybrid/sequence.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libxsde/xsde/cxx/hybrid/sequence.cxx')
-rw-r--r--libxsde/xsde/cxx/hybrid/sequence.cxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/hybrid/sequence.cxx b/libxsde/xsde/cxx/hybrid/sequence.cxx
new file mode 100644
index 0000000..da16e95
--- /dev/null
+++ b/libxsde/xsde/cxx/hybrid/sequence.cxx
@@ -0,0 +1,31 @@
+// file : xsde/cxx/hybrid/sequence.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#include <xsde/cxx/hybrid/sequence.hxx>
+
+namespace xsde
+{
+ namespace cxx
+ {
+ namespace hybrid
+ {
+ //
+ // data_seq
+ //
+
+ void data_seq::
+ clear ()
+ {
+ if (destructor_)
+ {
+ for (size_t i = 0; i < size_; ++i)
+ destructor_ (static_cast<void**> (data_)[i], i);
+ }
+
+ size_ = 0;
+ }
+ }
+ }
+}