![]() | HierarchicalAttributeTable Class |
Namespace: Slash.Collections.AttributeTables
The HierarchicalAttributeTable type exposes the following members.
Name | Description | |
---|---|---|
![]() | HierarchicalAttributeTable |
Constructs a new, empty attribute table without any parents.
|
![]() | HierarchicalAttributeTable(IAttributeTable) |
Constructs a new, empty attribute table with the specified parents.
|
Name | Description | |
---|---|---|
![]() | Count |
Returns the number of attributes in the attribute table.
|
![]() | Item |
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.
|
Name | Description | |
---|---|---|
![]() | Add |
Maps the passed key to the specified value in this attribute table,
if it hasn't already been mapped before.
|
![]() | AddParent |
Adds the passed attribute table as parent to this one.
|
![]() | AddRange |
Adds all content of the passed attribute table to this one.
|
![]() | AddValue |
Maps the passed key to the specified value in this attribute table,
if it hasn't already been mapped before.
|
![]() | ClearParents |
Removes all parents of this attribute table.
|
![]() | Contains |
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.
|
![]() | GetEnumerator |
Gets an enumerator over all attributes of this table and its children.
|
![]() | GetValue |
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.
|
![]() | HasParent |
Checks whether the passed attribute table is a parent of this one.
|
![]() | InsertParent |
Inserts the passed attribute table as parent to be consulted with
the specified priority if a key can't be found in this one.
|
![]() | RemoveParent |
Removes the passed parent from this attribute table.
|
![]() | RemoveValue |
Removes the passed key from this attribute table. Note that the value is not removed from any parent tables.
|
![]() | SetValue |
Maps the passed key to the specified value in this attribute table,
if it has already been mapped before.
|
![]() | TryGetValue |
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.
|
Name | Description | |
---|---|---|
![]() | GetBoolOrDefault |
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.) |
![]() | GetEnumOrDefault |
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.) |
![]() | GetFloatOrDefault |
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.) |
![]() | GetIntOrDefault |
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.) |
![]() | GetValueOrDefaultT |
Tries to get the value of the attribute with the specified key. If not found,
the specified default value is returned.
(Defined by AttributeTableExtensions.) |
![]() | IsNullOrEmpty |
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.) |
![]() | TryGetBool |
Tries to get an boolean value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.) |
![]() | TryGetFloat |
Tries to get a float value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.) |
![]() | TryGetInt |
Tries to get an int value from the specified attribute table with the specified key.
(Defined by AttributeTableExtensions.) |
![]() | TryGetValue(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.) |
![]() | TryGetValueT(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.) |