Пример #1
0
 /// <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);
 }
Пример #2
0
 public ObjectReference(AcpiObjectCell target)
 {
     this.target = target;
 }
Пример #3
0
 /// <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;
 }
Пример #4
0
 /// <summary>
 /// Create a root node.
 /// </summary>
 public Node()
 {
     this.name       = "";
     this.parentNode = null;
     this.value      = new AcpiObject.AcpiObjectCell(new AcpiObject.UninitializedObject());
 }