コード例 #1
0
ファイル: IIdentity.cs プロジェクト: diclogic/cocktailvm
		private ITCIdentity(itc.Identity impl)
		{
			m_impl = impl;
			m_causalParent = this;
		}
コード例 #2
0
ファイル: IIdentity.cs プロジェクト: diclogic/cocktailvm
 internal ITCIdentity(itc.Identity impl, ITCIdentity causalParent)
 {
     m_impl = impl;
     m_causalParent = causalParent;
 }
コード例 #3
0
ファイル: IIdentity.cs プロジェクト: diclogic/cocktailvm
		private static void RecursiveDebugString(StringBuilder sb, itc.Identity id, int depth, int maxDepth)
		{
			if (id.IsSimplex())
			{
				for (int ii = 0; ii < (1 << (maxDepth - depth)); ++ii )
					sb.AppendFormat("{0}|", (id.IsOne() ? 1 : 0));
			}
			else
			{
				RecursiveDebugString(sb, id.Left, depth + 1, maxDepth);
				RecursiveDebugString(sb, id.Right, depth + 1, maxDepth);
			}
		}