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 DICT_20020706_HPP #define DICT_20020706_HPP # include
#include
#include
#include
#include
namespace boost { namespace python { class dict; namespace detail { struct BOOST_PYTHON_DECL dict_base : object { // D.clear() -> None. Remove all items from D. void clear(); // D.copy() -> a shallow copy of D dict copy(); // D.get(k[,d]) -> D[k] if D.has_key(k), else d. d defaults to None. object get(object_cref k) const; object get(object_cref k, object_cref d) const; // D.has_key(k) -> 1 if D has a key k, else 0 bool has_key(object_cref k) const; // D.items() -> list of D's (key, value) pairs, as 2-tuples list items() const; // D.iteritems() -> an iterator over the (key, value) items of D object iteritems() const; // D.iterkeys() -> an iterator over the keys of D object iterkeys() const; // D.itervalues() -> an iterator over the values of D object itervalues() const; // D.keys() -> list of D's keys list keys() const; // D.popitem() -> (k, v), remove and return some (key, value) pair as a // 2-tuple; but raise KeyError if D is empty tuple popitem(); // D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if not D.has_key(k) object setdefault(object_cref k); object setdefault(object_cref k, object_cref d); // D.update(E) -> None. Update D from E: for k in E.keys(): D[k] = E[k] void update(object_cref E); // D.values() -> list of D's values list values() const; protected: // dict() -> new empty dictionary. // dict(mapping) -> new dictionary initialized from a mapping object's // (key, value) pairs. // dict(seq) -> new dictionary initialized as if via: dict_base(); // new dict explicit dict_base(object_cref data); BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(dict_base, object) private: static detail::new_reference call(object const&); }; } class dict : public detail::dict_base { typedef detail::dict_base base; public: // dict() -> new empty dictionary. // dict(mapping) -> new dictionary initialized from a mapping object's // (key, value) pairs. // dict(seq) -> new dictionary initialized as if via: dict() {} // new dict template
explicit dict(T const& data) : base(object(data)) { } template
object get(T const& k) const { return base::get(object(k)); } template
object get(T1 const& k, T2 const& d) const { return base::get(object(k),object(d)); } template
bool has_key(T const& k) const { return base::has_key(object(k)); } template
object setdefault(T const& k) { return base::setdefault(object(k)); } template
object setdefault(T1 const& k, T2 const& d) { return base::setdefault(object(k),object(d)); } template
void update(T const& E) { base::update(object(E)); } public: // implementation detail -- for internal use only BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(dict, base) }; // // Converter Specializations // namespace converter { template <> struct object_manager_traits
: pytype_object_manager_traits<&PyDict_Type,dict> { }; } }} // namespace boost::python #endif
dict.hpp
Page URL
File URL
Prev
19/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.