Constructions |
Example:Here is the complete description of b_ks_pa() and the second constructor m_ks_pa():#include "def.h" #include "macro.h" main() { OP v,p; anfang(); v = callocobject(); p = callocobject(); m_il_v(2L,v); m_i_i(1L,s_v_i(v,0L)); m_i_i(2L,s_v_i(v,1L)); b_ks_pa(VECTOR,v,p); println(p); freeall(p); ende(); }(Please note that v is not freed, the reason is that it is part of p!)
and
INT b_ks_pa(OBJECTKIND kind;OP self, result)
INT m_ks_pa(OBJECTKIND kind;OP self, result)
Please note that you can access the INT value of the vector elements, which are INTEGERobjects. But you shouldn't use this routines, if you have implemented an own type of partition, which has no VECTORobject as the self-part. These have been the basic routines for PARTITIONobjects.
NAME DESCRIPTION MACRO s_pa_l s_v_l(s_pa_s) S_PA_L s_pa_li s_v_li(s_pa_s) S_PA_LI s_pa_i s_v_i(s_pa_s) S_PA_I s_pa_ii s_v_ii(s_pa_s) S_PA_II
Constructions |