📄 common.i
字号:
/* Directives common to all interfaces. *//* Math operators */%rename(__add__) operator+;%rename(__sub__) operator-;%rename(__mul__) operator*;%rename(operator_assignment) operator=;%rename(class_operator_assignment) *::operator=;/* Logical operators */%rename(operator_equal_to) operator==;%rename(operator_not_equal_to) operator!=;%rename(operator_less_than) operator<;%rename(operator_greater_than) operator>;%rename(operator_less_than_equal_to) operator <=;%rename(operator_greater_than_equal_to) operator >=;/* Stream operators */%rename(streamRead) operator<<;%rename(streamWrite) operator>>;/* Increment/decrement operators */%ignore operator++;%ignore operator--;%ignore operator+=;%ignore operator-=;%ignore *::operator++;%ignore *::operator--;/* stdio support */%include "cstring.i"/* indexing operator */%rename(operator_bracket) operator[];%rename(class_operator_bracket) *::operator[];/* Standadard ANSI C++ library support (e.g., STL) support */%rename(std_string) std::string;%include "std_common.i"%include "std_map.i"%include "std_pair.i"%include "std_string.i"%include "std_vector.i"namespace std { %template(vectori) vector<int>; %template(vectord) vector<double>;};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -