All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
paal::local_search::facility_location_solution_adapter< facility_location_solution > Class Template Reference

facility_location_solution adapter chosen range and unchosen range must be joined into one homogenus collection of Facilities. More...

#include <facility_location_solution_adapter.hpp>

Public Types

typedef
facility_location_solution::VertexType 
VertexType
 
typedef
data_structures::facility_location_solution_traits
< FLS >::Dist 
Dist
 
typedef std::vector< VertexType > UnchosenCopy
 
typedef std::vector< VertexType > ChosenCopy
 

Public Member Functions

 facility_location_solution_adapter (facility_location_solution &sol)
 constructor creates cycled range of all facilities More...
 
Dist add_facility_tentative (VertexType v)
 adds facility tentatively (used in gain computation). More...
 
Dist add_facility (VertexType v)
 adds facility More...
 
Dist remove_facility_tentative (VertexType v)
 ads facility tentatively (used in gain computation) More...
 
Dist remove_facility (VertexType v)
 removes facility More...
 
facility_location_solution & getfacility_location_solution ()
 get solution More...
 
const facility_location_solution & getfacility_location_solution () const
 gets solution More...
 
auto getUnchosenCopy () const -> decltype(this->get_cycledCopy(m_unchosen_copy, m_last_used_unchosen))
 returns copy of unchosen facilities More...
 
auto getChosenCopy () const -> decltype(this->get_cycledCopy(m_chosen_copy, m_last_used_chosen))
 returns copy of chosen facilities More...
 

Public Attributes

decltype(std::declval< FLS >
().get_chosen_facilities())
typedef 
Chosen
 type of Chosen collection
 
decltype(std::declval< FLS >
().get_unchosen_facilities())
typedef 
Unchosen
 type of Unchosen collection
 

Detailed Description

template<typename facility_location_solution>
class paal::local_search::facility_location_solution_adapter< facility_location_solution >

facility_location_solution adapter chosen range and unchosen range must be joined into one homogenus collection of Facilities.

Template Parameters
facility_location_solution

Definition at line 44 of file facility_location_solution_adapter.hpp.

Constructor & Destructor Documentation

template<typename facility_location_solution >
paal::local_search::facility_location_solution_adapter< facility_location_solution >::facility_location_solution_adapter ( facility_location_solution &  sol)
inline

constructor creates cycled range of all facilities

Parameters
sol

Definition at line 85 of file facility_location_solution_adapter.hpp.

Member Function Documentation

template<typename facility_location_solution >
Dist paal::local_search::facility_location_solution_adapter< facility_location_solution >::add_facility ( VertexType  v)
inline

adds facility

Parameters
v
Returns

Definition at line 108 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
Dist paal::local_search::facility_location_solution_adapter< facility_location_solution >::add_facility_tentative ( VertexType  v)
inline

adds facility tentatively (used in gain computation).

Parameters
v
Returns

Definition at line 99 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
auto paal::local_search::facility_location_solution_adapter< facility_location_solution >::getChosenCopy ( ) const -> decltype(this->get_cycledCopy( m_chosen_copy, m_last_used_chosen))
inline

returns copy of chosen facilities

Returns

Definition at line 181 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
facility_location_solution& paal::local_search::facility_location_solution_adapter< facility_location_solution >::getfacility_location_solution ( )
inline

get solution

Returns

Definition at line 151 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
const facility_location_solution& paal::local_search::facility_location_solution_adapter< facility_location_solution >::getfacility_location_solution ( ) const
inline

gets solution

Returns

Definition at line 160 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
auto paal::local_search::facility_location_solution_adapter< facility_location_solution >::getUnchosenCopy ( ) const -> decltype(this->get_cycledCopy( m_unchosen_copy, m_last_used_unchosen))
inline

returns copy of unchosen facilities

Returns

Definition at line 169 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
Dist paal::local_search::facility_location_solution_adapter< facility_location_solution >::remove_facility ( VertexType  v)
inline

removes facility

Parameters
v
Returns

Definition at line 136 of file facility_location_solution_adapter.hpp.

template<typename facility_location_solution >
Dist paal::local_search::facility_location_solution_adapter< facility_location_solution >::remove_facility_tentative ( VertexType  v)
inline

ads facility tentatively (used in gain computation)

Parameters
v
Returns

Definition at line 125 of file facility_location_solution_adapter.hpp.


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