Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Data Structures | |
struct | enumerator |
struct | generator |
struct | yielder |
struct | producer |
struct | lazyenum_funcs |
struct | proc_entry |
struct | enum_chain |
struct | arith_seq_gen |
Typedefs | |
typedef struct MEMO * | lazyenum_proc_func(VALUE, struct MEMO *, VALUE, long) |
typedef VALUE | lazyenum_size_func(VALUE, VALUE) |
Functions | |
VALUE | rb_enumeratorize (VALUE obj, VALUE meth, int argc, const VALUE *argv) |
VALUE | rb_enumeratorize_with_size (VALUE obj, VALUE meth, int argc, const VALUE *argv, rb_enumerator_size_func *size_fn) |
VALUE | rb_enumeratorize_with_size_kw (VALUE obj, VALUE meth, int argc, const VALUE *argv, rb_enumerator_size_func *size_fn, int kw_splat) |
VALUE | rb_arith_seq_new (VALUE obj, VALUE meth, int argc, VALUE const *argv, rb_enumerator_size_func *size_fn, VALUE beg, VALUE end, VALUE step, int excl) |
int | rb_arithmetic_sequence_extract (VALUE obj, rb_arithmetic_sequence_components_t *component) |
void | InitVM_Enumerator (void) |
void | Init_Enumerator (void) |
Variables | |
VALUE | rb_cEnumerator |
VALUE | rb_eStopIteration |
VALUE | rb_cArithSeq |
#define enum_chain_free RUBY_TYPED_DEFAULT_FREE |
Definition at line 3035 of file enumerator.c.
#define enumerator_free RUBY_TYPED_DEFAULT_FREE |
Definition at line 215 of file enumerator.c.
#define generator_free RUBY_TYPED_DEFAULT_FREE |
Definition at line 1404 of file enumerator.c.
#define id_call idCall |
Definition at line 118 of file enumerator.c.
#define id_each idEach |
Definition at line 119 of file enumerator.c.
#define id_eqq idEqq |
Definition at line 120 of file enumerator.c.
#define id_initialize idInitialize |
Definition at line 121 of file enumerator.c.
#define id_size idSize |
Definition at line 122 of file enumerator.c.
#define LAZY_MEMO_BREAK 1 |
Definition at line 1589 of file enumerator.c.
#define LAZY_MEMO_BREAK_P | ( | memo | ) | ((memo)->memo_flags & LAZY_MEMO_BREAK) |
Definition at line 1591 of file enumerator.c.
#define LAZY_MEMO_PACKED 2 |
Definition at line 1590 of file enumerator.c.
#define LAZY_MEMO_PACKED_P | ( | memo | ) | ((memo)->memo_flags & LAZY_MEMO_PACKED) |
Definition at line 1592 of file enumerator.c.
#define LAZY_MEMO_RESET_PACKED | ( | memo | ) | ((memo)->memo_flags &= ~LAZY_MEMO_PACKED) |
Definition at line 1596 of file enumerator.c.
#define LAZY_MEMO_SET_BREAK | ( | memo | ) | ((memo)->memo_flags |= LAZY_MEMO_BREAK) |
Definition at line 1593 of file enumerator.c.
#define LAZY_MEMO_SET_PACKED | ( | memo | ) | ((memo)->memo_flags |= LAZY_MEMO_PACKED) |
Definition at line 1595 of file enumerator.c.
#define LAZY_MEMO_SET_VALUE | ( | memo, | |
value | |||
) | MEMO_V2_SET(memo, value) |
Definition at line 1594 of file enumerator.c.
#define memo_flags u3.state |
Definition at line 1588 of file enumerator.c.
#define memo_value v2 |
Definition at line 1587 of file enumerator.c.
#define NUM_GE | ( | x, | |
y | |||
) | RTEST(rb_num_coerce_relop((x), (y), idGE)) |
Definition at line 3733 of file enumerator.c.
#define PASS_KW_SPLAT (rb_empty_keyword_given_p() ? RB_PASS_EMPTY_KEYWORDS : rb_keyword_given_p()) |
Definition at line 379 of file enumerator.c.
#define proc_entry_free RUBY_TYPED_DEFAULT_FREE |
Definition at line 262 of file enumerator.c.
#define producer_free RUBY_TYPED_DEFAULT_FREE |
Definition at line 2852 of file enumerator.c.
#define yielder_free RUBY_TYPED_DEFAULT_FREE |
Definition at line 1264 of file enumerator.c.
Definition at line 157 of file enumerator.c.
Definition at line 158 of file enumerator.c.
Definition at line 4089 of file enumerator.c.
Definition at line 3900 of file enumerator.c.
References rb_define_method(), rb_intern, and rb_mKernel.
VALUE rb_arith_seq_new | ( | VALUE | obj, |
VALUE | meth, | ||
int | argc, | ||
VALUE const * | argv, | ||
rb_enumerator_size_func * | size_fn, | ||
VALUE | beg, | ||
VALUE | end, | ||
VALUE | step, | ||
int | excl | ||
) |
Definition at line 3308 of file enumerator.c.
int rb_arithmetic_sequence_extract | ( | VALUE | obj, |
rb_arithmetic_sequence_components_t * | component | ||
) |
Definition at line 3374 of file enumerator.c.
References rb_arithmetic_sequence_components_t::begin, obj, rb_cArithSeq, and rb_obj_is_kind_of().
Definition at line 516 of file enumerator.c.
References argc, argv, enumerator::meth, obj, and rb_enumeratorize_with_size().
VALUE rb_enumeratorize_with_size | ( | VALUE | obj, |
VALUE | meth, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_enumerator_size_func * | size_fn | ||
) |
Definition at line 525 of file enumerator.c.
References obj, rb_obj_is_kind_of(), and RTEST.
Referenced by rb_enumeratorize().
VALUE rb_enumeratorize_with_size_kw | ( | VALUE | obj, |
VALUE | meth, | ||
int | argc, | ||
const VALUE * | argv, | ||
rb_enumerator_size_func * | size_fn, | ||
int | kw_splat | ||
) |
Definition at line 537 of file enumerator.c.
References obj, rb_obj_is_kind_of(), and RTEST.
VALUE rb_cArithSeq |
Definition at line 180 of file enumerator.c.
Referenced by rb_arithmetic_sequence_extract(), and rb_range_values().
VALUE rb_cEnumerator |
Definition at line 109 of file enumerator.c.
VALUE rb_eStopIteration |
Definition at line 124 of file enumerator.c.