/// <summary>
 /// Create a child node with a given name and parent node.
 /// </summary>
 public Node(string name, Node parentNode)
 {
     AssertIsValidName(name);
     Debug.Assert(parentNode != null);
     this.name       = name;
     this.parentNode = parentNode;
     this.value      = new AcpiObject.AcpiObjectCell(new AcpiObject.UninitializedObject());
     parentNode.AddChild(this);
 }
Exemple #2
0
 public ObjectReference(AcpiObjectCell target)
 {
     this.target = target;
 }
 /// <summary>
 /// Makes this node refer to the same value as the given node.
 /// </summary>
 /// <remarks>Aliased names refer to not only the same object but
 /// the same object location (cell). Any updates to either node
 /// immediately appear in the other.</remarks>
 public void AliasTo(Node n)
 {
     this.value = n.value;
 }
 /// <summary>
 /// Create a root node.
 /// </summary>
 public Node()
 {
     this.name       = "";
     this.parentNode = null;
     this.value      = new AcpiObject.AcpiObjectCell(new AcpiObject.UninitializedObject());
 }