Click or drag to resize
HierarchicalAttributeTable Class
Table that allows storing and looking up attributes and their respective values. Provides a collection of parents that are referred to if a key can not be found in this table.
Inheritance Hierarchy
SystemObject
  Slash.Collections.AttributeTablesHierarchicalAttributeTable

Namespace: Slash.Collections.AttributeTables
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public class HierarchicalAttributeTable : IAttributeTable, 
	IEnumerable

The HierarchicalAttributeTable type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Returns the number of attributes in the attribute table.
Public propertyItem
Gets or sets the attribute with the specified key. If the key is looked up and can't be found, the parents of this are checked, in order. If no attribute is found when it should be returned, an exception is thrown.
Top
Methods
  NameDescription
Public methodAdd
Maps the passed key to the specified value in this attribute table, if it hasn't already been mapped before.
Public methodAddParent
Adds the passed attribute table as parent to this one.
Public methodAddRange
Adds all content of the passed attribute table to this one.
Public methodAddValue
Maps the passed key to the specified value in this attribute table, if it hasn't already been mapped before.
Public methodClearParents
Removes all parents of this attribute table.
Public methodContains
Returns true if the passed key is mapped within this attribute table, and false otherwise. If the key is looked up and can't be found, the parents of this are checked, in order.
Public methodGetEnumerator
Gets an enumerator over all attributes of this table and its children.
Public methodGetValue
Returns the attribute with the specified key. If the key is looked up and can't be found, the parents of this are checked, in order. If no attribute is found, an exception is thrown.
Public methodHasParent
Checks whether the passed attribute table is a parent of this one.
Public methodInsertParent
Inserts the passed attribute table as parent to be consulted with the specified priority if a key can't be found in this one.
Public methodRemoveParent
Removes the passed parent from this attribute table.
Public methodRemoveValue
Removes the passed key from this attribute table. Note that the value is not removed from any parent tables.
Public methodSetValue
Maps the passed key to the specified value in this attribute table, if it has already been mapped before.
Public methodTryGetValue
Tries to retrieve the value the passed key is mapped to within this attribute table. If the key can't be found, the parents of this table are checked, in order.
Top
Extension Methods
  NameDescription
Public Extension MethodGetBoolOrDefault
Tries to get the boolean value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetEnumOrDefault
Tries to get the enum value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetFloatOrDefault
Tries to get the float value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetIntOrDefault
Tries to get the int value with the specified key from the attribute table, and returns the passed default value if the key could not be found.
(Defined by AttributeTableExtensions.)
Public Extension MethodGetValueOrDefaultT
Tries to get the value of the attribute with the specified key. If not found, the specified default value is returned.
(Defined by AttributeTableExtensions.)
Public Extension MethodIsNullOrEmpty
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodTryGetBool
Tries to get an boolean value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetFloat
Tries to get a float value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetInt
Tries to get an int value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetValue(Object, Type, Object)Overloaded.
Tries to retrieve the value the passed key is mapped to within this attribute table and expects the specified type.
(Defined by AttributeTableExtensions.)
Public Extension MethodTryGetValueT(Object, T)Overloaded.
Tries to retrieve the value the specified key is mapped to within this attribute table. Additionally checks that the type of the value is correct. Only classes are allowed as the method wouldn't be AOT compatible otherwise.
(Defined by AttributeTableExtensions.)
Top
See Also