Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
swig /
2.0.10 /
python /
[ HOME SHELL ]
Name
Size
Permission
Action
argcargv.i
2.58
KB
-rw-r--r--
attribute.i
34
B
-rw-r--r--
boost_shared_ptr.i
15.93
KB
-rw-r--r--
builtin.swg
16.1
KB
-rw-r--r--
carrays.i
932
B
-rw-r--r--
ccomplex.i
763
B
-rw-r--r--
cdata.i
30
B
-rw-r--r--
cmalloc.i
32
B
-rw-r--r--
cni.i
42
B
-rw-r--r--
complex.i
80
B
-rw-r--r--
cpointer.i
33
B
-rw-r--r--
cstring.i
32
B
-rw-r--r--
cwstring.i
60
B
-rw-r--r--
defarg.swg
1.13
KB
-rw-r--r--
director.swg
10.85
KB
-rw-r--r--
embed.i
2.64
KB
-rw-r--r--
embed15.i
2.8
KB
-rw-r--r--
exception.i
139
B
-rw-r--r--
factory.i
32
B
-rw-r--r--
file.i
1.01
KB
-rw-r--r--
implicit.i
287
B
-rw-r--r--
jstring.i
1.72
KB
-rw-r--r--
pyabc.i
417
B
-rw-r--r--
pyapi.swg
1.31
KB
-rw-r--r--
pybackward.swg
1.13
KB
-rw-r--r--
pybuffer.i
2.72
KB
-rw-r--r--
pyclasses.swg
3.1
KB
-rw-r--r--
pycomplex.swg
2.19
KB
-rw-r--r--
pycontainer.swg
27.43
KB
-rw-r--r--
pydocs.swg
994
B
-rw-r--r--
pyerrors.swg
1.58
KB
-rw-r--r--
pyfragments.swg
551
B
-rw-r--r--
pyhead.swg
5.67
KB
-rw-r--r--
pyinit.swg
12.98
KB
-rw-r--r--
pyiterators.swg
10.39
KB
-rw-r--r--
pymacros.swg
38
B
-rw-r--r--
pyname_compat.i
4.11
KB
-rw-r--r--
pyopers.swg
8.9
KB
-rw-r--r--
pyprimtypes.swg
7.19
KB
-rw-r--r--
pyrun.swg
50.51
KB
-rw-r--r--
pyruntime.swg
645
B
-rw-r--r--
pystdcommon.swg
6.72
KB
-rw-r--r--
pystrings.swg
2.89
KB
-rw-r--r--
python.swg
1.99
KB
-rw-r--r--
pythonkw.swg
2.27
KB
-rw-r--r--
pythreads.swg
2.8
KB
-rw-r--r--
pytuplehlp.swg
308
B
-rw-r--r--
pytypemaps.swg
2.98
KB
-rw-r--r--
pyuserdir.swg
6.14
KB
-rw-r--r--
pywstrings.swg
2.02
KB
-rw-r--r--
std_alloc.i
27
B
-rw-r--r--
std_basic_string.i
2.75
KB
-rw-r--r--
std_carray.i
1.55
KB
-rw-r--r--
std_char_traits.i
33
B
-rw-r--r--
std_common.i
2.27
KB
-rw-r--r--
std_complex.i
469
B
-rw-r--r--
std_container.i
58
B
-rw-r--r--
std_deque.i
678
B
-rw-r--r--
std_except.i
35
B
-rw-r--r--
std_ios.i
66
B
-rw-r--r--
std_iostream.i
107
B
-rw-r--r--
std_list.i
668
B
-rw-r--r--
std_map.i
9.49
KB
-rw-r--r--
std_multimap.i
2.44
KB
-rw-r--r--
std_multiset.i
1.06
KB
-rw-r--r--
std_pair.i
5.79
KB
-rw-r--r--
std_set.i
1.46
KB
-rw-r--r--
std_shared_ptr.i
68
B
-rw-r--r--
std_sstream.i
29
B
-rw-r--r--
std_streambuf.i
31
B
-rw-r--r--
std_string.i
35
B
-rw-r--r--
std_vector.i
691
B
-rw-r--r--
std_vectora.i
829
B
-rw-r--r--
std_wios.i
26
B
-rw-r--r--
std_wiostream.i
166
B
-rw-r--r--
std_wsstream.i
30
B
-rw-r--r--
std_wstreambuf.i
32
B
-rw-r--r--
std_wstring.i
63
B
-rw-r--r--
stl.i
182
B
-rw-r--r--
typemaps.i
4.35
KB
-rw-r--r--
wchar.i
186
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : std_pair.i
/* Pairs */ %include <pystdcommon.swg> //#define SWIG_STD_PAIR_ASVAL %fragment("StdPairTraits","header",fragment="StdTraits") { namespace swig { #ifdef SWIG_STD_PAIR_ASVAL template <class T, class U > struct traits_asval<std::pair<T,U> > { typedef std::pair<T,U> value_type; static int get_pair(PyObject* first, PyObject* second, std::pair<T,U> *val) { if (val) { T *pfirst = &(val->first); int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) return res1; U *psecond = &(val->second); int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; return res1 > res2 ? res1 : res2; } else { T *pfirst = 0; int res1 = swig::asval((PyObject*)first, 0); if (!SWIG_IsOK(res1)) return res1; U *psecond = 0; int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; return res1 > res2 ? res1 : res2; } } static int asval(PyObject *obj, std::pair<T,U> *val) { int res = SWIG_ERROR; if (PyTuple_Check(obj)) { if (PyTuple_GET_SIZE(obj) == 2) { res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val); } } else if (PySequence_Check(obj)) { if (PySequence_Size(obj) == 2) { swig::SwigVar_PyObject first = PySequence_GetItem(obj,0); swig::SwigVar_PyObject second = PySequence_GetItem(obj,1); res = get_pair(first, second, val); } } else { value_type *p; res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<value_type>(),0); if (SWIG_IsOK(res) && val) *val = *p; } return res; } }; #else template <class T, class U > struct traits_asptr<std::pair<T,U> > { typedef std::pair<T,U> value_type; static int get_pair(PyObject* first, PyObject* second, std::pair<T,U> **val) { if (val) { value_type *vp = %new_instance(std::pair<T,U>); T *pfirst = &(vp->first); int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) return res1; U *psecond = &(vp->second); int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; *val = vp; return SWIG_AddNewMask(res1 > res2 ? res1 : res2); } else { T *pfirst = 0; int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) return res1; U *psecond = 0; int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; return res1 > res2 ? res1 : res2; } } static int asptr(PyObject *obj, std::pair<T,U> **val) { int res = SWIG_ERROR; if (PyTuple_Check(obj)) { if (PyTuple_GET_SIZE(obj) == 2) { res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val); } } else if (PySequence_Check(obj)) { if (PySequence_Size(obj) == 2) { swig::SwigVar_PyObject first = PySequence_GetItem(obj,0); swig::SwigVar_PyObject second = PySequence_GetItem(obj,1); res = get_pair(first, second, val); } } else { value_type *p; res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<value_type>(),0); if (SWIG_IsOK(res) && val) *val = p; } return res; } }; #endif template <class T, class U > struct traits_from<std::pair<T,U> > { static PyObject *from(const std::pair<T,U>& val) { PyObject* obj = PyTuple_New(2); PyTuple_SetItem(obj,0,swig::from(val.first)); PyTuple_SetItem(obj,1,swig::from(val.second)); return obj; } }; } #if defined(SWIGPYTHON_BUILTIN) SWIGINTERN Py_ssize_t SwigPython_std_pair_len (PyObject *a) { return 2; } SWIGINTERN PyObject* SwigPython_std_pair_repr (PyObject *o) { PyObject *tuple = PyTuple_New(2); assert(tuple); PyTuple_SET_ITEM(tuple, 0, PyObject_GetAttrString(o, (char*) "first")); PyTuple_SET_ITEM(tuple, 1, PyObject_GetAttrString(o, (char*) "second")); PyObject *result = PyObject_Repr(tuple); Py_DECREF(tuple); return result; } SWIGINTERN PyObject* SwigPython_std_pair_getitem (PyObject *a, Py_ssize_t b) { PyObject *result = PyObject_GetAttrString(a, b % 2 ? (char*) "second" : (char*) "first"); return result; } SWIGINTERN int SwigPython_std_pair_setitem (PyObject *a, Py_ssize_t b, PyObject *c) { int result = PyObject_SetAttrString(a, b % 2 ? (char*) "second" : (char*) "first", c); return result; } #endif } %feature("python:sq_length") std::pair "SwigPython_std_pair_len"; %feature("python:sq_length") std::pair<T*,U> "SwigPython_std_pair_len"; %feature("python:sq_length") std::pair<T,U*> "SwigPython_std_pair_len"; %feature("python:sq_length") std::pair<T*,U*> "SwigPython_std_pair_len"; %feature("python:tp_repr") std::pair "SwigPython_std_pair_repr"; %feature("python:tp_repr") std::pair<T*,U> "SwigPython_std_pair_repr"; %feature("python:tp_repr") std::pair<T,U*> "SwigPython_std_pair_repr"; %feature("python:tp_repr") std::pair<T*,U*> "SwigPython_std_pair_repr"; %feature("python:sq_item") std::pair "SwigPython_std_pair_getitem"; %feature("python:sq_item") std::pair<T*,U> "SwigPython_std_pair_getitem"; %feature("python:sq_item") std::pair<T,U*> "SwigPython_std_pair_getitem"; %feature("python:sq_item") std::pair<T*,U*> "SwigPython_std_pair_getitem"; %feature("python:sq_ass_item") std::pair "SwigPython_std_pair_setitem"; %feature("python:sq_ass_item") std::pair<T*,U> "SwigPython_std_pair_setitem"; %feature("python:sq_ass_item") std::pair<T,U*> "SwigPython_std_pair_setitem"; %feature("python:sq_ass_item") std::pair<T*,U*> "SwigPython_std_pair_setitem"; %define %swig_pair_methods(pair...) #if !defined(SWIGPYTHON_BUILTIN) %extend { %pythoncode {def __len__(self): return 2 def __repr__(self): return str((self.first, self.second)) def __getitem__(self, index): if not (index % 2): return self.first else: return self.second def __setitem__(self, index, val): if not (index % 2): self.first = val else: self.second = val} } #endif %enddef %include <std/std_pair.i>
Close