52 #ifndef HAVOQGT_MPI_IMPL_EDGE_DATA_HPP_
53 #define HAVOQGT_MPI_IMPL_EDGE_DATA_HPP_
60 template <
typename SegementManager>
61 template <
typename T,
typename SegManagerOther>
62 class delegate_partitioned_graph<SegementManager>::edge_data {
64 typedef typename bip::vector< T, bip::allocator<T, SegManagerOther> >
74 for(
size_t i=0; i<m_owned_edge_data.size(); ++i) {
75 m_owned_edge_data[i] = r;
77 for(
size_t i=0; i<m_delegate_edge_data.size(); ++i) {
78 m_delegate_edge_data[i] = r;
85 iterator
owned_end() {
return m_owned_edge_data.end(); }
89 edge_data(uint64_t owned_size, uint64_t delegate_size,
91 edge_data(uint64_t owned_size, uint64_t delegate_size,
const T& init,
95 bip::vector< T, bip::allocator<T, SegManagerOther> >
97 bip::vector< T, bip::allocator<T, SegManagerOther> >
105 template <
typename SegmentManager>
106 template<
typename T,
typename SegManagerOther>
108 edge_data(uint64_t owned_size, uint64_t delegate_size, SegManagerOther* sm)
109 : m_owned_edge_data(sm->template get_allocator<T>())
110 , m_delegate_edge_data(sm->template get_allocator<T>()) {
115 template <
typename SegmentManager>
116 template<
typename T,
typename SegManagerOther>
118 edge_data(uint64_t owned_size, uint64_t delegate_size,
const T& init, SegManagerOther* sm)
119 : m_owned_edge_data(owned_size, init, sm->template get_allocator<T>())
120 , m_delegate_edge_data(delegate_size, init, sm->template get_allocator<T>()) { }
122 template <
typename SegmentManager>
123 template<
typename T,
typename SegManagerOther>
135 template <
typename SegmentManager>
136 template<
typename T,
typename SegManagerOther>
149 #endif // HAVOQGT_MPI_IMPL_EDGE_DATA_HPP_
bip::vector< T, bip::allocator< T, SegManagerOther > > m_owned_edge_data
iterator delegate_begin()
bip::vector< T, bip::allocator< T, SegManagerOther > > m_delegate_edge_data
bip::vector< T, bip::allocator< T, SegManagerOther > >::iterator iterator