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 Ion Gaztanaga 2007 // // 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) // // See http://www.boost.org/libs/intrusive for documentation. // ///////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTRUSIVE_GENERIC_HOOK_HPP #define BOOST_INTRUSIVE_GENERIC_HOOK_HPP #include
#include
#include
#include
#include
#include
namespace boost { namespace intrusive { namespace detail { /// @cond enum { NoBaseHook , ListBaseHook , SlistBaseHook , SetBaseHook , UsetBaseHook , SplaySetBaseHook , AvlSetBaseHook , BsSetBaseHook }; struct no_default_definer{}; template
struct default_definer; template
struct default_definer
{ typedef Hook default_list_hook; }; template
struct default_definer
{ typedef Hook default_slist_hook; }; template
struct default_definer
{ typedef Hook default_set_hook; }; template
struct default_definer
{ typedef Hook default_uset_hook; }; template
struct default_definer
{ typedef Hook default_splay_set_hook; }; template
struct default_definer
{ typedef Hook default_avl_set_hook; }; template
struct default_definer
{ typedef Hook default_bs_set_hook; }; template
struct make_default_definer { typedef typename detail::if_c < BaseHookType != 0 , default_definer
, no_default_definer>::type type; }; template < class GetNodeAlgorithms , class Tag , link_mode_type LinkMode , int HookType > struct make_node_holder { typedef typename detail::if_c ::value , detail::node_holder < typename GetNodeAlgorithms::type::node_traits::node , Tag , LinkMode , HookType> , typename GetNodeAlgorithms::type::node_traits::node >::type type; }; /// @endcond template < class GetNodeAlgorithms , class Tag , link_mode_type LinkMode , int HookType > class generic_hook /// @cond //If the hook is a base hook, derive generic hook from detail::node_holder //so that a unique base class is created to convert from the node //to the type. This mechanism will be used by base_hook_traits. // //If the hook is a member hook, generic hook will directly derive //from the hook. : public make_default_definer < generic_hook
, detail::is_same
::value*HookType >::type , public make_node_holder
::type /// @endcond { public: /// @cond struct boost_intrusive_tags { static const int hook_type = HookType; static const link_mode_type link_mode = LinkMode; typedef Tag tag; typedef typename GetNodeAlgorithms::type node_algorithms; typedef typename node_algorithms::node_traits node_traits; typedef typename node_traits::node node; typedef typename node_traits::node_ptr node_ptr; typedef typename node_traits::const_node_ptr const_node_ptr; static const bool is_base_hook = !detail::is_same
::value; enum { safemode_or_autounlink = (int)link_mode == (int)auto_unlink || (int)link_mode == (int)safe_link }; }; /// @endcond generic_hook() { if(boost_intrusive_tags::safemode_or_autounlink){ boost_intrusive_tags::node_algorithms::init (static_cast
(this)); } } generic_hook(const generic_hook& ) { if(boost_intrusive_tags::safemode_or_autounlink){ boost_intrusive_tags::node_algorithms::init (static_cast
(this)); } } generic_hook& operator=(const generic_hook& ) { return *this; } ~generic_hook() { destructor_impl (*this, detail::link_dispatch
()); } void swap_nodes(generic_hook &other) { boost_intrusive_tags::node_algorithms::swap_nodes ( static_cast
(this) , static_cast
(&other)); } bool is_linked() const { //is_linked() can be only used in safe-mode or auto-unlink BOOST_STATIC_ASSERT(( boost_intrusive_tags::safemode_or_autounlink )); return !boost_intrusive_tags::node_algorithms::unique (static_cast
(this)); } void unlink() { BOOST_STATIC_ASSERT(( (int)boost_intrusive_tags::link_mode == (int)auto_unlink )); boost_intrusive_tags::node_algorithms::unlink (static_cast
(this)); boost_intrusive_tags::node_algorithms::init (static_cast
(this)); } }; } //namespace detail } //namespace intrusive } //namespace boost #include
#endif //BOOST_INTRUSIVE_GENERIC_HOOK_HPP
generic_hook.hpp
Page URL
File URL
Prev
7/18
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.