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) 2003 Jonathan de Halleux (dehalleux@pelikhan.com) 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) =============================================================================*/ #ifndef BOOST_SPIRIT_ACTOR_HPP #define BOOST_SPIRIT_ACTOR_HPP #include
/////////////////////////////////////////////////////////////////////////////// // // Actors documentation and convention // // Actors // // Actors are predefined semantic action functors. They are used to do an // action on the parse result if the parser has had a successful match. An // example of actor is the append_actor described in the Spirit // documentation. // // The action takes place through a call to the () operator: single argument // () operator call for character parsers and two argument (first,last) call // for phrase parsers. Actors should implement at least one of the two () // operator. // // Actor instances are not created direcly since they usually involve a // number of template parameters. Instead generator functions ("helper // functions") are provided to generate actors according to their arguments. // All helper functions have the "_a" suffix. For example, append_actor is // created using the append_a function. // // Policy holder actors and policy actions // // A lot of actors need to store reference to one or more objects. For // example, actions on container need to store a reference to the container. // Therefore, this kind of actor have been broken down into // // - a action policy that does the action (act method), // - a policy holder actor that stores the references and feeds the act // method. // // Policy holder actors // // Policy holder have the following naming convention: //
_ >> *
>> !value >> actor // where member are the policy stored member, they can be of type: // // - ref, a reference, // - const_ref, a const reference, // - value, by value, // - empty, no stored members // - !value states if the policy uses the parse result or not. // // The available policy holder are enumerated below: // // - empty_actor, nothing stored, feeds parse result // - value_actor, 1 object stored by value, feeds value // - ref_actor, 1 reference stored, feeds ref // - ref_value_actor, 1 reference stored, feeds ref and parse result // // Doc. convention // // - ref is a reference to an object stored in a policy holder actor, // - value_ref,value1_ref, value2_ref are a const reference stored in a // policy holder actor, // - value is the parse result in the single argument () operator, // - first,last are the parse result in the two argument () operator // // Actors (generator functions) and quick description // // - assign_a(ref) assign parse result to ref // - assign_a(ref, value_ref) assign value_ref to ref // - increment_a(ref) increment ref // - decrement_a(ref) decrement ref // - push_back_a(ref) push back the parse result in ref // - push_back_a(ref, value_ref) push back value_ref in ref // - push_front_a(ref) push front the parse result in ref // - push_front_a(ref, value_ref) push front value_ref in ref // - insert_key_a(ref,value_ref) insert value_ref in ref using the // parse result as key // - insert_at_a(ref, key_ref) insert the parse result in ref at key_ref // - insert_at_a(ref, key_ref insert value_ref in ref at key_ref // , value_ref) // - assign_key_a(ref, value_ref) assign value_ref in ref using the // parse result as key // - erase_a(ref, key) erase data at key from ref // - clear_a(ref) clears ref // - swap_a(aref, bref) swaps aref and bref // /////////////////////////////////////////////////////////////////////////////// #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#endif
actor.hpp
Page URL
File URL
Prev 1/11
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.