/// <summary> /// Copy constructor /// </summary> public CppElement(CppElement otherCppElement) { Name = otherCppElement.Name; Namespace = otherCppElement.Namespace; Id = otherCppElement.Namespace; Description = otherCppElement.Description; Remarks = otherCppElement.Remarks; Parent = otherCppElement.Parent; Items = otherCppElement.Items; }
/// <summary> /// Add an inner element to this CppElement /// </summary> public void Add(CppElement element) { if (element.Parent != null) { element.Parent.Remove(element); } element.Parent = this; GetSafeItems().Add(element); }
public bool AlreadyVisited(CppElement element) { return(!Visited.Add(element)); }
public virtual bool VisitCppElement(CppElement cppElement) { return(!AlreadyVisited(cppElement)); }
/// <summary> /// Remove an inner element to this CppElement /// </summary> public void Remove(CppElement element) { element.Parent = null; GetSafeItems().Remove(element); }