Automatic generation produced by ISE Eiffel
note description: "Implementation of DB_STORE" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2014-04-23 20:23:51 -0800 (Wed, 23 Apr 2014) $" revision: "$Revision: 94913 $" class interface DATABASE_STORE [reference G -> DATABASE create default_create end] create make (size: INTEGER_32) create {DATABASE_STORE} string_make (i: INTEGER_32) -- Allocate space for at least n characters. -- (from SQL_SCAN) require -- from READABLE_STRING_GENERAL non_negative_size: i >= 0 ensure -- from READABLE_STRING_GENERAL empty_string: count = 0 area_allocated: capacity >= i scan_make (i: INTEGER_32) -- Create format and allocate string. -- (from SQL_SCAN) feature -- Initialization adapt (s: STRING_32): DATABASE_STORE [G] -- Object of a type conforming to the type of s, -- initialized with attributes from s -- (from STRING_32) ensure -- from STRING_32 adapt_not_void: Result /= Void shared_implementation: Result.shared_with (s) default_create -- Process instances of classes with no creation clause. -- (Default: do nothing.) -- (from ANY) from_c (c_string: POINTER) -- Reset contents of string from contents of c_string, -- a string created by some C function. -- (from STRING_32) require -- from STRING_32 c_string_exists: c_string /= default_pointer ensure -- from STRING_32 no_zero_byte: not has ('%U'.to_character_32) from_c_substring (c_string: POINTER; start_pos, end_pos: INTEGER_32) -- Reset contents of string from substring of c_string, -- a string created by some C function. -- (from STRING_32) require -- from STRING_32 c_string_exists: c_string /= default_pointer start_position_big_enough: start_pos >= 1 end_position_big_enough: start_pos <= end_pos + 1 ensure -- from STRING_32 valid_count: count = end_pos - start_pos + 1 make (size: INTEGER_32) scan_make (i: INTEGER_32) -- Create format and allocate string. -- (from SQL_SCAN) make_empty -- Create empty string. -- (from READABLE_STRING_GENERAL) ensure -- from READABLE_STRING_GENERAL empty: count = 0 area_allocated: capacity >= 0 make_filled (c: CHARACTER_32; n: INTEGER_32) -- Create string of length n filled with c. -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 valid_count: n >= 0 ensure -- from READABLE_STRING_32 count_set: count = n area_allocated: capacity >= n filled: occurrences (c) = count make_from_c (c_string: POINTER) -- Initialize from contents of c_string, -- a string created by some C function. -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 c_string_exists: c_string /= default_pointer make_from_cil (a_system_string: detachable SYSTEM_STRING) -- Initialize Current with a_system_string. -- (from STRING_32) require -- from READABLE_STRING_32 is_dotnet: {PLATFORM}.is_dotnet make_from_string (s: READABLE_STRING_32) -- Initialize from the characters of s. -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 string_exists: s /= Void ensure -- from READABLE_STRING_32 not_shared_implementation: Current /= s implies not shared_with (s) initialized: same_string (s) make_from_string_general (s: READABLE_STRING_GENERAL) -- Initialize from the characters of s. -- (from STRING_32) require -- from READABLE_STRING_32 string_exists: s /= Void ensure -- from READABLE_STRING_32 not_shared_implementation: Current /= s initialized: same_string_general (s) string_make (i: INTEGER_32) -- Allocate space for at least n characters. -- (from SQL_SCAN) require -- from READABLE_STRING_GENERAL non_negative_size: i >= 0 ensure -- from READABLE_STRING_GENERAL empty_string: count = 0 area_allocated: capacity >= i feature -- Access area: SPECIAL [CHARACTER_32] -- Storage for characters -- (from STRING_32) at alias "@" (i: INTEGER_32): CHARACTER_32 assign string_put -- Character at position i -- Was declared in {STRING_32} as synonym of `item`. -- (from STRING_32) require -- from READABLE_STRING_32 True require -- from TABLE valid_key: valid_index (i) require -- from TO_SPECIAL valid_index: valid_index (i) attached_type (type_id: INTEGER_32): INTEGER_32 -- Attached version of type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class unchanged_if_attached: is_attached_type (type_id) implies type_id = Result Bit_type: INTEGER_32 = 8 -- This type is obsolete and is not used anymore. -- (from REFLECTOR_CONSTANTS) boolean_field (i: INTEGER_32; object: ANY): BOOLEAN -- Boolean value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) boolean_field: field_type (i, object) = Boolean_type ensure -- from INTERNAL instance_free: class Boolean_type: INTEGER_32 = 3 -- Abstract type ID for predefined type {BOOLEAN}. -- (from REFLECTOR_CONSTANTS) case_insensitive_hash_code: INTEGER_32 -- Hash code value of the lower case version of Current. -- (from READABLE_STRING_GENERAL) ensure -- from READABLE_STRING_GENERAL consistent: Result = as_lower.case_insensitive_hash_code character_32_field (i: INTEGER_32; object: ANY): CHARACTER_32 -- Character value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) character_32_field: field_type (i, object) = Character_32_type ensure -- from INTERNAL instance_free: class Character_32_type: INTEGER_32 = 12 -- Abstract type ID for predefined type {CHARACTER_32}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `wide_character_type`. -- (from REFLECTOR_CONSTANTS) character_8_field (i: INTEGER_32; object: ANY): CHARACTER_8 -- Character value of i-th field of object -- Was declared in {INTERNAL} as synonym of `character_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) character_8_field: field_type (i, object) = Character_8_type ensure -- from INTERNAL instance_free: class Character_8_type: INTEGER_32 = 2 -- Abstract type ID for predefined type {CHARACTER_8}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `character_type`. -- (from REFLECTOR_CONSTANTS) character_field (i: INTEGER_32; object: ANY): CHARACTER_8 -- Character value of i-th field of object -- Was declared in {INTERNAL} as synonym of `character_8_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) character_8_field: field_type (i, object) = Character_8_type ensure -- from INTERNAL instance_free: class Character_type: INTEGER_32 = 2 -- Abstract type ID for predefined type {CHARACTER_8}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `character_8_type`. -- (from REFLECTOR_CONSTANTS) class_name (object: ANY): STRING_8 -- Name of the class associated with object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class class_name_8_of_type (type_id: INTEGER_32): STRING_8 -- Name of class associated with dynamic type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class class_name_of_type (type_id: INTEGER_32): STRING_8 -- Name of class associated with dynamic type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class code (i: INTEGER_32): NATURAL_32 -- Character at position i -- (from STRING_32) require -- from READABLE_STRING_GENERAL valid_index: valid_index (i) db_spec: DATABASE -- Handle to actual database -- (from HANDLE_SPEC) ensure -- from HANDLE_SPEC not_void: Result /= Void detachable_type (type_id: INTEGER_32): INTEGER_32 -- Detachable version of type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class unchanged_if_detachable: not is_attached_type (type_id) implies type_id = Result double_field (i: INTEGER_32; object: ANY): REAL_64 -- Double precision value of i-th field of object -- Was declared in {INTERNAL} as synonym of `real_64_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_64_field: field_type (i, object) = Real_64_type ensure -- from INTERNAL instance_free: class Double_type: INTEGER_32 = 6 -- Abstract type ID for predefined type {REAL_64}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `real_64_type`. -- (from REFLECTOR_CONSTANTS) dynamic_type (object: separate ANY): INTEGER_32 -- Dynamic type of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class dynamic_type_nonnegative: Result >= 0 Expanded_type: INTEGER_32 = 7 -- Abstract type ID for a non-predefined expanded type. -- (from REFLECTOR_CONSTANTS) False_constant: STRING_8 = "false" -- Constant string "false" -- (from READABLE_STRING_GENERAL) field (i: INTEGER_32; object: ANY): detachable ANY -- Object attached to the i-th field of object -- (directly or through a reference) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) not_special: not is_special (object) ensure -- from INTERNAL instance_free: class field_name (i: INTEGER_32; object: ANY): STRING_8 -- Name of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) not_special: not is_special (object) ensure -- from INTERNAL instance_free: class result_exists: Result /= Void field_name_8_of_type (i: INTEGER_32; type_id: INTEGER_32): STRING_8 -- Name of i-th field of dynamic type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 index_large_enough: i >= 1 index_small_enought: i <= field_count_of_type (type_id) ensure -- from REFLECTOR instance_free: class field_name_of_type (i: INTEGER_32; type_id: INTEGER_32): STRING_8 -- Name of i-th field of dynamic type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 index_large_enough: i >= 1 index_small_enought: i <= field_count_of_type (type_id) ensure -- from REFLECTOR instance_free: class field_offset (i: INTEGER_32; object: ANY): INTEGER_32 -- Offset of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) not_special: not is_special (object) ensure -- from INTERNAL instance_free: class field_static_type_of_type (i: INTEGER_32; type_id: INTEGER_32): INTEGER_32 -- Static type of declared i-th field of dynamic type type_id -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 index_large_enough: i >= 1 index_small_enough: i <= field_count_of_type (type_id) ensure -- from REFLECTOR instance_free: class field_type_nonnegative: Result >= 0 field_type (i: INTEGER_32; object: ANY): INTEGER_32 -- Abstract type of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) ensure -- from INTERNAL instance_free: class field_type_nonnegative: Result >= 0 field_type_of_type (i: INTEGER_32; type_id: INTEGER_32): INTEGER_32 -- Abstract type of i-th field of dynamic type type_id -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 index_large_enough: i >= 1 index_small_enough: i <= field_count_of_type (type_id) ensure -- from REFLECTOR instance_free: class field_type_nonnegative: Result >= 0 fuzzy_index (other: READABLE_STRING_GENERAL; start: INTEGER_32; fuzz: INTEGER_32): INTEGER_32 -- Position of first occurrence of other at or after `start` -- with 0..fuzz mismatches between the string and other. -- 0 if there are no fuzzy matches -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL other_exists: other /= Void other_not_empty: not other.is_empty start_large_enough: start >= 1 start_small_enough: start <= count acceptable_fuzzy: fuzz <= other.count generating_type: TYPE [detachable DATABASE_STORE [G]] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty generic_count (obj: ANY): INTEGER_32 -- Number of generic parameter in obj. -- (from INTERNAL) require -- from INTERNAL obj_not_void: obj /= Void ensure -- from INTERNAL instance_free: class generic_count_of_type (type_id: INTEGER_32): INTEGER_32 -- Number of generic parameter in type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class generic_dynamic_type (obj: ANY; i: INTEGER_32): INTEGER_32 -- Dynamic type of generic parameter of object at -- position i. -- (from INTERNAL) require -- from INTERNAL obj_not_void: obj /= Void obj_generic: generic_count (obj) > 0 i_valid: i > 0 and i <= generic_count (obj) ensure -- from INTERNAL instance_free: class dynamic_type_nonnegative: Result >= 0 generic_dynamic_type_of_type (type_id: INTEGER_32; i: INTEGER_32): INTEGER_32 -- Dynamic type of generic parameter of type_id at position i. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 type_id_generic: generic_count_of_type (type_id) > 0 i_valid: i > 0 and i <= generic_count_of_type (type_id) ensure -- from REFLECTOR instance_free: class dynamic_type_nonnegative: Result >= 0 hash_code: INTEGER_32 -- Hash code value -- (from READABLE_STRING_GENERAL) ensure -- from HASHABLE good_hash_value: Result >= 0 index_of (c: CHARACTER_32; start_index: INTEGER_32): INTEGER_32 -- Position of first occurrence of c at or after start_index; -- 0 if none. -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL start_large_enough: start_index >= 1 start_small_enough: start_index <= count + 1 ensure -- from READABLE_STRING_GENERAL valid_result: Result = 0 or (start_index <= Result and Result <= count) zero_if_absent: (Result = 0) = not substring (start_index, count).has (c) found_if_present: substring (start_index, count).has (c) implies item (Result) = c none_before: substring (start_index, count).has (c) implies not substring (start_index, Result - 1).has (c) index_of_code (c: like code; start_index: INTEGER_32): INTEGER_32 -- Position of first occurrence of c at or after start_index; -- 0 if none. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL start_large_enough: start_index >= 1 start_small_enough: start_index <= count + 1 ensure -- from READABLE_STRING_GENERAL valid_result: Result = 0 or (start_index <= Result and Result <= count) zero_if_absent: (Result = 0) = not substring (start_index, count).has_code (c) found_if_present: substring (start_index, count).has_code (c) implies code (Result) = c none_before: substring (start_index, count).has_code (c) implies not substring (start_index, Result - 1).has_code (c) integer_16_field (i: INTEGER_32; object: ANY): INTEGER_16 -- Integer value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_16_field: field_type (i, object) = Integer_16_type ensure -- from INTERNAL instance_free: class Integer_16_type: INTEGER_32 = 10 -- Abstract type ID for predefined type {INTEGER_16}. -- (from REFLECTOR_CONSTANTS) integer_32_field (i: INTEGER_32; object: ANY): INTEGER_32 -- Integer value of i-th field of object -- Was declared in {INTERNAL} as synonym of `integer_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_32_field: field_type (i, object) = Integer_32_type ensure -- from INTERNAL instance_free: class Integer_32_type: INTEGER_32 = 4 -- Abstract type ID for predefined type {INTEGER_32}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `integer_type`. -- (from REFLECTOR_CONSTANTS) integer_64_field (i: INTEGER_32; object: ANY): INTEGER_64 -- Integer value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_64_field: field_type (i, object) = Integer_64_type ensure -- from INTERNAL instance_free: class Integer_64_type: INTEGER_32 = 11 -- Abstract type ID for predefined type {INTEGER_64}. -- (from REFLECTOR_CONSTANTS) integer_8_field (i: INTEGER_32; object: ANY): INTEGER_8 -- Integer value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_8_field: field_type (i, object) = Integer_8_type ensure -- from INTERNAL instance_free: class Integer_8_type: INTEGER_32 = 9 -- Abstract type ID for predefined type {INTEGER_8}. -- (from REFLECTOR_CONSTANTS) integer_field (i: INTEGER_32; object: ANY): INTEGER_32 -- Integer value of i-th field of object -- Was declared in {INTERNAL} as synonym of `integer_32_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_32_field: field_type (i, object) = Integer_32_type ensure -- from INTERNAL instance_free: class Integer_type: INTEGER_32 = 4 -- Abstract type ID for predefined type {INTEGER_32}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `integer_32_type`. -- (from REFLECTOR_CONSTANTS) item alias "[]" (i: INTEGER_32): CHARACTER_32 assign string_put -- Character at position i -- Was declared in {STRING_32} as synonym of `at`. -- (from STRING_32) require -- from READABLE_STRING_GENERAL valid_index: valid_index (i) require -- from READABLE_INDEXABLE valid_index: valid_index (i) require -- from TABLE valid_key: valid_index (i) require -- from TO_SPECIAL valid_index: valid_index (i) last_index_of (c: CHARACTER_32; start_index_from_end: INTEGER_32): INTEGER_32 -- Position of last occurrence of c. -- 0 if none. -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL start_index_small_enough: start_index_from_end <= count start_index_large_enough: start_index_from_end >= 1 ensure -- from READABLE_STRING_GENERAL valid_result: 0 <= Result and Result <= start_index_from_end zero_if_absent: (Result = 0) = not substring (1, start_index_from_end).has (c) found_if_present: substring (1, start_index_from_end).has (c) implies item (Result) = c none_after: substring (1, start_index_from_end).has (c) implies not substring (Result + 1, start_index_from_end).has (c) last_index_of_code (c: like code; start_index_from_end: INTEGER_32): INTEGER_32 -- Position of last occurrence of c. -- 0 if none. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL start_index_small_enough: start_index_from_end <= count start_index_large_enough: start_index_from_end >= 1 ensure -- from READABLE_STRING_GENERAL valid_result: 0 <= Result and Result <= start_index_from_end zero_if_absent: (Result = 0) = not substring (1, start_index_from_end).has_code (c) found_if_present: substring (1, start_index_from_end).has_code (c) implies code (Result) = c none_after: substring (1, start_index_from_end).has_code (c) implies not substring (Result + 1, start_index_from_end).has_code (c) Manager: DATABASE_SESSION_MANAGER -- The session manager -- (from DATABASE_SESSION_MANAGER_ACCESS) Max_predefined_type: INTEGER_32 = 16 -- (from REFLECTOR_CONSTANTS) Min_predefined_type: INTEGER_32 = -2 -- (from REFLECTOR_CONSTANTS) natural_16_field (i: INTEGER_32; object: ANY): NATURAL_16 -- NATURAL_16 value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_16_field: field_type (i, object) = Natural_16_type ensure -- from INTERNAL instance_free: class Natural_16_type: INTEGER_32 = 14 -- Abstract type ID for predefined type {NATURAL_16}. -- (from REFLECTOR_CONSTANTS) natural_32_field (i: INTEGER_32; object: ANY): NATURAL_32 -- NATURAL_32 value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_field: field_type (i, object) = Natural_32_type ensure -- from INTERNAL instance_free: class Natural_32_type: INTEGER_32 = 15 -- Abstract type ID for predefined type {NATURAL_32}. -- (from REFLECTOR_CONSTANTS) natural_64_field (i: INTEGER_32; object: ANY): NATURAL_64 -- NATURAL_64 value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_64_field: field_type (i, object) = Natural_64_type ensure -- from INTERNAL instance_free: class Natural_64_type: INTEGER_32 = 16 -- Abstract type ID for predefined type {NATURAL_64}. -- (from REFLECTOR_CONSTANTS) natural_8_field (i: INTEGER_32; object: ANY): NATURAL_8 -- NATURAL_8 value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_8_field: field_type (i, object) = Natural_8_type ensure -- from INTERNAL instance_free: class Natural_8_type: INTEGER_32 = 13 -- Abstract type ID for predefined type {NATURAL_8}. -- (from REFLECTOR_CONSTANTS) new_cursor: STRING_32_ITERATION_CURSOR -- Fresh cursor associated with current structure -- (from READABLE_STRING_32) require -- from ITERABLE True ensure -- from ITERABLE result_attached: Result /= Void None_type: INTEGER_32 = -2 -- Type ID representation for NONE. -- (from REFLECTOR_CONSTANTS) pointer_field (i: INTEGER_32; object: ANY): POINTER -- Pointer value of i-th field of object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) pointer_field: field_type (i, object) = Pointer_type ensure -- from INTERNAL instance_free: class Pointer_type: INTEGER_32 = 0 -- Abstract type ID for predefined type {POINTER}. -- (from REFLECTOR_CONSTANTS) real_32_field (i: INTEGER_32; object: ANY): REAL_32 -- Real value of i-th field of object -- Was declared in {INTERNAL} as synonym of `real_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_32_field: field_type (i, object) = Real_32_type ensure -- from INTERNAL instance_free: class Real_32_type: INTEGER_32 = 5 -- Abstract type ID for predefined type {REAL_32}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `real_type`. -- (from REFLECTOR_CONSTANTS) real_64_field (i: INTEGER_32; object: ANY): REAL_64 -- Double precision value of i-th field of object -- Was declared in {INTERNAL} as synonym of `double_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_64_field: field_type (i, object) = Real_64_type ensure -- from INTERNAL instance_free: class Real_64_type: INTEGER_32 = 6 -- Abstract type ID for predefined type {REAL_64}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `double_type`. -- (from REFLECTOR_CONSTANTS) real_field (i: INTEGER_32; object: ANY): REAL_32 -- Real value of i-th field of object -- Was declared in {INTERNAL} as synonym of `real_32_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_32_field: field_type (i, object) = Real_32_type ensure -- from INTERNAL instance_free: class Real_type: INTEGER_32 = 5 -- Abstract type ID for predefined type {REAL_32}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `real_32_type`. -- (from REFLECTOR_CONSTANTS) reference_field (i: INTEGER_32; object: ANY): detachable ANY -- Reference value of the i-th field of object. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) not_special: not is_special (object) valid_type: field_type (i, object) = Reference_type ensure -- from INTERNAL instance_free: class Reference_type: INTEGER_32 = 1 -- Abstract type ID for a reference type. -- (from REFLECTOR_CONSTANTS) shared_with (other: READABLE_STRING_32): BOOLEAN -- Does string share the text of other? -- (from READABLE_STRING_32) storable_version_of_type (a_type_id: INTEGER_32): detachable IMMUTABLE_STRING_8 -- Storable version if any specified. -- (from REFLECTOR) require -- from REFLECTOR a_type_id_nonnegative: a_type_id >= 0 ensure -- from REFLECTOR instance_free: class string: STRING_32 -- New STRING_32 having same character sequence as Current. -- (from READABLE_STRING_32) ensure -- from READABLE_STRING_32 string_not_void: Result /= Void string_type: Result.same_type (create {STRING_32}.make_empty end) first_item: count > 0 implies Result.item (1) = item (1) recurse: count > 1 implies Result.substring (2, count) ~ substring (2, count).string string_representation: STRING_32 -- Similar to `string` but only create a new object if Current is not of dynamic type {STRING_32}. -- (from READABLE_STRING_32) ensure -- from READABLE_STRING_32 result_not_void: Result /= Void correct_type: Result.same_type (create {STRING_32}.make_empty end) first_item: count > 0 implies Result.item (1) = item (1) recurse: count > 1 implies Result.substring (2, count) ~ substring (2, count).string substring_index (other: READABLE_STRING_GENERAL; start_index: INTEGER_32): INTEGER_32 -- Index of first occurrence of other at or after start_index; -- 0 if none -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL other_not_void: other /= Void valid_start_index: start_index >= 1 and start_index <= count + 1 ensure -- from READABLE_STRING_GENERAL valid_result: Result = 0 or else (start_index <= Result and Result <= count - other.count + 1) zero_if_absent: (Result = 0) = not substring (start_index, count).has_substring (other) at_this_index: Result >= start_index implies other.same_string (substring (Result, Result + other.count - 1)) none_before: Result > start_index implies not substring (start_index, Result + other.count - 2).has_substring (other) substring_index_in_bounds (other: READABLE_STRING_GENERAL; start_pos, end_pos: INTEGER_32): INTEGER_32 -- Position of first occurrence of other at or after start_pos -- and to or before end_pos; -- 0 if none. -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL other_nonvoid: other /= Void other_notempty: not other.is_empty start_pos_large_enough: start_pos >= 1 start_pos_small_enough: start_pos <= count end_pos_large_enough: end_pos >= start_pos end_pos_small_enough: end_pos <= count ensure -- from READABLE_STRING_GENERAL correct_place: Result > 0 implies other.same_string (substring (Result, Result + other.count - 1)) True_constant: STRING_8 = "true" -- Constant string "true" -- (from READABLE_STRING_GENERAL) type_name_32 (object: ANY): READABLE_STRING_32 -- Name of object's generating type -- (type of which object is a direct instance). -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class type_name_8_of_type (type_id: INTEGER_32): STRING_8 -- Name of type_id's generating type (type of which type_id -- is a direct instance). -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class type_name_of_type (type_id: INTEGER_32): STRING_8 -- Name of type_id's generating type (type of which type_id -- is a direct instance). -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class Wide_character_type: INTEGER_32 = 12 -- Abstract type ID for predefined type {CHARACTER_32}. -- Was declared in {REFLECTOR_CONSTANTS} as synonym of `character_32_type`. -- (from REFLECTOR_CONSTANTS) feature -- Measurement additional_space: INTEGER_32 -- Proposed number of additional items -- (from RESIZABLE) ensure -- from RESIZABLE at_least_one: Result >= 1 capacity: INTEGER_32 -- Number of characters allocated in Current -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL True require -- from BOUNDED True ensure -- from READABLE_STRING_GENERAL capacity_non_negative: Result >= 0 ensure -- from BOUNDED capacity_non_negative: Result >= 0 count: INTEGER_32 -- Actual number of characters making up the string. -- (from READABLE_STRING_32) deep_physical_size (object: ANY): INTEGER_32 -- Space occupied by object and its children in bytes -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class deep_physical_size_64 (object: ANY): NATURAL_64 -- Space occupied by object and its children in bytes -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class field_count (object: ANY): INTEGER_32 -- Number of logical fields in object -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class field_count_of_type (type_id: INTEGER_32): INTEGER_32 -- Number of logical fields in dynamic type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class Growth_percentage: INTEGER_32 = 50 -- Percentage by which structure will grow automatically -- (from RESIZABLE) Lower: INTEGER_32 = 1 -- Minimum index. -- (from READABLE_STRING_32) Minimal_increase: INTEGER_32 = 5 -- Minimal number of additional items -- (from RESIZABLE) occurrences (c: CHARACTER_32): INTEGER_32 -- Number of times c appears in the string -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL True require -- from BAG True ensure then -- from READABLE_STRING_GENERAL zero_if_empty: count = 0 implies Result = 0 recurse_if_not_found_at_first_position: (count > 0 and then item (1) /= c) implies Result = substring (2, count).occurrences (c) recurse_if_found_at_first_position: (count > 0 and then item (1) = c) implies Result = 1 + substring (2, count).occurrences (c) ensure -- from BAG non_negative_occurrences: Result >= 0 ensure then -- from READABLE_STRING_32 zero_if_empty: count = 0 implies Result = 0 recurse_if_not_found_at_first_position: (count > 0 and then item (1) /= c) implies Result = substring (2, count).occurrences (c) recurse_if_found_at_first_position: (count > 0 and then item (1) = c) implies Result = 1 + substring (2, count).occurrences (c) persistent_field_count (object: ANY): INTEGER_32 -- Number of logical fields in object that are not transient. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class count_positive: Result >= 0 persistent_field_count_of_type (a_type_id: INTEGER_32): INTEGER_32 -- Number of logical fields in dynamic type type_id that are not transient. -- (from REFLECTOR) require -- from REFLECTOR a_type_non_negative: a_type_id >= 0 ensure -- from REFLECTOR instance_free: class physical_size (object: ANY): INTEGER_32 -- Space occupied by object in bytes -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class physical_size_64 (object: separate ANY): NATURAL_64 -- Space occupied by object in bytes -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) ends_with_general (s: READABLE_STRING_GENERAL): BOOLEAN -- Does string finish with s? -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL argument_not_void: s /= Void ensure -- from READABLE_STRING_GENERAL definition: Result = s.same_string (substring (count - s.count + 1, count)) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) has_substring (other: READABLE_STRING_GENERAL): BOOLEAN -- Does Current contain other? -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL other_not_void: other /= Void ensure -- from READABLE_STRING_GENERAL false_if_too_small: count < other.count implies not Result true_if_initial: (count >= other.count and then other.same_string (substring (1, other.count))) implies Result recurse: (count >= other.count and then not other.same_string (substring (1, other.count))) implies (Result = substring (2, count).has_substring (other)) is_case_insensitive_equal_general (other: READABLE_STRING_GENERAL): BOOLEAN -- Is string made of same character sequence as other regardless of casing -- (possibly with a different capacity)? -- (from READABLE_STRING_GENERAL) ensure -- from READABLE_STRING_GENERAL symmetric: Result implies other.is_case_insensitive_equal (Current) consistent: attached {DATABASE_STORE [G]} other as l_other implies (standard_is_equal (l_other) implies Result) valid_result: as_lower ~ other.as_lower implies Result is_case_insensitive_equal (other: READABLE_STRING_32): BOOLEAN -- Is string made of same character sequence as other regardless of casing -- (possibly with a different capacity)? -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 other_not_void: other /= Void ensure -- from READABLE_STRING_32 symmetric: Result implies other.is_case_insensitive_equal (Current) consistent: attached {DATABASE_STORE [G]} other as l_other implies (standard_is_equal (l_other) implies Result) valid_result: as_lower.same_string (other.as_lower) implies Result frozen is_deep_equal alias "≡≡≡" (other: DATABASE_STORE [G]): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: DATABASE_STORE [G]): BOOLEAN -- Is string made of same character sequence as other -- (possibly with a different capacity)? -- (from READABLE_STRING_32) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result ensure then -- from COMPARABLE trichotomy: Result = (not (Current < other) and not (other < Current)) is_greater alias ">" (other: DATABASE_STORE [G]): BOOLEAN -- Is current object greater than other? -- (from COMPARABLE) require -- from PART_COMPARABLE other_exists: other /= Void ensure then -- from COMPARABLE definition: Result = (other < Current) is_greater_equal alias ">=" alias "≥" (other: DATABASE_STORE [G]): BOOLEAN -- Is current object greater than or equal to other? -- (from COMPARABLE) require -- from PART_COMPARABLE other_exists: other /= Void ensure then -- from COMPARABLE definition: Result = (other <= Current) is_less alias "<" (other: DATABASE_STORE [G]): BOOLEAN -- Is string lexicographically lower than other? -- (from READABLE_STRING_32) require -- from PART_COMPARABLE other_exists: other /= Void ensure then -- from COMPARABLE asymmetric: Result implies not (other < Current) is_less_equal alias "<=" alias "≤" (other: DATABASE_STORE [G]): BOOLEAN -- Is current object less than or equal to other? -- (from COMPARABLE) require -- from PART_COMPARABLE other_exists: other /= Void ensure then -- from COMPARABLE definition: Result = ((Current < other) or (Current ~ other)) max alias "∨" (other: DATABASE_STORE [G]): DATABASE_STORE [G] -- The greater of current object and other -- (from COMPARABLE) require -- from COMPARABLE other_exists: other /= Void ensure -- from COMPARABLE current_if_not_smaller: Current >= other implies Result = Current other_if_smaller: Current < other implies Result = other min alias "∧" (other: DATABASE_STORE [G]): DATABASE_STORE [G] -- The smaller of current object and other -- (from COMPARABLE) require -- from COMPARABLE other_exists: other /= Void ensure -- from COMPARABLE current_if_not_greater: Current <= other implies Result = Current other_if_greater: Current > other implies Result = other same_caseless_characters (other: READABLE_STRING_32; start_pos, end_pos, index_pos: INTEGER_32): BOOLEAN -- Are characters of other within bounds start_pos and end_pos -- caseless identical to characters of current string starting at index index_pos. -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 other_not_void: other /= Void valid_start_pos: other.valid_index (start_pos) valid_end_pos: other.valid_index (end_pos) valid_bounds: (start_pos <= end_pos) or (start_pos = end_pos + 1) valid_index_pos: valid_index (index_pos) ensure -- from READABLE_STRING_32 same_characters: Result = substring (index_pos, index_pos + end_pos - start_pos).is_case_insensitive_equal (other.substring (start_pos, end_pos)) same_caseless_characters_general (other: READABLE_STRING_GENERAL; start_pos, end_pos, index_pos: INTEGER_32): BOOLEAN -- Are characters of other within bounds start_pos and end_pos -- caseless identical to characters of current string starting at index index_pos. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL other_not_void: other /= Void valid_start_pos: other.valid_index (start_pos) valid_end_pos: other.valid_index (end_pos) valid_bounds: (start_pos <= end_pos) or (start_pos = end_pos + 1) valid_index_pos: valid_index (index_pos) ensure -- from READABLE_STRING_GENERAL same_characters: Result = substring (index_pos, index_pos + end_pos - start_pos).is_case_insensitive_equal_general (other.substring (start_pos, end_pos)) same_characters_general (other: READABLE_STRING_GENERAL; start_pos, end_pos, index_pos: INTEGER_32): BOOLEAN -- Are characters of other within bounds start_pos and end_pos -- identical to characters of current string starting at index index_pos. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL other_not_void: other /= Void valid_start_pos: other.valid_index (start_pos) valid_end_pos: other.valid_index (end_pos) valid_bounds: (start_pos <= end_pos) or (start_pos = end_pos + 1) valid_index_pos: valid_index (index_pos) ensure -- from READABLE_STRING_GENERAL same_characters: Result = substring (index_pos, index_pos + end_pos - start_pos).same_string_general (other.substring (start_pos, end_pos)) same_characters (other: READABLE_STRING_32; start_pos, end_pos, index_pos: INTEGER_32): BOOLEAN -- Are characters of other within bounds start_pos and end_pos -- identical to characters of current string starting at index index_pos. -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 other_not_void: other /= Void valid_start_pos: other.valid_index (start_pos) valid_end_pos: other.valid_index (end_pos) valid_bounds: (start_pos <= end_pos) or (start_pos = end_pos + 1) valid_index_pos: valid_index (index_pos) ensure -- from READABLE_STRING_32 same_characters: Result = substring (index_pos, index_pos + end_pos - start_pos).same_string (other.substring (start_pos, end_pos)) same_string (other: READABLE_STRING_32): BOOLEAN -- Do Current and other have same character sequence? -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 other_not_void: other /= Void ensure -- from READABLE_STRING_32 definition: Result = (string ~ other.string) same_string_general (other: READABLE_STRING_GENERAL): BOOLEAN -- Does other represent the same string as Current? -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL other_not_void: other /= Void frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "≜" (other: DATABASE_STORE [G]): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) starts_with_general (s: READABLE_STRING_GENERAL): BOOLEAN -- Does string begin with s? -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL argument_not_void: s /= Void ensure -- from READABLE_STRING_GENERAL definition: Result = s.same_string (substring (1, s.count)) three_way_comparison alias "⋚" (other: DATABASE_STORE [G]): INTEGER_32 -- If current object equal to other, 0; -- if smaller, -1; if greater, 1 -- (from COMPARABLE) require -- from COMPARABLE other_exists: other /= Void ensure -- from COMPARABLE equal_zero: (Result = 0) = (Current ~ other) smaller_negative: (Result = -1) = (Current < other) greater_positive: (Result = 1) = (Current > other) feature -- Status report Changeable_comparison_criterion: BOOLEAN = False -- May `object_comparison` be changed? -- (Answer: yes by default.) -- (from STRING_32) conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void ends_with (s: READABLE_STRING_32): BOOLEAN -- Does string finish with s? -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 argument_not_void: s /= Void ensure -- from READABLE_STRING_32 definition: Result = s.same_string (substring (count - s.count + 1, count)) error_code: INTEGER_32 -- Error code of last transaction -- (from DB_STATUS_USE) error_message_32: STRING_32 -- SQL error message prompted by database server -- (from DB_STATUS_USE) exhausted: BOOLEAN -- Is there any more resulting row? -- (from DB_STATUS_USE) Extendible: BOOLEAN = True -- May new items be added? (Answer: yes.) -- (from STRING_32) full: BOOLEAN -- Is structure full? -- (from BOUNDED) has (c: CHARACTER_32): BOOLEAN -- Does string include c? -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL True require -- from CONTAINER True ensure then -- from READABLE_STRING_GENERAL false_if_empty: count = 0 implies not Result true_if_first: count > 0 and then item (1) = c implies Result recurse: (count > 0 and then item (1) /= c) implies (Result = substring (2, count).has (c)) ensure -- from CONTAINER not_found_in_empty: Result implies not is_empty has_code (c: like code): BOOLEAN -- Does string include c? -- (from READABLE_STRING_GENERAL) ensure then -- from READABLE_STRING_GENERAL false_if_empty: count = 0 implies not Result true_if_first: count > 0 and then code (1) = c implies Result recurse: (count > 0 and then code (1) /= c) implies (Result = substring (2, count).has_code (c)) immediate_execution: BOOLEAN -- Are requests immediately executed? -- (default is no). -- (from DB_EXEC_USE) is_attached_type (a_type_id: INTEGER_32): BOOLEAN -- Is a_type_id an attached type? -- (from REFLECTOR) require -- from REFLECTOR a_type_non_negative: a_type_id >= 0 ensure -- from REFLECTOR instance_free: class string_is_boolean: BOOLEAN -- Does Current represent a BOOLEAN? -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL True ensure -- from READABLE_STRING_GENERAL is_boolean: Result = (True_constant.same_string_general (as_lower) or False_constant.same_string_general (as_lower)) is_connected: BOOLEAN -- Has connection to the database server succeeded? -- (from DB_STATUS_USE) string_is_double: BOOLEAN -- Does Current represent a REAL_64? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_real_64`. -- (from READABLE_STRING_GENERAL) is_empty: BOOLEAN -- Is structure empty? -- (from FINITE) require -- from CONTAINER True require -- from READABLE_STRING_GENERAL True is_field_expanded (i: INTEGER_32; object: ANY): BOOLEAN -- Is i-th field of object a user-defined expanded attribute? -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) ensure -- from INTERNAL instance_free: class is_field_expanded_of_type (i: INTEGER_32; a_type_id: INTEGER_32): BOOLEAN -- Is i-th field of type a_type_id a user-defined expanded attribute? -- (from REFLECTOR) require -- from REFLECTOR a_type_non_negative: a_type_id >= 0 index_large_enough: i >= 1 index_small_enough: i <= field_count_of_type (a_type_id) ensure -- from REFLECTOR instance_free: class is_field_transient (i: INTEGER_32; object: ANY): BOOLEAN -- Is i-th field of object a transient attribute? -- I.e. an attribute that does not need to be stored? -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) ensure -- from INTERNAL instance_free: class is_field_transient_of_type (i: INTEGER_32; a_type_id: INTEGER_32): BOOLEAN -- Is i-th field of object a transient attribute? -- I.e. an attribute that does not need to be stored? -- (from REFLECTOR) require -- from REFLECTOR a_type_non_negative: a_type_id >= 0 index_large_enough: i >= 1 index_small_enough: i <= field_count_of_type (a_type_id) ensure -- from REFLECTOR instance_free: class is_hashable: BOOLEAN -- May current object be hashed? -- (True by default.) -- (from HASHABLE) is_immutable: BOOLEAN -- Can the character sequence of Current be not changed? -- (from READABLE_STRING_GENERAL) is_inserted (v: CHARACTER_32): BOOLEAN -- Has v been inserted by the most recent insertion? -- (By default, the value returned is equivalent to calling -- has (v). However, descendants might be able to provide more -- efficient implementations.) -- (from COLLECTION) string_is_integer: BOOLEAN -- Does Current represent an INTEGER_32? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_integer_32`. -- (from READABLE_STRING_GENERAL) is_integer_16: BOOLEAN -- Does Current represent an INTEGER_16? -- (from READABLE_STRING_GENERAL) is_integer_32: BOOLEAN -- Does Current represent an INTEGER_32? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_integer`. -- (from READABLE_STRING_GENERAL) is_integer_64: BOOLEAN -- Does Current represent an INTEGER_64? -- (from READABLE_STRING_GENERAL) is_integer_8: BOOLEAN -- Does Current represent an INTEGER_8? -- (from READABLE_STRING_GENERAL) is_mapped (key: READABLE_STRING_GENERAL): BOOLEAN -- Is key mapped to an Eiffel entity? -- (from STRING_HDL) require -- from STRING_HDL keys_exists: key /= Void is_marked (obj: separate ANY): BOOLEAN -- Is obj marked? -- (from OBJECT_GRAPH_MARKER) require -- from OBJECT_GRAPH_MARKER object_exists: obj /= Void ensure -- from OBJECT_GRAPH_MARKER instance_free: class is_natural: BOOLEAN -- Does Current represent a NATURAL_32? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_natural_32`. -- (from READABLE_STRING_GENERAL) is_natural_16: BOOLEAN -- Does Current represent a NATURAL_16? -- (from READABLE_STRING_GENERAL) is_natural_32: BOOLEAN -- Does Current represent a NATURAL_32? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_natural`. -- (from READABLE_STRING_GENERAL) is_natural_64: BOOLEAN -- Does Current represent a NATURAL_64? -- (from READABLE_STRING_GENERAL) is_natural_8: BOOLEAN -- Does Current represent a NATURAL_8? -- (from READABLE_STRING_GENERAL) is_number_sequence: BOOLEAN -- Does Current represent a number sequence? -- (from READABLE_STRING_GENERAL) is_ok: BOOLEAN -- Is last SQL statement ok ? -- (from DB_STATUS_USE) is_pre_ecma_mapping_disabled: BOOLEAN -- Are we mapping old names to new ECMA names? -- False means mapping STRING to STRING_8, INTEGER to INTEGER_32,... -- Redefine in descendants of REFLECTOR to modify the behavior of inspection queries of REFLECTOR. -- (from REFLECTOR_HELPER) ensure -- from REFLECTOR_HELPER instance_free: class string_is_real: BOOLEAN -- Does Current represent a REAL_32? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_real_32`. -- (from READABLE_STRING_GENERAL) is_real_32: BOOLEAN -- Does Current represent a REAL_32? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_real`. -- (from READABLE_STRING_GENERAL) is_real_64: BOOLEAN -- Does Current represent a REAL_64? -- Was declared in {READABLE_STRING_GENERAL} as synonym of `is_double`. -- (from READABLE_STRING_GENERAL) is_real_sequence: BOOLEAN -- Does Current represent a real sequence? -- (from READABLE_STRING_GENERAL) is_special (object: ANY): BOOLEAN -- Is object a special object? -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class is_special_any_type (type_id: INTEGER_32): BOOLEAN -- Is type represented by type_id represent -- a SPECIAL [XX] where XX is a reference type. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class is_special_type (type_id: INTEGER_32): BOOLEAN -- Is type represented by type_id represent -- a SPECIAL [XX] where XX is a reference type -- or a basic expanded type (note that user-defined -- expanded types are excluded). -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class Is_string_32: BOOLEAN = True -- Is Current a sequence of CHARACTER_32? -- (from READABLE_STRING_32) Is_string_8: BOOLEAN = False -- Is Current a sequence of CHARACTER_8? -- (from READABLE_STRING_32) is_substring_whitespace (start_index, end_index: INTEGER_32): BOOLEAN -- Is substring between start_index and end_index containing only whitespace characters? -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL start_index_big_enough: 1 <= start_index end_index_small_enough: end_index <= count consistent_indexes: start_index - 1 <= end_index is_tracing: BOOLEAN -- Is trace option for SQL queries on? -- (from DB_EXEC_USE) is_tuple (object: ANY): BOOLEAN -- Is object a TUPLE object? -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void ensure -- from INTERNAL instance_free: class is_tuple_type (type_id: INTEGER_32): BOOLEAN -- Is type represented by type_id represent a TUPLE? -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class is_valid_as_string_8: BOOLEAN -- Is Current convertible to a sequence of CHARACTER_8 without information loss? -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL True is_valid_type_string (s: READABLE_STRING_GENERAL): BOOLEAN -- Is s a valid string representation for a TYPE. -- (from REFLECTOR_HELPER) ensure -- from REFLECTOR_HELPER instance_free: class is_whitespace: BOOLEAN -- Is structure containing only whitespace characters? -- (from READABLE_STRING_GENERAL) mapped_type (a_type: READABLE_STRING_GENERAL): READABLE_STRING_GENERAL -- If `is_pre_ecma_mapping_disabled` a_type, otherwise -- the mapped typed. -- (from REFLECTOR_HELPER) require -- from REFLECTOR_HELPER a_type_not_void: a_type /= Void ensure -- from REFLECTOR_HELPER instance_free: class mapped_type_not_void: Result /= Void mapped_value (key: READABLE_STRING_GENERAL): detachable ANY -- Value mapped with key -- (from STRING_HDL) require -- from STRING_HDL key_exists: key /= Void ensure -- from STRING_HDL result_exists: Result /= Void object_comparison: BOOLEAN -- Must search operations use `equal` rather than = -- for comparing references? (Default: no, use =.) -- (from CONTAINER) owns_repository: BOOLEAN -- Is the current store operation associated -- with a repository? ensure existence_condition: Result = (repository /= Void) prunable: BOOLEAN -- May items be removed? (Answer: yes.) -- (from DYNAMIC_TABLE) require -- from COLLECTION True repository: detachable DATABASE_REPOSITORY [G] -- Associated repository resizable: BOOLEAN -- May `capacity` be changed? (Answer: yes.) -- (from RESIZABLE) same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) starts_with (s: READABLE_STRING_32): BOOLEAN -- Does string begin with s? -- (from READABLE_STRING_32) require -- from READABLE_STRING_32 argument_not_void: s /= Void ensure -- from READABLE_STRING_32 definition: Result = s.same_string (substring (1, s.count)) trace_message (m: READABLE_STRING_GENERAL) -- Trace message m to destination file. -- (from DB_EXEC_USE) require -- from DB_EXEC_USE is_tracing trace_output: FILE -- Trace destination file -- (from DB_EXEC_USE) utf_8_error_message: STRING_8 -- SQL error message prompted by database server, UTF-8 encoded. -- (from DB_STATUS_USE) utf_8_warning_message: STRING_8 -- SQL warning message prompted by database server, UTF-8 encoded. -- (from DB_STATUS_USE) valid_code (v: NATURAL_32): BOOLEAN -- Is v a valid code for a CHARACTER_32? -- (from READABLE_STRING_32) require -- from READABLE_STRING_GENERAL True valid_index (i: INTEGER_32): BOOLEAN -- Is i within the bounds of the string? -- (from READABLE_STRING_GENERAL) require -- from READABLE_INDEXABLE True require -- from TABLE True require -- from TO_SPECIAL True ensure -- from READABLE_INDEXABLE only_if_in_index_set: Result implies (Lower <= i and i <= count) ensure -- from READABLE_STRING_GENERAL definition: Result = (1 <= i and i <= count) warning_message_32: STRING_32 -- SQL warning message prompted by database server -- (from DB_STATUS_USE) feature -- Status setting clear_all -- Remove all mapped keys. -- (from STRING_HDL) require -- from STRING_32 True ensure -- from STRING_32 is_empty: count = 0 same_capacity: capacity = old capacity compare_objects -- Ensure that future search operations will use `equal` -- rather than = for comparing references. -- (from CONTAINER) require -- from CONTAINER changeable_comparison_criterion: Changeable_comparison_criterion ensure -- from CONTAINER object_comparison compare_references -- Ensure that future search operations will use = -- rather than `equal` for comparing references. -- (from CONTAINER) require -- from CONTAINER changeable_comparison_criterion: Changeable_comparison_criterion ensure -- from CONTAINER reference_comparison: not object_comparison reset -- Reset `is_ok`, error_code_stored,error_message_stored and `warning_message` after error occurred. -- (from DB_STATUS_USE) ensure -- from DB_STATUS_USE is_ok: is_ok no_error: error_code = 0 and error_message_32.is_empty and warning_message_32.is_empty set_immediate -- Set queries to be executed with a -- EXECUTE IMMEDIATE SQL statement. -- (from DB_EXEC_USE) ensure -- from DB_EXEC_USE execution_status: immediate_execution set_map_name (n: detachable ANY; key: READABLE_STRING_GENERAL) -- Store item n with key key. -- n can be Void. -- (from STRING_HDL) require -- from STRING_HDL key_exists: key /= Void not_key_in_table: not is_mapped (key) ensure -- from STRING_HDL count_valid: ht.count = old (ht.count) + 1 count_valid: ht_order.count = old (ht_order.count) + 1 mapped: is_mapped (key) set_repository (one_repository: DATABASE_REPOSITORY [G]) -- Associate one_repository handle to current -- db_store handle. require parameter_not_void: one_repository /= Void ensure then repository_not_void: repository /= Void set_trace -- Trace queries sent to database server. -- (from DB_EXEC_USE) ensure -- from DB_EXEC_USE trace_status: is_tracing unset_immediate -- Set queries to be executed with a -- PREPARE followed by a EXECUTE SQL statement. -- (from DB_EXEC_USE) ensure -- from DB_EXEC_USE execution_status: not immediate_execution unset_map_name (key: READABLE_STRING_GENERAL) -- Remove item associated with key key. -- (from STRING_HDL) require -- from STRING_HDL key_exists: key /= Void item_exists: is_mapped (key) ensure -- from STRING_HDL count_valid: ht.count = old (ht.count) - 1 count_valid: ht_order.count = old (ht_order.count) - 1 unset_trace -- Do not trace queries sent to database server. -- (from DB_EXEC_USE) ensure -- from DB_EXEC_USE trace_status: not is_tracing feature -- Element change adjust -- Remove leading and/or trailing whitespace. -- (from STRING_GENERAL) ensure -- from STRING_GENERAL valid_count: count <= old count new_count_left: not is_empty implies not item (1).is_space new_count_right: not is_empty implies not item (count).is_space kept: Elks_checking implies (old twin).has_substring (Current) only_spaces_removed_before: Elks_checking implies (old twin).is_substring_whitespace (1, (old twin).substring_index (Current, 1) - 1) only_spaces_removed_after: Elks_checking implies (old twin).is_substring_whitespace ((old twin).substring_index (Current, 1) + count, old count) append (s: READABLE_STRING_32) -- Append characters of s at end. -- (from STRING_32) require -- from STRING_32 argument_not_void: s /= Void ensure -- from STRING_32 new_count: count = old count + old s.count appended: Elks_checking implies same_string (old (Current + s)) append_boolean (b: BOOLEAN) -- Append the string representation of b at end. -- (from STRING_32) append_character (c: CHARACTER_32) -- Append c at end. -- Was declared in {STRING_32} as synonym of `extend`. -- (from STRING_32) ensure then -- from STRING_32 item_inserted: item (count) = c new_count: count = old count + 1 stable_before: Elks_checking implies substring (1, count - 1) ~ (old twin) append_code (c: like code) -- Append c at end. -- (from STRING_GENERAL) require -- from STRING_GENERAL valid_code: valid_code (c) ensure then -- from STRING_GENERAL item_inserted: code (count) = c new_count: count = old count + 1 stable_before: Elks_checking implies substring (1, count - 1) ~ (old twin) append_double (d: REAL_64) -- Append the string representation of d at end. -- (from STRING_32) append_integer (i: INTEGER_32) -- Append the string representation of i at end. -- (from STRING_32) append_integer_16 (i: INTEGER_16) -- Append the string representation of i at end. -- (from STRING_32) append_integer_64 (i: INTEGER_64) -- Append the string representation of i at end. -- (from STRING_32) append_integer_8 (i: INTEGER_8) -- Append the string representation of i at end. -- (from STRING_32) append_natural_16 (i: NATURAL_16) -- Append the string representation of i at end. -- (from STRING_32) append_natural_32 (i: NATURAL_32) -- Append the string representation of i at end. -- (from STRING_32) append_natural_64 (i: NATURAL_64) -- Append the string representation of i at end. -- (from STRING_32) append_natural_8 (i: NATURAL_8) -- Append the string representation of i at end. -- (from STRING_32) append_real (r: REAL_32) -- Append the string representation of r at end. -- (from STRING_32) append_string (s: detachable READABLE_STRING_32) -- Append a copy of s, if not void, at end. -- (from STRING_32) ensure -- from STRING_32 appended: s /= Void implies (Elks_checking implies Current ~ (old twin + old s.twin)) append_string_general (s: READABLE_STRING_GENERAL) -- Append characters of s at end. -- (from STRING_32) require -- from STRING_GENERAL argument_not_void: s /= Void compatible_strings: Is_string_8 implies s.is_valid_as_string_8 ensure -- from STRING_GENERAL new_count: count = old count + old s.count appended: Elks_checking implies same_string_general (old (to_string_32 + s.as_string_32)) append_substring (s: READABLE_STRING_32; start_index, end_index: INTEGER_32) -- Append characters of s.substring (start_index, end_index) at end. -- (from STRING_32) require -- from STRING_32 argument_not_void: s /= Void start_index_valid: start_index >= 1 end_index_valid: end_index <= s.count valid_bounds: start_index <= end_index + 1 ensure -- from STRING_32 new_count: count = old count + (end_index - start_index + 1) appended: Elks_checking implies same_string (old (Current + s.substring (start_index, end_index))) append_substring_general (s: READABLE_STRING_GENERAL; start_index, end_index: INTEGER_32) -- Append characters of s.substring (start_index, end_index) at end. -- (from STRING_GENERAL) require -- from STRING_GENERAL argument_not_void: s /= Void compatible_strings: Is_string_8 implies s.is_valid_as_string_8 start_index_valid: start_index >= 1 end_index_valid: end_index <= s.count valid_bounds: start_index <= end_index + 1 ensure -- from STRING_GENERAL new_count: count = old count + end_index - start_index + 1 appended: Elks_checking implies same_string_general (old (to_string_32 + s.substring (start_index, end_index).as_string_32)) extend (c: CHARACTER_32) -- Append c at end. -- Was declared in {STRING_32} as synonym of `append_character`. -- (from STRING_32) require -- from COLLECTION extendible: Extendible ensure -- from COLLECTION item_inserted: is_inserted (c) ensure then -- from STRING_32 item_inserted: item (count) = c new_count: count = old count + 1 stable_before: Elks_checking implies substring (1, count - 1) ~ (old twin) fill (other: CONTAINER [CHARACTER_32]) -- Fill with as many items of other as possible. -- The representations of other and current structure -- need not be the same. -- (from COLLECTION) require -- from COLLECTION other_not_void: other /= Void extendible: Extendible fill_blank -- Fill with `capacity` blank characters. -- (from STRING_32) ensure -- from STRING_32 filled: full same_size: (count = capacity) and (capacity = old capacity) fill_character (c: CHARACTER_32) -- Fill with `capacity` characters all equal to c. -- (from READABLE_STRING_32) ensure -- from READABLE_STRING_32 filled: count = capacity same_size: capacity = old capacity fill_with (c: CHARACTER_32) -- Replace every character with c. -- (from STRING_32) ensure -- from STRING_32 same_count: (count = old count) and (capacity = old capacity) filled: Elks_checking implies occurrences (c) = count insert_character (c: CHARACTER_32; i: INTEGER_32) -- Insert c at index i, shifting characters between ranks -- i and `count` rightwards. -- (from STRING_32) require -- from STRING_32 valid_insertion_index: 1 <= i and i <= count + 1 ensure -- from STRING_32 one_more_character: count = old count + 1 inserted: item (i) = c stable_before_i: Elks_checking implies substring (1, i - 1) ~ (old substring (1, i - 1)) stable_after_i: Elks_checking implies substring (i + 1, count) ~ (old substring (i, count)) insert_string (s: READABLE_STRING_32; i: INTEGER_32) -- Insert s at index i, shifting characters between ranks -- i and `count` rightwards. -- (from STRING_32) require -- from STRING_32 string_exists: s /= Void valid_insertion_index: 1 <= i and i <= count + 1 ensure -- from STRING_32 inserted: Elks_checking implies (Current ~ (old substring (1, i - 1) + old (s.twin) + old substring (i, count))) keep_head (n: INTEGER_32) -- Remove all characters except for the first n; -- do nothing if n >= `count`. -- (from STRING_32) require -- from STRING_GENERAL non_negative_argument: n >= 0 ensure -- from STRING_GENERAL new_count: count = n.min (old count) kept: Elks_checking implies Current ~ (old substring (1, n.min (count))) keep_tail (n: INTEGER_32) -- Remove all characters except for the last n; -- do nothing if n >= `count`. -- (from STRING_32) require -- from STRING_GENERAL non_negative_argument: n >= 0 ensure -- from STRING_GENERAL new_count: count = n.min (old count) kept: Elks_checking implies Current ~ (old substring (count - n.min (count) + 1, count)) left_adjust -- Remove leading whitespace. -- (from STRING_32) ensure -- from STRING_GENERAL valid_count: count <= old count new_count: not is_empty implies not item (1).is_space kept: Elks_checking implies Current ~ (old twin).substring (old count - count + 1, old count) only_spaces_removed_before: Elks_checking implies (old twin).is_substring_whitespace (1, (old twin).substring_index (Current, 1) - 1) precede (c: CHARACTER_32) -- Add c at front. -- Was declared in {STRING_32} as synonym of `prepend_character`. -- (from STRING_32) ensure -- from STRING_32 new_count: count = old count + 1 prepend (s: READABLE_STRING_32) -- Prepend characters of s at front. -- (from STRING_32) require -- from STRING_32 argument_not_void: s /= Void ensure -- from STRING_32 new_count: count = old (count + s.count) inserted: Elks_checking implies same_string (old (s + Current)) prepend_boolean (b: BOOLEAN) -- Prepend the string representation of b at front. -- (from STRING_32) prepend_character (c: CHARACTER_32) -- Add c at front. -- Was declared in {STRING_32} as synonym of `precede`. -- (from STRING_32) ensure -- from STRING_32 new_count: count = old count + 1 prepend_double (d: REAL_64) -- Prepend the string representation of d at front. -- (from STRING_32) prepend_integer (i: INTEGER_32) -- Prepend the string representation of i at front. -- (from STRING_32) prepend_real (r: REAL_32) -- Prepend the string representation of r at front. -- (from STRING_32) prepend_string (s: detachable READABLE_STRING_32) -- Prepend characters of s, if not void, at front. -- (from STRING_32) prepend_string_general (s: READABLE_STRING_GENERAL) -- Prepend characters of s at front. -- (from STRING_32) require -- from STRING_GENERAL argument_not_void: s /= Void compatible_strings: Is_string_8 implies s.is_valid_as_string_8 ensure -- from STRING_GENERAL new_count: count = old (count + s.count) inserted: Elks_checking implies same_string_general (old (s.to_string_32 + Current.as_string_32)) prepend_substring (s: READABLE_STRING_32; start_index, end_index: INTEGER_32) -- Prepend characters of s.substring (start_index, end_index) at front. -- (from STRING_32) require -- from STRING_32 argument_not_void: s /= Void start_index_valid: start_index >= 1 end_index_valid: end_index <= s.count valid_bounds: start_index <= end_index + 1 ensure -- from STRING_32 new_count: count = old count + end_index - start_index + 1 inserted: Elks_checking implies same_string (old (s.substring (start_index, end_index) + Current)) prepend_substring_general (s: READABLE_STRING_GENERAL; start_index, end_index: INTEGER_32) -- Prepend characters of s.substring (start_index, end_index) at front. -- (from STRING_GENERAL) require -- from STRING_GENERAL argument_not_void: s /= Void compatible_strings: Is_string_8 implies s.is_valid_as_string_8 start_index_valid: start_index >= 1 end_index_valid: end_index <= s.count valid_bounds: start_index <= end_index + 1 ensure -- from STRING_GENERAL new_count: count = old count + end_index - start_index + 1 inserted: Elks_checking implies same_string_general (old (s.substring (start_index, end_index).to_string_32 + Current.as_string_32)) string_put (c: CHARACTER_32; i: INTEGER_32) -- Replace character at position i by c. -- (from STRING_32) require -- from TABLE valid_key: valid_index (i) require -- from TABLE valid_key: valid_index (i) require -- from TO_SPECIAL valid_index: valid_index (i) ensure -- from TABLE inserted: item (i) = c ensure -- from TO_SPECIAL inserted: item (i) = c ensure then -- from STRING_32 stable_count: count = old count stable_before_i: Elks_checking implies substring (1, i - 1) ~ (old substring (1, i - 1)) stable_after_i: Elks_checking implies substring (i + 1, count) ~ (old substring (i + 1, count)) put_code (v: NATURAL_32; i: INTEGER_32) -- Replace character at position i by character of code v. -- (from STRING_32) require -- from STRING_GENERAL valid_code: valid_code (v) valid_index: valid_index (i) ensure -- from STRING_GENERAL inserted: code (i) = v stable_count: count = old count stable_before_i: Elks_checking implies substring (1, i - 1) ~ (old substring (1, i - 1)) stable_after_i: Elks_checking implies substring (i + 1, count) ~ (old substring (i + 1, count)) replace_blank -- Replace all current characters with blanks. -- (from STRING_32) ensure -- from STRING_32 same_size: (count = old count) and (capacity = old capacity) all_blank: Elks_checking implies occurrences (' '.to_character_32) = count replace_substring (s: READABLE_STRING_32; start_index, end_index: INTEGER_32) -- Replace characters from start_index to end_index with s. -- (from STRING_32) require -- from STRING_32 string_not_void: s /= Void valid_start_index: 1 <= start_index valid_end_index: end_index <= count meaningfull_interval: start_index <= end_index + 1 ensure -- from STRING_32 new_count: count = old count + old s.count - end_index + start_index - 1 replaced: Elks_checking implies (Current ~ (old (substring (1, start_index - 1) + s + substring (end_index + 1, count)))) replace_substring_all (original, new: READABLE_STRING_32) -- Replace every occurrence of original with new. -- (from STRING_32) require -- from STRING_32 original_exists: original /= Void new_exists: new /= Void original_not_empty: not original.is_empty right_adjust -- Remove trailing whitespace. -- (from STRING_32) ensure -- from STRING_GENERAL valid_count: count <= old count new_count: not is_empty implies not item (count).is_space kept: Elks_checking implies Current ~ (old twin).substring (1, count) only_spaces_removed_after: Elks_checking implies (old twin).is_substring_whitespace ((old twin).substring_index (Current, 1) + count, old count) set (t: READABLE_STRING_32; n1, n2: INTEGER_32) -- Set current string to substring of t from indices n1 -- to n2, or to empty string if no such substring. -- (from STRING_32) require -- from STRING_32 argument_not_void: t /= Void ensure -- from STRING_32 is_substring: same_string (t.substring (n1, n2)) set_boolean_field (i: INTEGER_32; object: ANY; value: BOOLEAN) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) boolean_field: field_type (i, object) = Boolean_type ensure -- from INTERNAL instance_free: class set_character_32_field (i: INTEGER_32; object: ANY; value: CHARACTER_32) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) character_32_field: field_type (i, object) = Character_32_type ensure -- from INTERNAL instance_free: class set_character_8_field (i: INTEGER_32; object: ANY; value: CHARACTER_8) -- Was declared in {INTERNAL} as synonym of `set_character_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) character_8_field: field_type (i, object) = Character_8_type ensure -- from INTERNAL instance_free: class set_character_field (i: INTEGER_32; object: ANY; value: CHARACTER_8) -- Was declared in {INTERNAL} as synonym of `set_character_8_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) character_8_field: field_type (i, object) = Character_8_type ensure -- from INTERNAL instance_free: class set_double_field (i: INTEGER_32; object: ANY; value: REAL_64) -- Was declared in {INTERNAL} as synonym of `set_real_64_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_64_field: field_type (i, object) = Real_64_type ensure -- from INTERNAL instance_free: class set_integer_16_field (i: INTEGER_32; object: ANY; value: INTEGER_16) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_16_field: field_type (i, object) = Integer_16_type ensure -- from INTERNAL instance_free: class set_integer_32_field (i: INTEGER_32; object: ANY; value: INTEGER_32) -- Was declared in {INTERNAL} as synonym of `set_integer_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_32_field: field_type (i, object) = Integer_32_type ensure -- from INTERNAL instance_free: class set_integer_64_field (i: INTEGER_32; object: ANY; value: INTEGER_64) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_64_field: field_type (i, object) = Integer_64_type ensure -- from INTERNAL instance_free: class set_integer_8_field (i: INTEGER_32; object: ANY; value: INTEGER_8) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_8_field: field_type (i, object) = Integer_8_type ensure -- from INTERNAL instance_free: class set_integer_field (i: INTEGER_32; object: ANY; value: INTEGER_32) -- Was declared in {INTERNAL} as synonym of `set_integer_32_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) integer_32_field: field_type (i, object) = Integer_32_type ensure -- from INTERNAL instance_free: class set_natural_16_field (i: INTEGER_32; object: ANY; value: NATURAL_16) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_16_field: field_type (i, object) = Natural_16_type ensure -- from INTERNAL instance_free: class set_natural_32_field (i: INTEGER_32; object: ANY; value: NATURAL_32) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_32_field: field_type (i, object) = Natural_32_type ensure -- from INTERNAL instance_free: class set_natural_64_field (i: INTEGER_32; object: ANY; value: NATURAL_64) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_64_field: field_type (i, object) = Natural_64_type ensure -- from INTERNAL instance_free: class set_natural_8_field (i: INTEGER_32; object: ANY; value: NATURAL_8) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) natural_8_field: field_type (i, object) = Natural_8_type ensure -- from INTERNAL instance_free: class set_pointer_field (i: INTEGER_32; object: ANY; value: POINTER) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) pointer_field: field_type (i, object) = Pointer_type ensure -- from INTERNAL instance_free: class set_real_32_field (i: INTEGER_32; object: ANY; value: REAL_32) -- Was declared in {INTERNAL} as synonym of `set_real_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_32_field: field_type (i, object) = Real_32_type ensure -- from INTERNAL instance_free: class set_real_64_field (i: INTEGER_32; object: ANY; value: REAL_64) -- Was declared in {INTERNAL} as synonym of `set_double_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_64_field: field_type (i, object) = Real_64_type ensure -- from INTERNAL instance_free: class set_real_field (i: INTEGER_32; object: ANY; value: REAL_32) -- Was declared in {INTERNAL} as synonym of `set_real_32_field`. -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) real_32_field: field_type (i, object) = Real_32_type ensure -- from INTERNAL instance_free: class set_reference_field (i: INTEGER_32; object: ANY; value: detachable ANY) -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void index_large_enough: i >= 1 index_small_enough: i <= field_count (object) reference_field: field_type (i, object) = Reference_type valid_value: is_attached_type (field_static_type_of_type (i, dynamic_type (object))) implies value /= Void value_conforms_to_field_static_type: value /= Void implies field_conforms_to (dynamic_type (value), field_static_type_of_type (i, dynamic_type (object))) ensure -- from INTERNAL instance_free: class share (other: STRING_32) -- Make current string share the text of other. -- Subsequent changes to the characters of current string -- will also affect other, and conversely. -- (from STRING_32) require -- from STRING_32 argument_not_void: other /= Void ensure -- from STRING_32 shared_count: other.count = count shared_area: other.area = area subcopy (other: READABLE_STRING_32; start_pos, end_pos, index_pos: INTEGER_32) -- Copy characters of other within bounds start_pos and -- end_pos to current string starting at index index_pos. -- (from STRING_32) require -- from STRING_32 other_not_void: other /= Void valid_start_pos: other.valid_index (start_pos) valid_end_pos: other.valid_index (end_pos) valid_bounds: start_pos <= end_pos or start_pos = end_pos + 1 valid_index_pos: valid_index (index_pos) enough_space: count - index_pos >= end_pos - start_pos ensure -- from STRING_32 same_count: count = old count copied: Elks_checking implies (Current ~ (old substring (1, index_pos - 1) + old other.substring (start_pos, end_pos) + old substring (index_pos + (end_pos - start_pos + 1), count))) feature -- Removal prune (c: CHARACTER_32) -- Remove first occurrence of c, if any. -- (from STRING_32) require -- from COLLECTION prunable: prunable require else -- from STRING_32 True prune_all (c: CHARACTER_32) -- Remove all occurrences of c. -- (from STRING_32) require -- from COLLECTION prunable: prunable require else -- from STRING_32 True ensure -- from COLLECTION no_more_occurrences: not has (c) ensure then -- from STRING_32 changed_count: count = (old count) - (old occurrences (c)) prune_all_leading (c: CHARACTER_32) -- Remove all leading occurrences of c. -- (from STRING_32) prune_all_trailing (c: CHARACTER_32) -- Remove all trailing occurrences of c. -- (from STRING_32) remove (i: INTEGER_32) -- Remove i-th character. -- (from STRING_32) require -- from STRING_GENERAL valid_index: valid_index (i) require -- from DYNAMIC_TABLE prunable: prunable valid_key: valid_index (i) ensure -- from STRING_GENERAL new_count: count = old count - 1 removed: Elks_checking implies to_string_32 ~ (old substring (1, i - 1).to_string_32 + old substring (i + 1, count).to_string_32) remove_head (n: INTEGER_32) -- Remove first n characters; -- if n > `count`, remove all. -- (from STRING_32) require -- from STRING_GENERAL n_non_negative: n >= 0 ensure -- from STRING_GENERAL removed: Elks_checking implies Current ~ (old substring (n.min (count) + 1, count)) remove_substring (start_index, end_index: INTEGER_32) -- Remove all characters from start_index -- to end_index inclusive. -- (from STRING_32) require -- from STRING_GENERAL valid_start_index: 1 <= start_index valid_end_index: end_index <= count meaningful_interval: start_index <= end_index + 1 ensure -- from STRING_GENERAL removed: Elks_checking implies Current.as_string_32 ~ (old substring (1, start_index - 1).as_string_32 + old substring (end_index + 1, count).as_string_32) remove_tail (n: INTEGER_32) -- Remove last n characters; -- if n > `count`, remove all. -- (from STRING_32) require -- from STRING_GENERAL n_non_negative: n >= 0 ensure -- from STRING_GENERAL removed: Elks_checking implies Current ~ (old substring (1, count - n.min (count))) wipe_out -- Remove all characters. -- (from STRING_32) require -- from STRING_GENERAL True require -- from COLLECTION prunable: prunable ensure -- from STRING_GENERAL is_empty: count = 0 same_capacity: capacity = old capacity ensure -- from COLLECTION wiped_out: is_empty feature -- Resizing adapt_size -- Adapt the size to accommodate `count` characters. -- (from STRING_32) automatic_grow -- Change the capacity to accommodate at least -- `growth_percentage` more items. -- (from RESIZABLE) require -- from RESIZABLE resizable: resizable ensure -- from RESIZABLE increased_capacity: capacity >= old capacity + old additional_space grow (newsize: INTEGER_32) -- Ensure that the capacity is at least newsize. -- (from STRING_32) require -- from RESIZABLE resizable: resizable ensure -- from RESIZABLE new_capacity: capacity >= newsize resize (newsize: INTEGER_32) -- Rearrange string so that it can accommodate -- at least newsize characters. -- Do not lose any previously entered character. -- (from STRING_32) require -- from STRING_GENERAL new_size_large_enough: newsize >= count ensure -- from STRING_GENERAL same_count: count = old count capacity_large_enough: capacity >= newsize same_content: Elks_checking implies same_string_general (old twin) trim -- Decrease `capacity` to the minimum value. -- Apply to reduce allocated storage. -- (from STRING_32) require -- from RESIZABLE True ensure -- from RESIZABLE same_count: count = old count minimal_capacity: capacity = count ensure then -- from STRING_32 same_string: same_string (old twin) feature -- Transformation correct_mismatch -- Attempt to correct object mismatch during retrieve using `mismatch_information`. -- (from STRING_32) feature -- Conversion as_lower: DATABASE_STORE [G] -- New object with all letters in lower case. -- (from STRING_32) ensure -- from READABLE_STRING_GENERAL as_lower_attached: Result /= Void length: Result.count = count anchor: count > 0 implies Result.item (1) = item (1).as_lower recurse: count > 1 implies Result.substring (2, count) ~ substring (2, count).as_lower as_string_32: STRING_32 -- Convert Current as a STRING_32. -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_string_32`. -- (from READABLE_STRING_GENERAL) ensure -- from READABLE_STRING_GENERAL as_string_32_not_void: Result /= Void identity: (conforms_to (create {STRING_32}.make_empty end) and Result = Current) or (not conforms_to (create {STRING_32}.make_empty end) and Result /= Current) as_upper: DATABASE_STORE [G] -- New object with all letters in upper case -- (from STRING_32) ensure -- from READABLE_STRING_GENERAL as_upper_attached: Result /= Void length: Result.count = count anchor: count > 0 implies Result.item (1) = item (1).as_upper recurse: count > 1 implies Result.substring (2, count) ~ substring (2, count).as_upper boolean_format (object: BOOLEAN): STRING_8 -- Converted string of object according to the database format -- (from DB_FORMAT) center_justify -- Center justify Current using `count` as width. -- (from STRING_32) character_justify (pivot: CHARACTER_32; position: INTEGER_32) -- Justify a string based on a pivot -- and the position it needs to be in -- the final string. -- This will grow the string if necessary -- to get the pivot in the correct place. -- (from STRING_32) require -- from STRING_32 valid_position: position <= capacity positive_position: position >= 1 pivot_not_space: pivot /= ' '.to_character_32 not_empty: not is_empty charconv (i: INTEGER_32): CHARACTER_8 -- Character associated with integer value i. -- (from BASIC_ROUTINES) ensure -- from BASIC_ROUTINES instance_free: class date_format (object: DATE_TIME): STRING_8 -- Converted string of object according to the database format. -- (from DB_FORMAT) require -- from DB_FORMAT argument_not_void: object /= Void left_justify -- Left justify Current using `count` as width. -- (from STRING_32) linear_representation: LINEAR [CHARACTER_32] -- Representation as a linear structure -- (from STRING_32) mirror -- Reverse the order of characters. -- "Hello world" -> "dlrow olleH". -- (from STRING_32) ensure -- from STRING_32 same_count: count = old count mirrored: DATABASE_STORE [G] -- Mirror image of string; -- Result for "Hello world" is "dlrow olleH". -- (from STRING_32) ensure -- from READABLE_STRING_32 same_count: Result.count = count right_justify -- Right justify Current using `count` as width. -- (from STRING_32) ensure -- from STRING_32 same_count: count = old count split (a_separator: CHARACTER_32): LIST [DATABASE_STORE [G]] -- Split on a_separator. -- (from READABLE_STRING_GENERAL) ensure -- from READABLE_STRING_GENERAL Result /= Void string_format_32 (object: READABLE_STRING_GENERAL): STRING_32 -- Converted string of object according to the database format. -- (from DB_FORMAT) require -- from DB_FORMAT argument_not_void: object /= Void to_boolean: BOOLEAN -- Boolean value; -- "True" yields True, "False" yields False -- (case-insensitive) -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_boolean: string_is_boolean ensure -- from READABLE_STRING_GENERAL to_boolean: (Result = as_lower.same_string_general (True_constant)) or (not Result = as_lower.same_string_general (False_constant)) frozen to_c: ANY -- A reference to a C form of current string. -- Useful only for interfacing with C software. -- (from STRING_32) require -- from STRING_32 not_is_dotnet: not {PLATFORM}.is_dotnet frozen to_cil: SYSTEM_STRING -- Create an instance of SYSTEM_STRING using characters -- of Current between indices 1 and `count`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_dotnet: {PLATFORM}.is_dotnet ensure -- from READABLE_STRING_GENERAL to_cil_not_void: Result /= Void to_double: REAL_64 -- "Double" value; -- for example, when applied to "123.0", will yield 123.0 (double) -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_real_64`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL represents_a_double: string_is_double to_integer: INTEGER_32 -- 32-bit integer value -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_integer_32`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_integer: is_integer_32 to_integer_16: INTEGER_16 -- 16-bit integer value -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_integer_16: is_integer_16 to_integer_32: INTEGER_32 -- 32-bit integer value -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_integer`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_integer: is_integer_32 to_integer_64: INTEGER_64 -- 64-bit integer value -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_integer_64: is_integer_64 to_integer_8: INTEGER_8 -- 8-bit integer value -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_integer_8: is_integer_8 to_lower -- Convert to lower case. -- (from STRING_32) ensure -- from STRING_32 length_and_content: Elks_checking implies Current ~ (old as_lower) to_natural: NATURAL_32 -- 32-bit natural value -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_natural_32`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_natural: is_natural_32 to_natural_16: NATURAL_16 -- 16-bit natural value -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_natural_16: is_natural_16 to_natural_32: NATURAL_32 -- 32-bit natural value -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_natural`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_natural: is_natural_32 to_natural_64: NATURAL_64 -- 64-bit natural value -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_natural_64: is_natural_64 to_natural_8: NATURAL_8 -- 8-bit natural value -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_natural_8: is_natural_8 to_real: REAL_32 -- Real value; -- for example, when applied to "123.0", will yield 123.0 -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_real_32`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL represents_a_real: string_is_real to_real_32: REAL_32 -- Real value; -- for example, when applied to "123.0", will yield 123.0 -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_real`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL represents_a_real: string_is_real to_real_64: REAL_64 -- "Double" value; -- for example, when applied to "123.0", will yield 123.0 (double) -- Was declared in {READABLE_STRING_GENERAL} as synonym of `to_double`. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL represents_a_double: string_is_double to_string_32: STRING_32 -- Convert Current as a STRING_32. -- Was declared in {READABLE_STRING_GENERAL} as synonym of `as_string_32`. -- (from READABLE_STRING_GENERAL) ensure -- from READABLE_STRING_GENERAL as_string_32_not_void: Result /= Void identity: (conforms_to (create {STRING_32}.make_empty end) and Result = Current) or (not conforms_to (create {STRING_32}.make_empty end) and Result /= Current) to_string_8: STRING_8 -- Convert Current as a STRING_8. -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL is_valid_as_string_8: is_valid_as_string_8 ensure -- from READABLE_STRING_GENERAL as_string_8_not_void: Result /= Void identity: (conforms_to ("") and Result = Current) or (not conforms_to ("") and Result /= Current) to_upper -- Convert to upper case. -- (from STRING_32) ensure -- from STRING_32 length_and_content: Elks_checking implies Current ~ (old as_upper) feature -- Duplication copy (other: DATABASE_STORE [G]) -- Reinitialize by copying the characters of other. -- (This is also used by `twin`.) -- (from READABLE_STRING_32) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other ensure then -- from READABLE_STRING_32 new_result_count: count = other.count frozen deep_copy (other: DATABASE_STORE [G]) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: DATABASE_STORE [G] -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) head (n: INTEGER_32): DATABASE_STORE [G] -- Prefix, retaining first n characters (or as many as available). -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL non_negative_argument: n >= 0 ensure -- from READABLE_STRING_GENERAL same_count: count = old count new_count: Result.count = n.min (count) multiply (n: INTEGER_32) -- Duplicate a string within itself -- ("hello").multiply(3) => "hellohellohello" -- (from STRING_32) require -- from STRING_32 meaningful_multiplier: n >= 1 frozen standard_copy (other: DATABASE_STORE [G]) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: DATABASE_STORE [G] -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) substring (start_index, end_index: INTEGER_32): DATABASE_STORE [G] -- Copy of substring containing all characters at indices -- between start_index and end_index -- (from STRING_32) require -- from READABLE_STRING_GENERAL True ensure -- from READABLE_STRING_GENERAL substring_not_void: Result /= Void substring_count: Result.count = end_index - start_index + 1 or Result.count = 0 first_code: Result.count > 0 implies Result.item (1) = item (start_index) recurse: Result.count > 0 implies Result.substring (2, Result.count) ~ substring (start_index + 1, end_index) tail (n: INTEGER_32): DATABASE_STORE [G] -- Suffix, retaining last n characters (or as many as available). -- (from READABLE_STRING_GENERAL) require -- from READABLE_STRING_GENERAL non_negative_argument: n >= 0 ensure -- from READABLE_STRING_GENERAL same_count: count = old count new_count: Result.count = n.min (count) frozen twin: DATABASE_STORE [G] -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations bottom_int_div (n1, n2: INTEGER_32): INTEGER_32 -- Greatest lower bound of the integer division of n1 by n2. -- (from BASIC_ROUTINES) ensure -- from BASIC_ROUTINES instance_free: class frozen default: detachable DATABASE_STORE [G] -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class field_clean (i: INTEGER_32; object: ANY): BOOLEAN -- Clean i-th field of object. -- (from EXT_INTERNAL) require -- from EXT_INTERNAL object_not_void: object /= Void field_copy (i: INTEGER_32; object, value: ANY): BOOLEAN -- Copy value in i-th field of object. -- (from EXT_INTERNAL) require -- from EXT_INTERNAL object_not_void: object /= Void value_not_void: value /= Void force (obj: ANY) -- Store object into supposingly fixed -- and resizable active repository. require object_exists: obj /= Void owns_repository: owns_repository repository_exists: attached repository as lr_repository and then lr_repository.exists get_complex_value (obj: ANY; str: STRING_32) -- Retrieve string value of reference object obj and put in str. -- (from SQL_SCAN) require -- from SQL_SCAN object_exists: obj /= Void str_exists: str /= Void get_value (obj: detachable ANY; str: STRING_32) -- Retrieve string value of obj and put in str. -- (from SQL_SCAN) require -- from SQL_SCAN str_exists: str /= Void parse_32 (s: READABLE_STRING_GENERAL): STRING_32 -- Parse string s by replacing each pattern ":<name>" -- with the Eiffel object description whose name -- also matches "<name>". -- (from SQL_SCAN) require -- from SQL_SCAN s_not_void: s /= Void parse_dynamic (s: READABLE_STRING_GENERAL): STRING_32 -- Parse string s by replacing each pattern ":<name>" with "?". -- (from SQL_SCAN) require -- from SQL_SCAN s_not_void: s /= Void plus alias "+" (s: READABLE_STRING_32): DATABASE_STORE [G] -- Concatenation with s. -- (from STRING_32) require -- from READABLE_STRING_32 argument_attached: attached s ensure -- from READABLE_STRING_32 plus_attached: attached Result new_count: Result.count = count + s.count initial: Elks_checking implies Result.substring (1, count) ~ Current final: Elks_checking implies Result.substring (count + 1, count + s.count).same_string (s) plus_general (s: READABLE_STRING_GENERAL): DATABASE_STORE [G] -- Concatenation of the current string with s. -- (from STRING_32) require -- from READABLE_STRING_GENERAL argument_not_void: s /= Void compatible_strings: Is_string_8 implies s.is_valid_as_string_8 ensure -- from READABLE_STRING_GENERAL plus_not_void: Result /= Void new_count: Result.count = count + s.count initial: Elks_checking implies Result.substring (1, count) ~ Current final: Elks_checking implies Result.substring (count + 1, count + s.count).same_string_general (s) put (object: ANY) -- Store object into active repository. require object_exists: object /= Void owns_repository: owns_repository repository_exists: attached repository as lr_repository and then lr_repository.exists replace -- Replace all occurrences of :key by ht.item (":key") -- (from SQL_SCAN) up_int_div (n1, n2: INTEGER_32): INTEGER_32 -- Least upper bound of the integer division -- of n1 by n2. -- (from BASIC_ROUTINES) ensure -- from BASIC_ROUTINES instance_free: class feature -- Inapplicable bag_put (v: CHARACTER_32) -- Ensure that structure includes v. -- (from TABLE) require -- from COLLECTION extendible: Extendible ensure -- from COLLECTION item_inserted: is_inserted (v) feature -- Access: Cursor new_character_32_cursor: STRING_ITERATION_CURSOR -- Fresh cursor for this string that iterates over code points (see `code`) -- exposed as {CHARACTER_32}. -- (from READABLE_STRING_GENERAL) feature -- Conformance field_conforms_to (a_source_type, a_field_type: INTEGER_32): BOOLEAN -- Does a_source_type conform to a_field_type? -- (from REFLECTOR) require -- from REFLECTOR a_source_type_non_negative: a_source_type >= 0 a_field_type_non_negative: a_field_type >= 0 ensure -- from REFLECTOR instance_free: class is_instance_of (object: ANY; type_id: INTEGER_32): BOOLEAN -- Is object an instance of type type_id? -- (from INTERNAL) require -- from INTERNAL object_not_void: object /= Void type_id_nonnegative: type_id >= 0 ensure -- from INTERNAL instance_free: class type_conforms_to (type1, type2: INTEGER_32): BOOLEAN -- Does type1 conform to type2? -- (from REFLECTOR) require -- from REFLECTOR type1_nonnegative: type1 >= 0 type2_nonnegative: type2 >= 0 ensure -- from REFLECTOR instance_free: class feature -- Correction Mismatch_information: MISMATCH_INFORMATION -- Original attribute values of mismatched object -- (from MISMATCH_CORRECTOR) feature -- Creation dynamic_type_from_string (class_type: READABLE_STRING_GENERAL): INTEGER_32 -- Dynamic type corresponding to class_type. -- If no dynamic type available, returns -1. -- (from REFLECTOR) require -- from REFLECTOR class_type_not_void: class_type /= Void class_type_not_empty: not class_type.is_empty is_valid_type_string: is_valid_type_string (class_type) ensure -- from REFLECTOR instance_free: class dynamic_type_from_string_valid: Result = -1 or Result = None_type or Result >= 0 new_instance_of (type_id: INTEGER_32): ANY -- New instance of dynamic type_id. -- Note: returned object is not initialized and may -- hence violate its invariant. -- type_id cannot represent a SPECIAL type, use -- `new_special_any_instance` instead. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 not_special_type: not is_special_type (type_id) not_deferred: not type_of_type (type_id).is_deferred ensure -- from REFLECTOR instance_free: class not_special_type: not attached {SPECIAL [detachable ANY]} Result dynamic_type_set: attached_type (Result.generating_type.type_id) = attached_type (type_id) new_special_any_instance (type_id, a_capacity: INTEGER_32): SPECIAL [detachable ANY] -- New instance of dynamic type_id that represents -- a SPECIAL which can contain a_capacity elements of reference type. -- To create a SPECIAL of basic type, use class SPECIAL directly. -- (from REFLECTOR) require -- from REFLECTOR a_capacity_valid: a_capacity >= 0 type_id_nonnegative: type_id >= 0 special_type: is_special_any_type (type_id) ensure -- from REFLECTOR instance_free: class dynamic_type_set: Result.generating_type.type_id = type_id count_set: Result.count = 0 capacity_set: Result.capacity = a_capacity new_tuple_from_special (type_id: INTEGER_32; values: SPECIAL [detachable separate ANY]): detachable TUPLE -- New instance of a tuple of type type_id filled with values if all types of items are suitable. -- Void if some items from values are inappropriate for a tuple of type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 is_tuple_type: is_tuple_type (type_id) ensure -- from REFLECTOR instance_free: class dynamic_type_set: attached Result implies Result.generating_type.type_id = type_id values_set: attached Result implies ∀ k: 1 |..| Result.count ¦ Result.item (k) = values [k - 1] new_tuple_from_tuple (type_id: INTEGER_32; source: separate TUPLE): detachable TUPLE -- New instance of a tuple of type type_id filled with values fom source if all value types are suitable. -- Void if some values from source are inappropriate for a tuple of type type_id. -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 is_tuple_type: is_tuple_type (type_id) ensure -- from REFLECTOR instance_free: class dynamic_type_set: attached Result implies Result.generating_type.type_id = type_id object_comparison_set: attached Result implies Result.object_comparison = source.object_comparison values_set: attached Result implies ∀ k: 1 |..| Result.count ¦ Result.item (k) = source [k] type_of (object: detachable ANY): TYPE [detachable ANY] -- Associated TYPE instance of object. -- (from INTERNAL) ensure -- from INTERNAL instance_free: class result_not_void: Result /= Void type_of_type (type_id: INTEGER_32): TYPE [detachable ANY] -- Associated TYPE instance for an object of type id type_id -- (from REFLECTOR) require -- from REFLECTOR type_id_nonnegative: type_id >= 0 ensure -- from REFLECTOR instance_free: class result_not_void: Result /= Void feature -- Decimal decimal_creation_function: FUNCTION [STRING_8, INTEGER_32, INTEGER_32, INTEGER_32, ANY] -- Function to create decimal -- (from GLOBAL_SETTINGS) decimal_factor_function: FUNCTION [ANY, TUPLE [digits: STRING_8; sign: INTEGER_32; precision: INTEGER_32; scale: INTEGER_32]] -- Function to get base type to form a decimal from a given ANY object. -- (from GLOBAL_SETTINGS) decimal_output_function: FUNCTION [ANY, STRING_8] -- Function to output a decimal for the purpose of building correct SQL statement -- (from GLOBAL_SETTINGS) default_decimal_presicion: INTEGER_32 -- Default presicion of decimal. Used when creating tables etc. -- (from GLOBAL_SETTINGS) default_decimal_scale: INTEGER_32 -- Default scale of decimal. Used when creating tables etc. -- (from GLOBAL_SETTINGS) is_decimal_function: FUNCTION [ANY, BOOLEAN] -- Fuction to check if an object is a decimal -- (from GLOBAL_SETTINGS) feature -- Markers fixme (comment: READABLE_STRING_8) -- Mark code that has to be "fixed" with comment. -- (from REFACTORING_HELPER) require -- from REFACTORING_HELPER comment_not_void: comment /= Void ensure -- from REFACTORING_HELPER instance_free: class to_implement (comment: READABLE_STRING_8) -- Mark code that has to be "implemented" with comment. -- (from REFACTORING_HELPER) require -- from REFACTORING_HELPER comment_not_void: comment /= Void ensure -- from REFACTORING_HELPER instance_free: class to_implement_assertion (comment: READABLE_STRING_8): BOOLEAN -- Mark assertion that has to be "implemented" with comment. -- (from REFACTORING_HELPER) require -- from REFACTORING_HELPER comment_not_void: comment /= Void ensure -- from REFACTORING_HELPER instance_free: class feature -- Marking lock_marking -- Get a lock on `mark` and `unmark` routine so that 2 threads cannot `mark` and -- `unmark` at the same time. -- (from OBJECT_GRAPH_MARKER) ensure -- from OBJECT_GRAPH_MARKER instance_free: class mark (obj: separate ANY) -- Mark object obj. -- To be thread safe, make sure to call this feature when you -- have the marking lock that you acquire using `lock_marking`. -- (from OBJECT_GRAPH_MARKER) require -- from OBJECT_GRAPH_MARKER object_not_void: obj /= Void ensure -- from OBJECT_GRAPH_MARKER instance_free: class is_marked: is_marked (obj) unlock_marking -- Release a lock on `mark` and `unmark`, so that another thread can -- use `mark` and `unmark`. -- (from OBJECT_GRAPH_MARKER) ensure -- from OBJECT_GRAPH_MARKER instance_free: class unmark (obj: separate ANY) -- Unmark object obj. -- To be thread safe, make sure to call this feature when you -- have the marking lock that you acquire using `lock_marking`. -- (from OBJECT_GRAPH_MARKER) require -- from OBJECT_GRAPH_MARKER object_not_void: obj /= Void ensure -- from OBJECT_GRAPH_MARKER instance_free: class is_not_marked: not is_marked (obj) feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- Printable representation. -- (from READABLE_STRING_32) require -- from ANY True ensure -- from ANY out_not_void: Result /= Void ensure then -- from READABLE_STRING_32 out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void feature -- Qeury is_database_set: BOOLEAN -- Is database set? -- (from HANDLE_USE) feature -- Query is_decimal_used: BOOLEAN -- Is decimal type used? -- (from GLOBAL_SETTINGS) map_zero_null_value: BOOLEAN -- Map zero to NULL value for numeric types? -- (from GLOBAL_SETTINGS) use_extended_types: BOOLEAN -- Use extended types? STRING_32 etc. -- (from GLOBAL_SETTINGS) feature -- Retrieval frozen internal_correct_mismatch -- Called from runtime to perform a proper dynamic dispatch on `correct_mismatch` -- from MISMATCH_CORRECTOR. -- (from ANY) feature -- Status Change set_decimal_functions (a_decimal_creation_func: like decimal_creation_function; a_is_decimal_func: like is_decimal_function; a_decimal_factor_func: like decimal_factor_function; a_decimal_output_func: like decimal_output_function) -- (from GLOBAL_SETTINGS) set_default_decimal_presicion (a_presicsion: INTEGER_32) -- Set `default_decimal_presicion` -- (from GLOBAL_SETTINGS) set_default_decimal_scale (a_scale: INTEGER_32) -- Set `default_decimal_scale` -- (from GLOBAL_SETTINGS) set_is_decimal_used (a_b: BOOLEAN) -- Set `is_decimal_used` with a_b. -- (from GLOBAL_SETTINGS) set_map_zero_null_value (a_b: BOOLEAN) -- Set `map_zero_null_value` with a_b. -- (from GLOBAL_SETTINGS) set_use_extended_types (a_b: BOOLEAN) -- Set `use_extended_types` with a_b. -- (from GLOBAL_SETTINGS) feature -- Version compiler_version: INTEGER_32 -- (from REFLECTOR) ensure -- from REFLECTOR instance_free: class invariant -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) -- from STRING_HDL same_count: ht.count = ht_order.count -- from STRING_32 extendible: Extendible compare_character: not object_comparison -- from READABLE_STRING_32 area_not_void: area /= Void -- from COMPARABLE irreflexive_comparison: not (Current < Current) -- from READABLE_INDEXABLE consistent_boundaries: Lower <= count or else Lower = count + 1 -- from STRING_GENERAL mutable: not is_immutable -- from RESIZABLE increase_by_at_least_one: Minimal_increase >= 1 -- from BOUNDED valid_count: count <= capacity full_definition: full = (count = capacity) -- from FINITE empty_definition: is_empty = (count = 0) note copyright: "Copyright (c) 1984-2014, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class DATABASE_STORE -- Generated by Eiffel Studio --
For more details: eiffel.org