るりまサーチ

最速Rubyリファレンスマニュアル検索!
139313件ヒット [1-100件を表示] (0.475秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

クラス

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

static void terminate_process(int status, const char *mesg, int mlen) (32200.0)

static const char * thread_status_name(enum thread_status status) (26400.0)

static VALUE trace_ev(struct trace_data *data) (26300.0)

tsort (26114.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

=== Example

//emlist[][ruby]{
require 'tsort'

class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end

{1=>[2, 3],...
...=>[]}.tsort
#=> [3, 2, 1, 4]

{1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}

=== より現実的な例

非常に単純な `make' に似たツールは以下のように実装できます。

//emlist[][ruby]{
require 'tsort'

class Make
def initialize...
...default = []
end

def rule(outputs, inputs=[], &block)
t
riple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end

def build(target)
each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {...

static VALUE thgroup_add(VALUE group, VALUE thread) (26100.0)

絞り込み条件を変える

static VALUE thgroup_list(VALUE group) (26100.0)

static VALUE thgroup_s_alloc(VALUE klass) (26100.0)

static VALUE top_include(int argc, VALUE *argv) (26100.0)

static VALUE top_private(int argc, VALUE *argv) (26100.0)

static VALUE top_public(int argc, VALUE *argv) (26100.0)

絞り込み条件を変える

<< 1 2 3 ... > >>