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 David Abrahams 2002. // 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 LIST_DWA2002627_HPP # define LIST_DWA2002627_HPP # include
# include
# include
# include
namespace boost { namespace python { namespace detail { struct BOOST_PYTHON_DECL list_base : object { void append(object_cref); // append object to end long count(object_cref value) const; // return number of occurrences of value void extend(object_cref sequence); // extend list by appending sequence elements long index(object_cref value) const; // return index of first occurrence of value void insert(ssize_t index, object_cref); // insert object before index void insert(object const& index, object_cref); object pop(); // remove and return item at index (default last) object pop(ssize_t index); object pop(object const& index); void remove(object_cref value); // remove first occurrence of value void reverse(); // reverse *IN PLACE* void sort(); // sort *IN PLACE*; if given, cmpfunc(x, y) -> -1, 0, 1 void sort(object_cref cmpfunc); protected: list_base(); // new list explicit list_base(object_cref sequence); // new list initialized from sequence's items BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(list_base, object) private: static detail::new_non_null_reference call(object const&); }; } class list : public detail::list_base { typedef detail::list_base base; public: list() {} // new list template
explicit list(T const& sequence) : base(object(sequence)) { } template
void append(T const& x) { base::append(object(x)); } template
long count(T const& value) const { return base::count(object(value)); } template
void extend(T const& x) { base::extend(object(x)); } template
long index(T const& x) const { return base::index(object(x)); } template
void insert(ssize_t index, T const& x) // insert object before index { base::insert(index, object(x)); } template
void insert(object const& index, T const& x) // insert object before index { base::insert(index, object(x)); } object pop() { return base::pop(); } object pop(ssize_t index) { return base::pop(index); } template
object pop(T const& index) { return base::pop(object(index)); } template
void remove(T const& value) { base::remove(object(value)); } void sort() { base::sort(); } template
void sort(T const& value) { base::sort(object(value)); } public: // implementation detail -- for internal use only BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(list, base) }; // // Converter Specializations // namespace converter { template <> struct object_manager_traits
: pytype_object_manager_traits<&PyList_Type,list> { }; } }} // namespace boost::python #endif // LIST_DWA2002627_HPP
list.hpp
Page URL
File URL
Prev
34/85
Next
Download
( 3 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.