Exemple #1
0
 /// <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;
 }
Exemple #2
0
        /// <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));
 }
Exemple #5
0
 /// <summary>
 ///   Remove an inner element to this CppElement
 /// </summary>
 public void Remove(CppElement element)
 {
     element.Parent = null;
     GetSafeItems().Remove(element);
 }