2using System.Collections.Generic;
15 private readonly List<IElement> elements =
new List<IElement>();
36 public object Tag {
get;
set; }
72 Result.elements.AddRange(Elements);
82 public virtual bool TryConvertTo(Type DesiredType, out
object Value)
89 public override bool Equals(
object obj)
92 this.elements.Count != Typed.elements.Count)
97 IEnumerator<IElement> e1 = this.elements.GetEnumerator();
98 IEnumerator<IElement> e2 = Typed.elements.GetEnumerator();
100 while (e1.MoveNext() && e2.MoveNext())
102 if (!e1.Current.Equals(e2.Current))
112 int Result = this.elements.Count.GetHashCode();
166 this.elements[Index] = Value;
Contains a vector of semantic elements.
object Tag
Property used by processor, to tag information to an element.
bool IsScalar
If the element represents a scalar value.
ICollection< IElement > VectorElements
An enumeration of vector elements.
bool IsLiteral
If element is a literal.
IElement Encapsulate(ICollection< IElement > Elements, ScriptNode Node)
Encapsulates a set of elements into a similar structure as that provided by the current element.
ISet AssociatedSet
Associated Set.
virtual int CompareTo(object obj)
Compares the current instance with another object of the same type and returns an integer that indica...
ICollection< IElement > ChildElements
An enumeration of child elements. If the element is a scalar, this property will return null.
virtual bool TryConvertTo(Type DesiredType, out object Value)
Converts the value to a .NET type.
void SetElement(int Index, IElement Value)
Sets an element in the vector.
override string ToString()
void Add(ISemanticElement Element)
Adds a semantic element to the vector.
int Dimension
Dimension of vector.
object AssociatedObjectValue
Associated object value.
IElement GetElement(int Index)
Gets an element of the vector.
SemanticElementVector()
Contains a vector of semantic elements.
override int GetHashCode()
override bool Equals(object obj)
Set of semantic elements.
static readonly SemanticElements Instance
Instance reference to the set of semantic elements.
Base class for all types of elements.
abstract override int GetHashCode()
Calculates a hash code of the element.
Class managing a script expression.
static string ToString(double Value)
Converts a value to a string, that can be parsed as part of an expression.
Base class for all nodes in a parsed script tree.
Interface for semantic nodes.
Basic interface for all types of elements.
Basic interface for vectors.
Basic interface for all types of sets.