DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/*============================================================================= Copyright (c) 1998-2003 Joel de Guzman http://spirit.sourceforge.net/ Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #if !defined(BOOST_SPIRIT_RULE_HPP) #define BOOST_SPIRIT_RULE_HPP #include
/////////////////////////////////////////////////////////////////////////////// // // Spirit predefined maximum number of simultaneously usable different // scanner types. // // This limit defines the maximum number of of possible different scanner // types for which a specific rule<> may be used. If this isn't defined, a // rule<> may be used with one scanner type only (multiple scanner support // is disabled). // /////////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT) # define BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT 1 #endif // Ensure a meaningful maximum number of simultaneously usable scanner types BOOST_STATIC_ASSERT(BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT > 0); #include
#include
#if BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT > 1 # include
#endif /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { #if BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT > 1 /////////////////////////////////////////////////////////////////////////// // // scanner_list (a fake scanner) // // Typically, rules are tied to a specific scanner type and // a particular rule cannot be used with anything else. Sometimes // there's a need for rules that can accept more than one scanner // type. The scanner_list
can be used as a template // parameter to the rule class to specify up to the number of // scanner types defined by the BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT // constant. Example: // // rule
> r; // // *** This feature is available only to compilers that support // partial template specialization. *** // /////////////////////////////////////////////////////////////////////////// template < BOOST_PP_ENUM_PARAMS( BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT, typename ScannerT ) > struct scanner_list : scanner_base {}; #endif /////////////////////////////////////////////////////////////////////////// // // rule class // // The rule is a polymorphic parser that acts as a named place- // holder capturing the behavior of an EBNF expression assigned to // it. // // The rule is a template class parameterized by: // // 1) scanner (scanner_t, see scanner.hpp), // 2) the rule's context (context_t, see parser_context.hpp) // 3) an arbitrary tag (tag_t, see parser_id.hpp) that allows // a rule to be tagged for identification. // // These template parameters may be specified in any order. The // scanner will default to scanner<> when it is not specified. // The context will default to parser_context when not specified. // The tag will default to parser_address_tag when not specified. // // The definition of the rule (its right hand side, RHS) held by // the rule through a scoped_ptr. When a rule is seen in the RHS // of an assignment or copy construction EBNF expression, the rule // is held by the LHS rule by reference. // /////////////////////////////////////////////////////////////////////////// template < typename T0 = nil_t , typename T1 = nil_t , typename T2 = nil_t > class rule : public impl::rule_base< rule
, rule
const& , T0, T1, T2> { public: typedef rule
self_t; typedef impl::rule_base< self_t , self_t const& , T0, T1, T2> base_t; typedef typename base_t::scanner_t scanner_t; typedef typename base_t::attr_t attr_t; typedef impl::abstract_parser
abstract_parser_t; rule() : ptr() {} ~rule() {} rule(rule const& r) : ptr(new impl::concrete_parser
(r)) {} template
rule(ParserT const& p) : ptr(new impl::concrete_parser
(p)) {} template
rule& operator=(ParserT const& p) { ptr.reset(new impl::concrete_parser
(p)); return *this; } rule& operator=(rule const& r) { ptr.reset(new impl::concrete_parser
(r)); return *this; } rule
copy() const { return rule
(ptr.get() ? ptr->clone() : 0); } private: friend class impl::rule_base_access; abstract_parser_t* get() const { return ptr.get(); } rule(abstract_parser_t* ptr) : ptr(ptr) {} rule(abstract_parser_t const* ptr) : ptr(ptr) {} scoped_ptr
ptr; }; }} // namespace boost::spirit #endif
rule.hpp
Page URL
File URL
Prev
4/6
Next
Download
( 5 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.