コード例 #1
0
 // 共用的訪問者界面
 public void RunVisitor(IShapeVisitor theVisitor)
 {
     foreach (IShape theShape in m_Shapes)
     {
         theShape.RunVisitor(theVisitor);
     }
 }
コード例 #2
0
 public override void RunVisitor(IShapeVisitor theVisitor)
 {
     theVisitor.VisitCube(this);
 }
コード例 #3
0
 public override void RunVisitor(IShapeVisitor theVisitor)
 {
     theVisitor.VisitCylinder(this);
 }
コード例 #4
0
 public abstract int             GetVectorCount(); // 取得頂點數
 public abstract void    RunVisitor(IShapeVisitor theVisitor);
コード例 #5
0
		// 共用的訪問者界面
		public void RunVisitor(IShapeVisitor theVisitor)
		{
			foreach(IShape theShape in m_Shapes)
				theShape.RunVisitor( theVisitor );
		}
コード例 #6
0
		public override void RunVisitor(IShapeVisitor theVisitor)
		{
			theVisitor.VisitCylinder(this);
		}
コード例 #7
0
		public override void RunVisitor(IShapeVisitor theVisitor)
		{
			theVisitor.VisitCube(this);
		}
コード例 #8
0
		public abstract int		GetVectorCount(); // 取得頂點數
		public abstract void 	RunVisitor(IShapeVisitor theVisitor);