Class: GPS_PVT::Coordinate::Base
- Inherits:
-
Object
- Object
- GPS_PVT::Coordinate::Base
- Defined in:
- ext/gps_pvt/Coordinate/Coordinate_wrap.cxx,
ext/gps_pvt/Coordinate/Coordinate_wrap.cxx
Overview
Proxy of C++ GPS_PVT::Coordinate::Base class
Instance Method Summary collapse
-
#each(*args) ⇒ Object
call-seq: each.
- #initialize(*args, self) ⇒ Object constructor
-
#to_s(*args) ⇒ Object
call-seq: to_s -> std::string.
Constructor Details
#initialize(*args, self) ⇒ Object
2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 |
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 2890
SWIGINTERN VALUE _wrap_new_Base(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs;
if (argc > 3) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_Base__SWIG_0(nargs, args, self);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_3DT_double_t, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Base__SWIG_2(nargs, args, self);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Vector3T_double_t, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Base__SWIG_3(nargs, args, self);
}
}
if (argc == 3) {
int _v;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Base__SWIG_1(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "Base.new",
" Base.new()\n"
" Base.new(double const &v0, double const &v1, double const &v2)\n"
" Base.new(System_3D< double >::self_t const &orig)\n"
" Base.new(Vector3< double > const &vec)\n");
return Qnil;
}
|
Instance Method Details
#each(*args) ⇒ Object
call-seq:
each
Iterate thru each element in the Base. A block must be provided.
3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 |
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3002
SWIGINTERN VALUE
_wrap_Base_each(int argc, VALUE *argv, VALUE self) {
System_3D< double > *arg1 = (System_3D< double > *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
{
if(!rb_block_given_p()){
return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
}
}
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_System_3DT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_3D< double > const *","each", 1, self ));
}
arg1 = reinterpret_cast< System_3D< double > * >(argp1);
try {
System_3D_Sl_double_Sg__each((System_3D< double > const *)arg1,(void const *)arg2);
} catch(native_exception &_e) {
(&_e)->regenerate();
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#to_s(*args) ⇒ Object
call-seq:
to_s -> std::string
An instance method.
2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 |
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 2970
SWIGINTERN VALUE
_wrap_Base___str__(int argc, VALUE *argv, VALUE self) {
System_3D< double > *arg1 = (System_3D< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::string result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_System_3DT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_3D< double > const *","__str__", 1, self ));
}
arg1 = reinterpret_cast< System_3D< double > * >(argp1);
result = System_3D_Sl_double_Sg____str__((System_3D< double > const *)arg1);
vresult = SWIG_From_std_string(static_cast< std::string >(result));
return vresult;
fail:
return Qnil;
}
|