aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/hybrid/sequence.cxx
blob: da16e954b79e8a02ece455b3146d590f5a6d0a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
      }
    }
  }
}