All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | List of all members
paal::detail::knapsack_data< GetSize, GetValue, Objects, OutputIterator > Class Template Reference

Public Types

using traits = knapsack_base< Objects, GetSize, GetValue >
 
using size = typename traits::SizeType
 
using value = typename traits::ValueType
 
using objects = Objects
 
using object_ref = typename traits::ObjectRef
 
using object_iter = typename boost::range_iterator< Objects >::type
 
using return_type = typename traits::return_type
 

Public Member Functions

 knapsack_data (Objects objects, size capacity, GetSize get_size, GetValue get_value, OutputIterator &out)
 
size get_size (object_ref obj) const
 
value get_value (object_ref obj) const
 
GetSize get_size () const
 
GetValue get_value () const
 
objects get_objects ()
 
void out (object_ref obj)
 
size get_capacity () const
 
OutputIterator & get_output_iter () const
 
density< GetValue, GetSize > get_density ()
 

Detailed Description

template<typename GetSize, typename GetValue, typename Objects, typename OutputIterator>
class paal::detail::knapsack_data< GetSize, GetValue, Objects, OutputIterator >

Definition at line 109 of file knapsack_utils.hpp.


The documentation for this class was generated from the following file: