FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/include/boost/python/object_protocol_core.hpp at develop · FadyEssam/python · GitHub
FadyEssam
/
python
Public
forked from
boostorg/python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
include
/
boost
/
python
/
object_protocol_core.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (40 loc) · 2.03 KB
Breadcrumbs
python
/
include
/
boost
/
python
/
object_protocol_core.hpp
Copy path
File metadata and controls
53 lines (40 loc) · 2.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
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
OBJECT_PROTOCOL_CORE_DWA2002615_HPP
#
define
OBJECT_PROTOCOL_CORE_DWA2002615_HPP
#
include
<
boost/python/detail/prefix.hpp
>
#
include
<
boost/python/handle_fwd.hpp
>
namespace
boost
{
namespace
python
{
namespace
api
{
class
object
;
BOOST_PYTHON_DECL
object
getattr
(object
const
& target, object
const
& key);
BOOST_PYTHON_DECL
object
getattr
(object
const
& target, object
const
& key, object
const
& default_);
BOOST_PYTHON_DECL
void
setattr
(object
const
& target, object
const
& key, object
const
& value);
BOOST_PYTHON_DECL
void
delattr
(object
const
& target, object
const
& key);
//
These are defined for efficiency, since attributes are commonly
//
accessed through literal strings.
BOOST_PYTHON_DECL
object
getattr
(object
const
& target,
char
const
* key);
BOOST_PYTHON_DECL
object
getattr
(object
const
& target,
char
const
* key, object
const
& default_);
BOOST_PYTHON_DECL
void
setattr
(object
const
& target,
char
const
* key, object
const
& value);
BOOST_PYTHON_DECL
void
delattr
(object
const
& target,
char
const
* key);
BOOST_PYTHON_DECL
object
getitem
(object
const
& target, object
const
& key);
BOOST_PYTHON_DECL
void
setitem
(object
const
& target, object
const
& key, object
const
& value);
BOOST_PYTHON_DECL
void
delitem
(object
const
& target, object
const
& key);
BOOST_PYTHON_DECL
object
getslice
(object
const
& target, handle<>
const
& begin, handle<>
const
& end);
BOOST_PYTHON_DECL
void
setslice
(object
const
& target, handle<>
const
& begin, handle<>
const
& end, object
const
& value);
BOOST_PYTHON_DECL
void
delslice
(object
const
& target, handle<>
const
& begin, handle<>
const
& end);
}
using
api::getattr;
using
api::setattr;
using
api::delattr;
using
api::getitem;
using
api::setitem;
using
api::delitem;
using
api::getslice;
using
api::setslice;
using
api::delslice;
}}
//
namespace boost::python
#
endif
//
OBJECT_PROTOCOL_CORE_DWA2002615_HPP
Back
|
FazBrowse Home
|
New Git URL