simpleStorage-class      package:externalVector      R Documentation

_C_l_a_s_s "_s_i_m_p_l_e_S_t_o_r_a_g_e", _a_n _e_x_t_e_r_n_a_l _s_t_o_r_a_g_e _c_l_a_s_s _t_h_a_t _u_s_e_s
_r_e_f_e_r_e_n_c_e _t_o _R _b_a_s_i_c _v_e_c_t_o_r_s _a_s _s_t_o_r_a_g_e

_D_e_s_c_r_i_p_t_i_o_n:

     The class '"simpleStorage"' is an implementation of the
     '"externalStorage"' class. The actual storage for the vector
     object is contained in an R basic vector referenced through the
     'ptr' slot.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("simpleStorage",
     type, length)'. See the 'initialize' method for
     '"externalStorage"' for details.

_S_l_o_t_s:


     '_p_t_r': Object of class '"externalptr"', keeps the R basic vector
          in the protected field. For '"logical"', '"integer"',
          '"numeric"', '"complex"', the address field of the external
          pointer also holds a pointer to the data in the basic R
          vector. 

     '_t_y_p_e': Object of class '"vector"', a vector object of length one
          representing the type of object stored in the external
          storage. Usually one of the basic R vector types. 

     '_l_e_n_g_t_h': Object of class '"integer"', Cached value for the length
          of the vector stored in the external storage. 

_E_x_t_e_n_d_s:

     Class '"externalStorage"', directly. Class '"externalResource"',
     by class '"externalStorage"'.

_M_e_t_h_o_d_s:

     Signature components for the methods:

       resource  The class "simpleStorage"

     Description of the methods:


     _a_l_l_o_c_a_t_e_d_S_i_z_e(_r_e_s_o_u_r_c_e) Length of the vector to be stored. 

     _a_l_l_o_c_a_t_e_d_T_y_p_e The type of vector to be stored. 

_S_e_e _A_l_s_o:

     'externalStorage-class' to see details of the super class.

     'externalVector' to create '"externalVector"' objects that use
     this resource.

