change to reference
This commit is contained in:
parent
1d35a17a8b
commit
94309c2a73
|
@ -582,8 +582,8 @@ size_t DeviceRRGSB::get_cb_unique_module_index(
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceRRGSB::preload_unique_cbx_module(
|
void DeviceRRGSB::preload_unique_cbx_module(
|
||||||
const vtr::Point<size_t> block_coordinate,
|
const vtr::Point<size_t>& block_coordinate,
|
||||||
const std::vector<vtr::Point<size_t>> instance_coords) {
|
const std::vector<vtr::Point<size_t>>& instance_coords) {
|
||||||
/*check whether the preloaded value exceeds the limit */
|
/*check whether the preloaded value exceeds the limit */
|
||||||
size_t limit_x = cbx_unique_module_id_.size();
|
size_t limit_x = cbx_unique_module_id_.size();
|
||||||
size_t limit_y = cbx_unique_module_id_[0].size();
|
size_t limit_y = cbx_unique_module_id_[0].size();
|
||||||
|
@ -606,8 +606,8 @@ void DeviceRRGSB::preload_unique_cbx_module(
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceRRGSB::preload_unique_cby_module(
|
void DeviceRRGSB::preload_unique_cby_module(
|
||||||
const vtr::Point<size_t> block_coordinate,
|
const vtr::Point<size_t>& block_coordinate,
|
||||||
const std::vector<vtr::Point<size_t>> instance_coords) {
|
const std::vector<vtr::Point<size_t>>& instance_coords) {
|
||||||
/*check whether the preloaded value exceeds the limit */
|
/*check whether the preloaded value exceeds the limit */
|
||||||
size_t limit_x = cby_unique_module_id_.size();
|
size_t limit_x = cby_unique_module_id_.size();
|
||||||
size_t limit_y = cby_unique_module_id_[0].size();
|
size_t limit_y = cby_unique_module_id_[0].size();
|
||||||
|
@ -631,8 +631,8 @@ void DeviceRRGSB::preload_unique_cby_module(
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceRRGSB::preload_unique_sb_module(
|
void DeviceRRGSB::preload_unique_sb_module(
|
||||||
const vtr::Point<size_t> block_coordinate,
|
const vtr::Point<size_t>& block_coordinate,
|
||||||
const std::vector<vtr::Point<size_t>> instance_coords) {
|
const std::vector<vtr::Point<size_t>>& instance_coords) {
|
||||||
/*check whether the preloaded value exceeds the limit */
|
/*check whether the preloaded value exceeds the limit */
|
||||||
VTR_ASSERT(block_coordinate.x() < sb_unique_module_id_.size());
|
VTR_ASSERT(block_coordinate.x() < sb_unique_module_id_.size());
|
||||||
VTR_ASSERT(block_coordinate.y() < sb_unique_module_id_[0].size());
|
VTR_ASSERT(block_coordinate.y() < sb_unique_module_id_[0].size());
|
||||||
|
|
|
@ -101,14 +101,14 @@ class DeviceRRGSB {
|
||||||
of unique mirrors and rotatable mirrors */
|
of unique mirrors and rotatable mirrors */
|
||||||
void clear(); /* clean the content */
|
void clear(); /* clean the content */
|
||||||
void preload_unique_cbx_module(
|
void preload_unique_cbx_module(
|
||||||
const vtr::Point<size_t> block_coordinate,
|
const vtr::Point<size_t>& block_coordinate,
|
||||||
const std::vector<vtr::Point<size_t>> instance_coords);
|
const std::vector<vtr::Point<size_t>>& instance_coords);
|
||||||
void preload_unique_cby_module(
|
void preload_unique_cby_module(
|
||||||
const vtr::Point<size_t> block_coordinate,
|
const vtr::Point<size_t>& block_coordinate,
|
||||||
const std::vector<vtr::Point<size_t>> instance_coords);
|
const std::vector<vtr::Point<size_t>>& instance_coords);
|
||||||
void preload_unique_sb_module(
|
void preload_unique_sb_module(
|
||||||
const vtr::Point<size_t> block_coordinate,
|
const vtr::Point<size_t>& block_coordinate,
|
||||||
const std::vector<vtr::Point<size_t>> instance_coords);
|
const std::vector<vtr::Point<size_t>>& instance_coords);
|
||||||
void clear_unique_modules();
|
void clear_unique_modules();
|
||||||
void get_id_sb_instance_map(
|
void get_id_sb_instance_map(
|
||||||
std::map<int, std::vector<vtr::Point<size_t>>>& id_instance_map) const;
|
std::map<int, std::vector<vtr::Point<size_t>>>& id_instance_map) const;
|
||||||
|
|
Loading…
Reference in New Issue