示例#1
0
 virtual bool operator==(Structure const& rhs) const
 {
     return id_ == rhs.id();
 }
示例#2
0
文件: Surface.hpp 项目: kozo2/ecell4
 // virtual bool operator==(Structure<typename Ttraits_::world_type::traits_type> const& rhs) const
 virtual bool operator==(Structure<Ttraits_> const& rhs) const
 {
     BasicSurfaceImpl const* _rhs(dynamic_cast<BasicSurfaceImpl const*>(&rhs));
     return _rhs && base_type::id_ == rhs.id() && shape_ == _rhs->shape();
 }