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
// (C) Copyright Jeremy Siek 2004 // Distributed under 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_DETAIL_PROPERTY_HPP #define BOOST_DETAIL_PROPERTY_HPP #include
// for std::pair #include
// for is_same namespace boost { namespace detail { template
struct same_property { enum { value = is_same
::value }; }; struct error_property_not_found { }; template
struct property_value_dispatch { template
inline static T& get_value(PropertyTag& p, T*, Tag) { return p.m_value; } template
inline static const T& const_get_value(const PropertyTag& p, T*, Tag) { return p.m_value; } }; template
struct property_value_end { template
struct result { typedef T type; }; template
inline static T& get_value(PropertyList& p, T* t, Tag tag) { typedef typename PropertyList::next_type Next; typedef typename Next::tag_type Next_tag; enum { match = same_property
::value }; return property_value_dispatch
::get_value(static_cast
(p), t, tag); } template
inline static const T& const_get_value(const PropertyList& p, T* t, Tag tag) { typedef typename PropertyList::next_type Next; typedef typename Next::tag_type Next_tag; enum { match = same_property
::value }; return property_value_dispatch
::const_get_value(static_cast
(p), t, tag); } }; template <> struct property_value_end
{ template
struct result { typedef detail::error_property_not_found type; }; // Stop the recursion and return error template
inline static detail::error_property_not_found& get_value(no_property&, T*, Tag) { static error_property_not_found s_prop_not_found; return s_prop_not_found; } template
inline static const detail::error_property_not_found& const_get_value(const no_property&, T*, Tag) { static error_property_not_found s_prop_not_found; return s_prop_not_found; } }; template <> struct property_value_dispatch<0> { template
inline static typename property_value_end
::template result
::type& get_value(PropertyList& p, T* t, Tag tag) { return property_value_end
::get_value(p, t, tag); } template
inline static const typename property_value_end
::template result
::type& const_get_value(const PropertyList& p, T* t, Tag tag) { return property_value_end
::const_get_value(p, t, tag); } }; template
struct build_property_tag_value_alist { typedef typename PropertyList::next_type NextProperty; typedef typename PropertyList::value_type Value; typedef typename PropertyList::tag_type Tag; typedef typename build_property_tag_value_alist
::type Next; typedef std::pair< std::pair
, Next> type; }; template <> struct build_property_tag_value_alist
{ typedef no_property type; }; #if !defined BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template
struct extract_value { typedef error_property_not_found type; }; template
struct extract_value< std::pair
,Rest>, Tag2> { typedef typename extract_value
::type type; }; template
struct extract_value< std::pair
,Rest>, Tag> { typedef Value type; }; #else // VC++ workaround: // The main idea here is to replace partial specialization with // nested template member classes. Of course there is the // further complication that the outer class of the nested // template class cannot itself be a template class. // Hence the need for the ev_selector. -JGS struct recursive_extract; struct end_extract; template
struct ev_selector { typedef recursive_extract type; }; template <> struct ev_selector
{ typedef end_extract type; }; struct recursive_extract { template
struct bind_ { typedef typename TagValueAList::first_type AListFirst; typedef typename AListFirst::first_type Tag2; typedef typename AListFirst::second_type Value; enum { match = same_property
::value }; typedef typename TagValueAList::second_type Next; typedef typename ev_selector
::type Extractor; typedef typename boost::ct_if< match, Value, typename Extractor::template bind_
::type >::type type; }; }; struct end_extract { template
struct bind_ { typedef error_property_not_found type; }; }; #endif //!defined BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION } // namespace detail } // namespace boost #endif // BOOST_DETAIL_PROPERTY_HPP
property.hpp
Page URL
File URL
Prev
3/3 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.