Function: set


/* C */
void
sidl_int__array_set(struct sidl_int__array* array,
                    const int32_t           indices[],
                    int32_t                 value);

// C++
void
sidl::array<int32_t>::set(const int32_t indices[], int32_t value);

C FORTRAN 77
       subroutine sidl_int__array_set_f(array, indices, value)
       integer*8 array
       integer*4 indices()

! FORTRAN 90
subroutine set(array, indices, value)
  type(sidl_int_1d), intent(in) :: array ! type depends on dimension
  integer (selected_int_kind(9)), intent(in), dimension(:) :: indices
  integer (selected_int_kind(9)), intent(in) :: value

// Java
  public native void _set(int i, int j, int k, int l, int m, int n, int o, int value);

This method sets the value in index indices for an array of any dimension to value. The type of the argument value is the value type for the SIDL type being held (see table 5.2). For arrays of objects and interfaces, the array will make its own reference by calling addRef() on value, so the client retains its reference to value. For arrays of strings, the array will make a copy of the string, so the client retains ownership of the value pointer.





babel-0.9.6
users_guide Last Modified 2004-09-08

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