Show / Hide Table of Contents

Class ErlTupleBase

Inheritance
System.Object
ErlTupleBase
ErlList
ErlTuple
Implements
IErlObject<System.Collections.Generic.List<IErlObject>>
IErlObject
System.IComparable
System.IComparable<IErlObject>
System.IEquatable<IErlObject>
System.ICloneable
System.Collections.Generic.IEnumerable<IErlObject>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Erlang
Assembly: NFX.Erlang.dll
Syntax
public abstract class ErlTupleBase : IErlObject<List<IErlObject>>, IErlObject, IComparable, IComparable<IErlObject>, IEquatable<IErlObject>, ICloneable, IEnumerable<IErlObject>, IEnumerable

Constructors

ErlTupleBase()

Declaration
protected ErlTupleBase()

ErlTupleBase(ErlTupleBase)

Declaration
public ErlTupleBase(ErlTupleBase term)
Parameters
Type Name Description
ErlTupleBase term

ErlTupleBase(IErlObject[], Boolean)

Create an Erlang string from the given string

Declaration
public ErlTupleBase(IErlObject[] items, bool clone = true)
Parameters
Type Name Description
IErlObject[] items
System.Boolean clone

ErlTupleBase(List<IErlObject>, Boolean)

Declaration
public ErlTupleBase(List<IErlObject> items, bool clone = true)
Parameters
Type Name Description
System.Collections.Generic.List<IErlObject> items
System.Boolean clone

ErlTupleBase(Object[])

Declaration
public ErlTupleBase(params object[] items)
Parameters
Type Name Description
System.Object[] items

Fields

m_Items

The index of this atom in the global atom table

Declaration
protected List<IErlObject> m_Items
Field Value
Type Description
System.Collections.Generic.List<IErlObject>

Properties

CloseBracket

Declaration
protected abstract char CloseBracket { get; }
Property Value
Type Description
System.Char

Count

Return number of elements in the container

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

IsScalar

Determines whether the underlying type is scalar or complex (i.e. tuple, list)

Declaration
public bool IsScalar { get; }
Property Value
Type Description
System.Boolean

Item[Int32]

Return index'th element from the container

Declaration
public IErlObject this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
IErlObject

OpenBracket

Declaration
protected abstract char OpenBracket { get; }
Property Value
Type Description
System.Char

TypeOrder

Declaration
public abstract ErlTypeOrder TypeOrder { get; }
Property Value
Type Description
ErlTypeOrder

Value

Get the list of Erlang terms contained in this object

Declaration
public List<IErlObject> Value { get; }
Property Value
Type Description
System.Collections.Generic.List<IErlObject>

ValueAsBool

Declaration
public virtual bool ValueAsBool { get; }
Property Value
Type Description
System.Boolean

ValueAsByteArray

Declaration
public virtual byte[] ValueAsByteArray { get; }
Property Value
Type Description
System.Byte[]

ValueAsChar

Declaration
public virtual char ValueAsChar { get; }
Property Value
Type Description
System.Char

ValueAsDateTime

Declaration
public virtual DateTime ValueAsDateTime { get; }
Property Value
Type Description
System.DateTime

ValueAsDecimal

Declaration
public virtual decimal ValueAsDecimal { get; }
Property Value
Type Description
System.Decimal

ValueAsDouble

Declaration
public virtual double ValueAsDouble { get; }
Property Value
Type Description
System.Double

ValueAsInt

Declaration
public virtual int ValueAsInt { get; }
Property Value
Type Description
System.Int32

ValueAsLong

Declaration
public virtual long ValueAsLong { get; }
Property Value
Type Description
System.Int64

ValueAsObject

Declaration
public virtual object ValueAsObject { get; }
Property Value
Type Description
System.Object

ValueAsString

Declaration
public virtual string ValueAsString { get; }
Property Value
Type Description
System.String

ValueAsTimeSpan

Declaration
public virtual TimeSpan ValueAsTimeSpan { get; }
Property Value
Type Description
System.TimeSpan

Methods

Add(IErlObject)

Add an item to a mutable list. This method must be used only during list construction phase, since it treats the list as a mutable entity

Declaration
public void Add(IErlObject term)
Parameters
Type Name Description
IErlObject term

Cast<T>(Int32)

Return index'th element cast to the given type

Declaration
public T Cast<T>(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
T
Type Parameters
Name Description
T

Clone()

Clone an instance of the object (non-scalar immutable objects are copied by reference)

Declaration
public IErlObject Clone()
Returns
Type Description
IErlObject

CompareTo(IErlObject)

Compare this instance to the IErlObject. Negative value means that the atom is less than obj, positive - greater than the obj

Declaration
public int CompareTo(IErlObject obj)
Parameters
Type Name Description
IErlObject obj
Returns
Type Description
System.Int32

CompareTo(Object)

Compare this instance to the object. Negative value means that the atom is less than obj, positive - greater than the obj

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Int32

Equals(IErlObject)

Determine if two Erlang objects are equal

Declaration
public abstract bool Equals(IErlObject o)
Parameters
Type Name Description
IErlObject o
Returns
Type Description
System.Boolean

Equals(Object)

Determine if this instance is equal to the object

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
System.Object o
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Get internal hash code

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MakeInstance()

Declaration
protected abstract ErlTupleBase MakeInstance()
Returns
Type Description
ErlTupleBase

Match(IErlObject)

Perform pattern match on this Erlang term returning null if match fails or a dictionary of matched variables bound in the pattern

Declaration
public ErlVarBind Match(IErlObject pattern)
Parameters
Type Name Description
IErlObject pattern
Returns
Type Description
ErlVarBind

Match(IErlObject, ErlVarBind)

Perform pattern match on this Erlang term, storing matched variables found in the pattern into the binding.

Declaration
public bool Match(IErlObject pattern, ErlVarBind binding)
Parameters
Type Name Description
IErlObject pattern
ErlVarBind binding
Returns
Type Description
System.Boolean

Matches(IErlObject)

Perform pattern match on this Erlang term without binding any variables

Declaration
public bool Matches(IErlObject pattern)
Parameters
Type Name Description
IErlObject pattern
Returns
Type Description
System.Boolean

Subst(ref IErlObject, ErlVarBind)

Declaration
public bool Subst(ref IErlObject term, ErlVarBind binding)
Parameters
Type Name Description
IErlObject term
ErlVarBind binding
Returns
Type Description
System.Boolean

ToString()

Get the string representation of the list.

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

ToString(Boolean)

Declaration
public string ToString(bool noBrakets)
Parameters
Type Name Description
System.Boolean noBrakets
Returns
Type Description
System.String

Visit<TAccumulate>(TAccumulate, Func<TAccumulate, IErlObject, TAccumulate>)

Execute fun for every nested term

Declaration
public TAccumulate Visit<TAccumulate>(TAccumulate acc, Func<TAccumulate, IErlObject, TAccumulate> fun)
Parameters
Type Name Description
TAccumulate acc
System.Func<TAccumulate, IErlObject, TAccumulate> fun
Returns
Type Description
TAccumulate
Type Parameters
Name Description
TAccumulate

Explicit Interface Implementations

IEnumerable<IErlObject>.GetEnumerator()

Declaration
IEnumerator<IErlObject> IEnumerable<IErlObject>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<IErlObject>

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

ICloneable.Clone()

Declaration
object ICloneable.Clone()
Returns
Type Description
System.Object

Implements

IErlObject<T>
IErlObject
System.IComparable
System.IComparable<T>
System.IEquatable<T>
System.ICloneable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

CollectionUtils.ForEach<T>(IEnumerable<T>, Action<T>)
CollectionUtils.ForEach<T>(IEnumerable<T>, Action<T, Int32>)
CollectionUtils.SkipLast<T>(IEnumerable<T>)
CollectionUtils.SkipLast<T>(IEnumerable<T>, Int32)
CollectionUtils.FirstMin<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>)
CollectionUtils.FirstMin<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>, out TComparand)
CollectionUtils.FirstMax<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>)
CollectionUtils.FirstMax<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>, out TComparand)
CollectionUtils.FirstOrAnyOrDefault<TResult>(IEnumerable<TResult>, Func<TResult, Boolean>)
CollectionUtils.Distinct<TResult, TKey>(IEnumerable<TResult>, Func<TResult, TKey>)
MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
LookAheadExtensions.AsLookAheadEnumerable<T>(IEnumerable<T>)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.IsNull(IErlObject)
ErlObject.IsInt(IErlObject)
ErlObject.Subst(IErlObject, ErlVarBind)
ErlObject.Visit<TAccumulate>(IErlObject, TAccumulate, Func<TAccumulate, IErlObject, TAccumulate>)
ErlObject.AsType(IErlObject, Type)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX