grid.hxx
Go to the documentation of this file.
1 /*===========================================================================================================
7 * Licensed under the MIT License, you may not use this file except in compliance with the License.
12 * Unless required by applicable law or agreed to in writing, software distributed under the License is
13 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and limitations under the License.
19 *=========================================================================================================*/
83 Edge(std::shared_ptr<Cell> first, std::shared_ptr<Cell> second) : first(first), second(second) {}
114 void Connect(const std::shared_ptr<Cell> root, const std::vector<std::shared_ptr<Cell>>& neighbours)
150 void DisconnectCol(const Point& origin, const uint32_t idx, const uint32_t height, const uint32_t pathIdx)
177 void DisconnectRow(const Point& origin, const uint32_t idx, const uint32_t width, const uint32_t pathIdx)
Definition: grid.hxx:65
void Disconnect(const std::shared_ptr< Cell > first, const std::shared_ptr< Cell > second)
Definition: grid.hxx:132
void DisconnectCol(const Point &origin, const uint32_t idx, const uint32_t height, const uint32_t pathIdx)
Definition: grid.hxx:150
Edge struct is a convenient struct use to store two cell pointers connected by a link/edge.
Definition: grid.hxx:81
std::set< std::weak_ptr< Cell >, std::owner_less< std::weak_ptr< Cell > > > connectedCells
Definition: grid.hxx:73
void Init(uint32_t width, uint32_t height, bool isConneccted)
Definition: grid.hxx:203
Definition: grid.hxx:44
Definition: combinations.hxx:26
Edge(std::shared_ptr< Cell > first, std::shared_ptr< Cell > second)
Definition: grid.hxx:83
void Connect(const std::shared_ptr< Cell > root, const std::vector< std::shared_ptr< Cell >> &neighbours)
Definition: grid.hxx:114
Definition: grid.hxx:32
void DisconnectRow(const Point &origin, const uint32_t idx, const uint32_t width, const uint32_t pathIdx)
Definition: grid.hxx:177
void Connect(const std::shared_ptr< Cell > first, const std::shared_ptr< Cell > second)
Definition: grid.hxx:102
Point struct is a convenient struct use to represent a 2D point for a grid (index position)...
Definition: grid.hxx:56