PageRenderTime 25ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/xpressive/detail/core/sub_match_impl.hpp

http://hadesmem.googlecode.com/
C++ Header | 47 lines | 25 code | 9 blank | 13 comment | 1 complexity | 7c91e567b6e7e1a5e1661e5bdf4d83f8 MD5 | raw file
 1///////////////////////////////////////////////////////////////////////////////
 2// sub_match_impl.hpp
 3//
 4//  Copyright 2008 Eric Niebler. Distributed under the Boost
 5//  Software License, Version 1.0. (See accompanying file
 6//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 7
 8#ifndef BOOST_XPRESSIVE_DETAIL_CORE_SUB_MATCH_IMPL_HPP_EAN_10_04_2005
 9#define BOOST_XPRESSIVE_DETAIL_CORE_SUB_MATCH_IMPL_HPP_EAN_10_04_2005
10
11// MS compatible compilers support #pragma once
12#if defined(_MSC_VER) && (_MSC_VER >= 1020)
13# pragma once
14#endif
15
16#include <boost/xpressive/sub_match.hpp>
17
18namespace boost { namespace xpressive { namespace detail
19{
20
21// TODO: sub_match_impl is a POD IFF BidiIter is POD. Pool allocation
22// of them can be made more efficient if they are. Or maybe all they
23// need is trivial constructor/destructor. (???)
24
25///////////////////////////////////////////////////////////////////////////////
26// sub_match_impl
27//
28template<typename BidiIter>
29struct sub_match_impl
30  : sub_match<BidiIter>
31{
32    unsigned int repeat_count_;
33    BidiIter begin_;
34    bool zero_width_;
35
36    sub_match_impl(BidiIter const &begin)
37      : sub_match<BidiIter>(begin, begin)
38      , repeat_count_(0)
39      , begin_(begin)
40      , zero_width_(false)
41    {
42    }
43};
44
45}}} // namespace boost::xpressive::detail
46
47#endif