Function: get3


/* C */
double
sidl_double__array_get3(const struct sidl_double__array* array,
                        int32_t                          i1,
                        int32_t                          i2,
                        int32_t                          i3);
// C++
double
sidl::array<double>::get(int32_t i1, int32_t i2, int32_t i3);

C FORTRAN 77
       subroutine sidl_double__array_get3_f(array, i1, i2, i3, result)
       integer*8 array
       integer*4 i1, i2, i3
       real*8 result

! FORTRAN 90
subroutine get(array, i1, i2, i3, result)
  type(sidl_double_3d), intent(in) :: array
  integer (selected_int_kind(9)), intent(in) :: i1, i2, i3
  real (selected_real_kind(17,308)), intent(out) :: result

// Java
  public double get(int i, int j, int k);

This method returns the element with indices (i1, i2, i3) for a three dimensional array. The return type of this method is the value type for the SIDL type being held (see Table 5.2). This method must only be called for three dimensional arrays. For objects and interfaces, the client owns the returned reference (i.e., the client is obliged to call deleteRef() when they are done with the reference unless it is NULL). For arrays of strings, the client owns the returned string (i.e., the client is obliged to call free() on the returned pointer unless it is NULL). There is no reliable way to determine from the return value cases when i1, i2, i3 are out of bounds.





babel-0.10.2
users_guide Last Modified 2005-03-23

http://www.llnl.gov/CASC/components
components@llnl.gov