Class: Benchcc::Fusion::Vector

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

Instance Method Summary collapse

Instance Method Details

#headersObject



45
46
47
# File 'lib/benchcc/fusion.rb', line 45

def headers
  ["boost/fusion/container/vector/vector#{[10, size.round_up(1)].max}.hpp"]
end

#includesObject



41
42
43
# File 'lib/benchcc/fusion.rb', line 41

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

#to_sObject



49
50
51
# File 'lib/benchcc/fusion.rb', line 49

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