Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.219.206.240
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
swig4.0 /
ocaml /
[ HOME SHELL ]
Name
Size
Permission
Action
carray.i
3.09
KB
-rw-r--r--
class.swg
1.75
KB
-rw-r--r--
cstring.i
5.93
KB
-rw-r--r--
director.swg
2.96
KB
-rw-r--r--
ocaml.i
1.28
KB
-rw-r--r--
ocaml.swg
8.35
KB
-rw-r--r--
ocamlkw.swg
1.16
KB
-rw-r--r--
ocamlrun.swg
14.59
KB
-rw-r--r--
ocamlrundec.swg
6.29
KB
-rw-r--r--
preamble.swg
473
B
-rw-r--r--
std_common.i
597
B
-rw-r--r--
std_complex.i
1.51
KB
-rw-r--r--
std_deque.i
722
B
-rw-r--r--
std_except.i
1.4
KB
-rw-r--r--
std_list.i
4.33
KB
-rw-r--r--
std_map.i
2.54
KB
-rw-r--r--
std_pair.i
773
B
-rw-r--r--
std_string.i
3.08
KB
-rw-r--r--
std_vector.i
2.98
KB
-rw-r--r--
stl.i
291
B
-rw-r--r--
swig.ml
4.74
KB
-rw-r--r--
swig.mli
1.72
KB
-rw-r--r--
swigp4.ml
6.5
KB
-rw-r--r--
typecheck.i
5.21
KB
-rw-r--r--
typemaps.i
1.99
KB
-rw-r--r--
typeregister.swg
55
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : std_vector.i
/* ----------------------------------------------------------------------------- * std_vector.i * * SWIG typemaps for std::vector types * ----------------------------------------------------------------------------- */ %include <std_common.i> // ------------------------------------------------------------------------ // std::vector // // The aim of all that follows would be to integrate std::vector with // Python as much as possible, namely, to allow the user to pass and // be returned Python tuples or lists. // const declarations are used to guess the intent of the function being // exported; therefore, the following rationale is applied: // // -- f(std::vector<T>), f(const std::vector<T>&), f(const std::vector<T>*): // the parameter being read-only, either a Python sequence or a // previously wrapped std::vector<T> can be passed. // -- f(std::vector<T>&), f(std::vector<T>*): // the parameter must be modified; therefore, only a wrapped std::vector // can be passed. // -- std::vector<T> f(): // the vector is returned by copy; therefore, a Python sequence of T:s // is returned which is most easily used in other Python functions // -- std::vector<T>& f(), std::vector<T>* f(), const std::vector<T>& f(), // const std::vector<T>* f(): // the vector is returned by reference; therefore, a wrapped std::vector // is returned // ------------------------------------------------------------------------ %{ #include <vector> #include <algorithm> #include <stdexcept> %} // exported class namespace std { template <class T> class vector { public: typedef size_t size_type; typedef ptrdiff_t difference_type; typedef T value_type; typedef value_type* pointer; typedef const value_type* const_pointer; typedef value_type& reference; typedef const value_type& const_reference; vector(unsigned int size = 0); vector(unsigned int size, const T& value); vector(const vector& other); unsigned int size() const; bool empty() const; void clear(); void push_back(const T& x); T operator [] ( int f ); vector <T> &operator = ( vector <T> &other ); %extend { void set( int i, const T &x ) { self->resize(i+1); (*self)[i] = x; } }; %extend { T *to_array() { T *array = new T[self->size() + 1]; for( int i = 0; i < self->size(); i++ ) array[i] = (*self)[i]; return array; } }; }; }; %insert(ml) %{ let array_to_vector v argcons array = for i = 0 to (Array.length array) - 1 do ignore ((invoke v) "set" (C_list [ C_int i ; (argcons array.(i)) ])) done ; v let vector_to_array v argcons array = for i = 0; to (get_int ((invoke v) "size" C_void)) - 1 do array.(i) <- argcons ((invoke v) "[]" (C_int i)) done ; v %} %insert(mli) %{ val array_to_vector : c_obj -> ('a -> c_obj) -> 'a array -> c_obj val vector_to_array : c_obj -> (c_obj -> 'a) -> 'a array -> c_obj %}
Close