Program Listing for File cell2D_empty.hpp
↰ Return to documentation for file (cosm/ds/operations/cell2D_empty.hpp
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include "rcppsw/er/client.hpp"
#include "rcppsw/math/vector2.hpp"
#include "cosm/ds/operations/cell2D_op.hpp"
/*******************************************************************************
* Namespaces
******************************************************************************/
namespace cosm::arena::ds {
class arena_grid;
} // namespace cosm::ds
namespace cosm::ds::operations {
/*******************************************************************************
* Class Definitions
******************************************************************************/
class cell2D_empty : public cell2D_op, public rer::client<cell2D_empty> {
private:
struct visit_typelist_impl {
using inherited = cell2D_op::visit_typelist;
using others = rmpl::typelist<cads::arena_grid>;
using value = boost::mpl::joint_view<inherited::type, others::type>;
};
public:
using visit_typelist = visit_typelist_impl::value;
explicit cell2D_empty(const rmath::vector2z& coord)
: cell2D_op(coord), ER_CLIENT_INIT("cosm.ds.operations.cell2D_empty") {}
void visit(ds::cell2D& cell);
void visit(fsm::cell2D_fsm& fsm);
void visit(cads::arena_grid& grid);
};
using cell2D_empty_visitor = rpvisitor::filtered_visitor<cell2D_empty>;
} /* namespace cosm::ds::operations */