Class: Benchcc::Fusion::List

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

Instance Method Summary collapse

Instance Method Details

#headersObject



15
16
17
# File 'lib/benchcc/fusion.rb', line 15

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

#includesObject



9
10
11
12
13
# File 'lib/benchcc/fusion.rb', line 9

def includes
  inc = ["#define FUSION_MAX_LIST_SIZE 50"]
  inc << headers.map { |hdr| "#include <#{hdr}>" }
  inc.join("\n")
end

#to_sObject



19
20
21
# File 'lib/benchcc/fusion.rb', line 19

def to_s
  "boost::fusion::list<#{join(', ')}>"
end