Class: Benchcc::Fusion::Cons

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/benchcc/fusion.rb

Instance Method Summary collapse

Instance Method Details

#headersObject



29
30
31
# File 'lib/benchcc/fusion.rb', line 29

def headers
  ["boost/fusion/container/list/cons.hpp"]
end

#includesObject



25
26
27
# File 'lib/benchcc/fusion.rb', line 25

def includes
  headers.map { |hdr| "#include <#{hdr}>" }.join("\n")
end

#to_sObject



33
34
35
36
37
# File 'lib/benchcc/fusion.rb', line 33

def to_s
  foldr('boost::fusion::nil_') do |head, tail|
    "boost::fusion::cons<#{head}, #{tail}>"
  end
end