|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cyc.tool.subl.util.SubLTrampolineFile
com.cyc.tool.subl.util.SubLTranslatedFile
com.cyc.cycjava.cycl.cache
public final class cache
Nested Class Summary | |
---|---|
static class |
cache.$cache_entry_native
|
static class |
cache.$cache_entry_p$UnaryFunction
|
static class |
cache.$cache_native
|
static class |
cache.$cache_p$UnaryFunction
|
Nested classes/interfaces inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
SubLTranslatedFile.SubL |
Fields inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
EMPTY_SUBL_OBJECT_ARRAY |
Method Summary | |
---|---|
static SubLObject |
_csetf_cache_capacity(SubLObject object,
SubLObject value)
|
static SubLObject |
_csetf_cache_entry_key(SubLObject object,
SubLObject value)
|
static SubLObject |
_csetf_cache_entry_newer(SubLObject object,
SubLObject value)
|
static SubLObject |
_csetf_cache_entry_older(SubLObject object,
SubLObject value)
|
static SubLObject |
_csetf_cache_entry_value(SubLObject object,
SubLObject value)
|
static SubLObject |
_csetf_cache_head_entry(SubLObject object,
SubLObject value)
|
static SubLObject |
_csetf_cache_map(SubLObject object,
SubLObject value)
|
static SubLObject |
cache_capacity(SubLObject object)
|
static SubLObject |
cache_clear(SubLObject v_cache)
Removes all entries from CACHE, either individually (if precached) or agressively |
static SubLObject |
cache_contains_key_p(SubLObject v_cache,
SubLObject key)
Checks whether the key is currently associated with an entry in the cache. |
static SubLObject |
cache_empty_p(SubLObject v_cache)
Returns true if CACHE is empty, nil otherwise |
static SubLObject |
cache_entry_key(SubLObject object)
|
static SubLObject |
cache_entry_newer(SubLObject object)
|
static SubLObject |
cache_entry_older(SubLObject object)
|
static SubLObject |
cache_entry_p(SubLObject object)
|
static SubLObject |
cache_entry_print_function_trampoline(SubLObject object,
SubLObject stream)
|
static SubLObject |
cache_entry_value(SubLObject object)
|
static SubLObject |
cache_free_list(SubLObject v_cache)
Returns the resourced list of cache entries. |
static SubLObject |
cache_full_p(SubLObject v_cache)
Returns true if CACHE is full, nil otherwise |
static SubLObject |
cache_get_int(SubLObject v_cache,
SubLObject key,
SubLObject v_default,
SubLObject return_entry_p)
|
static SubLObject |
cache_get_without_values(SubLObject v_cache,
SubLObject key,
SubLObject v_default)
Returns the entry associated with KEY in CACHE |
static SubLObject |
cache_get(SubLObject v_cache,
SubLObject key)
Returns the entry associated with KEY in CACHE |
static SubLObject |
cache_head_entry(SubLObject object)
|
static SubLObject |
cache_map(SubLObject object)
|
static SubLObject |
cache_newest(SubLObject v_cache)
Returns the entry of CACHE that was added most recently |
static SubLObject |
cache_p(SubLObject object)
|
static SubLObject |
cache_print_function_trampoline(SubLObject object,
SubLObject stream)
|
static SubLObject |
cache_queue_append(SubLObject v_cache,
SubLObject entry)
Add ENTRY onto CACHE's priority queue at the end |
static SubLObject |
cache_queue_enqueue(SubLObject v_cache,
SubLObject entry)
Enqueues ENTRY onto CACHE's priority queue |
static SubLObject |
cache_queue_remove(SubLObject v_cache,
SubLObject entry)
Removes ENTRY from the CACHE's priority queue |
static SubLObject |
cache_queue_requeue(SubLObject v_cache,
SubLObject entry)
Update the cache queue so that the entry becomes the newest ENTRY |
static SubLObject |
cache_queue_unlink(SubLObject entry)
Remove entry from its neighbors |
static SubLObject |
cache_remove(SubLObject v_cache,
SubLObject key)
Removes the mapping for KEY from CACHE |
static SubLObject |
cache_set_int(SubLObject v_cache,
SubLObject key,
SubLObject value,
SubLObject return_old_entry)
|
static SubLObject |
cache_set_return_dropped(SubLObject v_cache,
SubLObject key,
SubLObject value)
Associates KEY with VALUE in CACHE |
static SubLObject |
cache_set_without_values(SubLObject v_cache,
SubLObject key,
SubLObject value)
Associates KEY with VALUE in CACHE |
static SubLObject |
cache_set(SubLObject v_cache,
SubLObject key,
SubLObject value)
Associates KEY with VALUE in CACHE |
static SubLObject |
cache_size(SubLObject v_cache)
Returns the number of entries in CACHE |
static SubLObject |
cfasl_output_object_cache_method(SubLObject object,
SubLObject stream)
|
static SubLObject |
declare_cache_file()
|
void |
declareFunctions()
Declares the mapping between functions and symbols for all named functions defined in the file. |
static SubLObject |
do_cache_doneP(SubLObject v_cache,
SubLObject entry)
|
static SubLObject |
do_cache_first(SubLObject v_cache,
SubLObject order)
|
static SubLObject |
do_cache_key(SubLObject entry)
|
static SubLObject |
do_cache_next(SubLObject entry,
SubLObject order)
|
static SubLObject |
do_cache_value(SubLObject entry)
|
static SubLObject |
get_new_cache_entry(SubLObject v_cache)
Fetch an empty entry from the free list or allocate a new one. |
static SubLObject |
init_cache_file()
|
void |
initializeVariables()
Initializes all global variables and private internal variables for constants defined in the file. |
static SubLObject |
is_cache_preallocated_p(SubLObject v_cache)
|
static SubLObject |
make_cache_entry(SubLObject arglist)
|
static SubLObject |
make_cache(SubLObject arglist)
|
static SubLObject |
new_cache(SubLObject capacity,
SubLObject test)
Creates a new cache with the specified capacity and test function |
static SubLObject |
new_preallocated_cache(SubLObject capacity,
SubLObject test)
Creates a new cache under preallocation strategy |
static SubLObject |
possibly_resource_cache_entry(SubLObject v_cache,
SubLObject entry)
Decide whether to put this entry onto the free list of cache |
static SubLObject |
resource_cache_entry(SubLObject v_cache,
SubLObject entry)
Put the entry onto the free list of the cache. |
void |
runTopLevelForms()
Runs all top-level forms in order. |
static SubLObject |
scrub_cache_entry(SubLObject entry)
Clean up all slots to prevent any loitering. |
static SubLObject |
set_cache_free_list(SubLObject v_cache,
SubLObject head)
Set the head of the cache free list, containing the resourced cached entries |
static SubLObject |
setup_cache_file()
|
static SubLObject |
unresource_cache_entry(SubLObject v_cache)
Get an ENTRY from the free list of CACHE if you can; return NIL otherwise. |
Methods inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
extractFunctionNamed |
Methods inherited from class com.cyc.tool.subl.util.SubLTrampolineFile |
---|
checkType, enforceType, extractBinaryFunc, extractCount, extractEnd, extractEndUsingSize, extractPackage, extractStart, extractUnaryFunc, main |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SubLFile me
public static final java.lang.String myName
public static SubLSymbol $dtp_cache$
public static SubLSymbol $dtp_cache_entry$
public static SubLSymbol $print_cache_elementsP$
public static final SubLSymbol $sym0$CACHE
public static final SubLSymbol $sym1$CACHE_P
public static final SubLList $list2
public static final SubLList $list3
public static final SubLList $list4
public static final SubLList $list5
public static final SubLSymbol $sym6$CACHE_PRINT
public static final SubLSymbol $sym7$CACHE_PRINT_FUNCTION_TRAMPOLINE
public static final SubLSymbol $sym8$CACHE_CAPACITY
public static final SubLSymbol $sym9$_CSETF_CACHE_CAPACITY
public static final SubLSymbol $sym10$CACHE_MAP
public static final SubLSymbol $sym11$_CSETF_CACHE_MAP
public static final SubLSymbol $sym12$CACHE_HEAD_ENTRY
public static final SubLSymbol $sym13$_CSETF_CACHE_HEAD_ENTRY
public static final SubLSymbol $kw14$CAPACITY
public static final SubLSymbol $kw15$MAP
public static final SubLSymbol $kw16$HEAD_ENTRY
public static final SubLString $str17$Invalid_slot__S_for_construction_
public static final SubLSymbol $sym18$CACHE_ENTRY
public static final SubLSymbol $sym19$CACHE_ENTRY_P
public static final SubLList $list20
public static final SubLList $list21
public static final SubLList $list22
public static final SubLList $list23
public static final SubLSymbol $sym24$CACHE_ENTRY_PRINT
public static final SubLSymbol $sym25$CACHE_ENTRY_PRINT_FUNCTION_TRAMPOLINE
public static final SubLSymbol $sym26$CACHE_ENTRY_NEWER
public static final SubLSymbol $sym27$_CSETF_CACHE_ENTRY_NEWER
public static final SubLSymbol $sym28$CACHE_ENTRY_KEY
public static final SubLSymbol $sym29$_CSETF_CACHE_ENTRY_KEY
public static final SubLSymbol $sym30$CACHE_ENTRY_VALUE
public static final SubLSymbol $sym31$_CSETF_CACHE_ENTRY_VALUE
public static final SubLSymbol $sym32$CACHE_ENTRY_OLDER
public static final SubLSymbol $sym33$_CSETF_CACHE_ENTRY_OLDER
public static final SubLSymbol $kw34$NEWER
public static final SubLSymbol $kw35$KEY
public static final SubLSymbol $kw36$VALUE
public static final SubLSymbol $kw37$OLDER
public static final SubLString $str38$__CACHE_
public static final SubLString $str39$_
public static final SubLString $str40$_
public static final SubLString $str41$__
public static final SubLString $str42$___
public static final SubLString $str43$_
public static final SubLString $str44$_
public static final SubLSymbol $sym45$POSITIVE_INTEGER_P
public static final SubLSymbol $sym46$VALID_HASH_TEST_P
public static final SubLSymbol $kw47$RESOURCED
public static final SubLSymbol $kw48$UNKNOWN
public static final SubLList $list49
public static final SubLList $list50
public static final SubLSymbol $kw51$ALLOW_OTHER_KEYS
public static final SubLSymbol $kw52$ORDER
public static final SubLSymbol $kw53$NEWEST
public static final SubLSymbol $sym54$CACHE_VAR
public static final SubLSymbol $sym55$ORDER_VAR
public static final SubLSymbol $sym56$ENTRY
public static final SubLSymbol $sym57$CLET
public static final SubLSymbol $sym58$DO_CACHE_FIRST
public static final SubLSymbol $sym59$WHILE
public static final SubLSymbol $sym60$CNOT
public static final SubLSymbol $sym61$DO_CACHE_DONE_
public static final SubLSymbol $sym62$CSETQ
public static final SubLSymbol $sym63$DO_CACHE_KEY
public static final SubLSymbol $sym64$DO_CACHE_VALUE
public static final SubLSymbol $sym65$DO_CACHE_NEXT
public static final SubLSymbol $kw66$OLDEST
public static final SubLSymbol $sym67$DO_CACHE
public static final SubLString $str68$_S_was_not_either__NEWEST_or__OLD
public static final SubLSymbol $sym69$FUNCTION_SPEC_P
public static final SubLSymbol $sym70$CACHE_ITERATOR_DONE
public static final SubLSymbol $sym71$CACHE_ITERATOR_NEXT
public static final SubLList $list72
public static final SubLSymbol $sym73$CACHE_CONTENT_ITERATOR_DONE
public static final SubLSymbol $sym74$CACHE_CONTENT_ITERATOR_NEXT
public static final SubLInteger $int75$63
public static final SubLSymbol $sym76$CFASL_INPUT_CACHE
public static final SubLSymbol $sym77$CFASL_OUTPUT_OBJECT_CACHE_METHOD
public static final SubLString $str78$____
public static final SubLInteger $int79$100
public static final SubLSymbol $sym80$_
public static final SubLSymbol $sym81$CDR
public static final SubLFloat $float82$0_5
public static final SubLString $str83$Content_iterator__A_was_exhausted
public static final SubLString $str84$The_content_iterator_at_item__A_s
public static final SubLString $str85$The_content_iterator_at_item__A_s
public static final SubLString $str86$The_content_iterator__A_is_not_ex
public static final SubLString $str87$The_two_iterators_do_not_seem_to_
Method Detail |
---|
public static final SubLObject cache_print_function_trampoline(SubLObject object, SubLObject stream)
public static final SubLObject cache_p(SubLObject object)
public static final SubLObject cache_capacity(SubLObject object)
public static final SubLObject cache_map(SubLObject object)
public static final SubLObject cache_head_entry(SubLObject object)
public static final SubLObject cache_contains_key_p(SubLObject v_cache, SubLObject key)
CACHE
- cache-p; the cache within which to check for an associationKEY
- object; the key to be checked for association
public static final SubLObject _csetf_cache_capacity(SubLObject object, SubLObject value)
public static final SubLObject _csetf_cache_map(SubLObject object, SubLObject value)
public static final SubLObject _csetf_cache_head_entry(SubLObject object, SubLObject value)
public static final SubLObject make_cache(SubLObject arglist)
public static final SubLObject cache_entry_print_function_trampoline(SubLObject object, SubLObject stream)
public static final SubLObject cache_entry_p(SubLObject object)
public static final SubLObject cache_entry_newer(SubLObject object)
public static final SubLObject cache_entry_key(SubLObject object)
public static final SubLObject cache_entry_value(SubLObject object)
public static final SubLObject cache_entry_older(SubLObject object)
public static final SubLObject _csetf_cache_entry_newer(SubLObject object, SubLObject value)
public static final SubLObject _csetf_cache_entry_key(SubLObject object, SubLObject value)
public static final SubLObject _csetf_cache_entry_value(SubLObject object, SubLObject value)
public static final SubLObject _csetf_cache_entry_older(SubLObject object, SubLObject value)
public static final SubLObject make_cache_entry(SubLObject arglist)
public static final SubLObject new_cache(SubLObject capacity, SubLObject test)
CAPACITY
- positive-integer-p; the maximal number of entries CACHE
can holdTEST
- functionp; the equality test function of CACHE
public static final SubLObject new_preallocated_cache(SubLObject capacity, SubLObject test)
CAPACITY
- positive-integer-p; the maximal number of entries CACHE
can holdTEST
- functionp; the equality test function of CACHE
public static final SubLObject cache_full_p(SubLObject v_cache)
CACHE
- cache-p; the cache whose fullness is to be determined
public static final SubLObject cache_empty_p(SubLObject v_cache)
CACHE
- cache-p; the cache whose emptyness is to be determined
public static final SubLObject cache_get(SubLObject v_cache, SubLObject key)
CACHE
- cache-p; the cache from which to retrieve the value for KEYKEY
- object; the key for which to retrive a value from CACHE
public static final SubLObject cache_get_without_values(SubLObject v_cache, SubLObject key, SubLObject v_default)
CACHE
- cache-p; the cache from which to retrieve the value for KEYKEY
- object; the key for which to retrive a value from CACHE
public static final SubLObject cache_get_int(SubLObject v_cache, SubLObject key, SubLObject v_default, SubLObject return_entry_p)
public static final SubLObject cache_set(SubLObject v_cache, SubLObject key, SubLObject value)
CACHE
- cache-p; the cache within which to associate KEY with VALUEKEY
- object; the key to be associated with VALUEVALUE
- object; the value to associate with KEY
public static final SubLObject cache_set_without_values(SubLObject v_cache, SubLObject key, SubLObject value)
CACHE
- cache-p; the cache within which to associate KEY with VALUEKEY
- object; the key to be associated with VALUEVALUE
- object; the value to associate with KEY
public static final SubLObject cache_set_return_dropped(SubLObject v_cache, SubLObject key, SubLObject value)
CACHE
- cache-p; the cache within which to associate KEY with VALUEKEY
- object; the key to be associated with VALUEVALUE
- object; the value to associate with KEY
public static final SubLObject cache_set_int(SubLObject v_cache, SubLObject key, SubLObject value, SubLObject return_old_entry)
public static final SubLObject cache_remove(SubLObject v_cache, SubLObject key)
CACHE
- cache-p; the cache from which to remove the entry for KEYKEY
- object; the KEY to be removed from CACHE
public static final SubLObject cache_clear(SubLObject v_cache)
CACHE
- cache-p; the cache from which to remove all entries
public static final SubLObject cache_size(SubLObject v_cache)
CACHE
- cache-p; the cache whose size is to be computed
public static final SubLObject do_cache_first(SubLObject v_cache, SubLObject order)
public static final SubLObject do_cache_doneP(SubLObject v_cache, SubLObject entry)
public static final SubLObject do_cache_key(SubLObject entry)
public static final SubLObject do_cache_value(SubLObject entry)
public static final SubLObject do_cache_next(SubLObject entry, SubLObject order)
public static final SubLObject cfasl_output_object_cache_method(SubLObject object, SubLObject stream)
public static final SubLObject cache_newest(SubLObject v_cache)
CACHE
- cache-p; the cache whose most recently added cache entry is to be returned
public static final SubLObject cache_queue_remove(SubLObject v_cache, SubLObject entry)
CACHE
- cache-p; the cache from whose queue to remove ENTRY;ENTRY
- cache-entry; the cache entry to remove from CACHE's queue
public static final SubLObject cache_queue_requeue(SubLObject v_cache, SubLObject entry)
CACHE
- cache-p; the cache whose queue to updateENTRY
- cache-entry; the cache entry to update
public static final SubLObject cache_queue_enqueue(SubLObject v_cache, SubLObject entry)
CACHE
- cache-p; the cache onto whose queue to enqueue ENTRYENTRY
- cache-entry; the cache entry to enqueue onto CACHE's queue
public static final SubLObject cache_queue_append(SubLObject v_cache, SubLObject entry)
CACHE
- cache-p; the cache onto whose queue to enqueue ENTRYENTRY
- cache-entry; the cache entry to enqueue onto CACHE's queue
public static final SubLObject cache_queue_unlink(SubLObject entry)
ENTRY
- cache-entry; the cache entry to remove from CACHE's queuepublic static final SubLObject is_cache_preallocated_p(SubLObject v_cache)
public static final SubLObject get_new_cache_entry(SubLObject v_cache)
CACHE
- cache-p; the cache whose free list we want
public static final SubLObject cache_free_list(SubLObject v_cache)
CACHE
- cache-p; the cache whose free list we want
public static final SubLObject set_cache_free_list(SubLObject v_cache, SubLObject head)
CACHE
- cache-p; the cache whose free list we modifyENTRY
- cache-entry-p or NIL; the new head of the free list
public static final SubLObject possibly_resource_cache_entry(SubLObject v_cache, SubLObject entry)
CACHE
- cache-p; the cache whose free list might get ENTRYENTRY
- cache-entry-p; the entry that will be chained up
public static final SubLObject resource_cache_entry(SubLObject v_cache, SubLObject entry)
CACHE
- cache-p; the cache whose free list will get entryENTRY
- cache-entry-p; the entry that will be chained up
public static final SubLObject unresource_cache_entry(SubLObject v_cache)
CACHE
- cache-p; the cache whose free list will get entry
public static final SubLObject scrub_cache_entry(SubLObject entry)
public static final SubLObject declare_cache_file()
public static final SubLObject init_cache_file()
public static final SubLObject setup_cache_file()
public void declareFunctions()
SubLFile
public void initializeVariables()
SubLFile
public void runTopLevelForms()
SubLFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |