INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "C style pointer"
copyright: "Object Tools, 1998-2001"
author: "Vasily V. Kuznetsov"
cluster: ecom
class ECOM_PTR [G]
inherit

POINTER_REF
redefine
out,
infix "+"
end
feature -- Size

size: INTEGER
feature -- Access

object: G
require
non_null_ptr: not is_null

object_item (index: INTEGER): G
-- C style counted
require
non_null_ptr: not is_null
feature -- Element change

set_object (obj: G)
require
non_null_ptr: not is_null

set_object_item (obj: G; index: INTEGER)
-- C style counted
require
non_null_ptr: not is_null
feature -- Get reference

get_ptr: POINTER

to_qi_ptr: expanded ECOM_PTR [POINTER]
feature -- Arithmetic operations

infix "+" (offset: INTEGER): POINTER
feature -- Output

out: STRING
-- Printable representation of pointer value
feature -- Status report

is_null: BOOLEAN

is_initialized: BOOLEAN
end -- class ECOM_PTR

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES