C# Класс CsQuery.Engine.DomIndexRanged

A DOM index that can return a range of values. The IDomIndexRange interface is known to the selection engine; when availabile it will be use to optimize subqueries.
Наследование: IDomIndex, IDomIndexSimple, IDomIndexRanged, IDomIndexQueue
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ProcessQueue void
QueueAddToIndex void
QueueRemoveFromIndex void
RangePath ushort[]
RangePath ushort[]
RangePath ushort[]

Открытые методы

Метод Описание
AddToIndex ( IDomIndexedNode element ) : void

Add an element to the index using the default keys for this element.

AddToIndex ( ushort key, IDomIndexedNode element ) : void

Adds an element to the index for the specified key.

Clear ( ) : void

Clears this object to its blank/initial state.

DomIndexRanged ( ) : System

Default constructor.

QueryIndex ( ushort key ) : IEnumerable

Query the document's index.

QueryIndex ( ushort subKey, int depth, bool includeDescendants ) : IEnumerable

Query the document's index for a subkey up to a specific depth, optionally including descendants that match the selector.

RemoveFromIndex ( IDomIndexedNode element ) : void

Remove an element from the index.

RemoveFromIndex ( ushort key, IDomIndexedNode element ) : void

Remove an element from the index using its key.

Приватные методы

Метод Описание
ProcessQueue ( ) : void
QueueAddToIndex ( ushort key, IDomIndexedNode element ) : void

Add an element to the index using a specified index key.

QueueRemoveFromIndex ( ushort key ) : void
RangePath ( ushort path ) : ushort[]

Return the default selection key

RangePath ( ushort key, IDomIndexedNode element ) : ushort[]

Convert a key/path combination to a path suitable for view selection.

RangePath ( ushort key, ushort path ) : ushort[]

Convert a key/path combination to a path suitable for view selection.

Описание методов

AddToIndex() публичный Метод

Add an element to the index using the default keys for this element.
public AddToIndex ( IDomIndexedNode element ) : void
element IDomIndexedNode /// The element to add ///
Результат void

AddToIndex() публичный Метод

Adds an element to the index for the specified key.
public AddToIndex ( ushort key, IDomIndexedNode element ) : void
key ushort /// The key to remove. ///
element IDomIndexedNode /// The element to add. ///
Результат void

Clear() публичный Метод

Clears this object to its blank/initial state.
public Clear ( ) : void
Результат void

DomIndexRanged() публичный Метод

Default constructor.
public DomIndexRanged ( ) : System
Результат System

QueryIndex() публичный Метод

Query the document's index.
public QueryIndex ( ushort key ) : IEnumerable
key ushort /// The key to seek. ///
Результат IEnumerable

QueryIndex() публичный Метод

Query the document's index for a subkey up to a specific depth, optionally including descendants that match the selector.
public QueryIndex ( ushort subKey, int depth, bool includeDescendants ) : IEnumerable
subKey ushort /// The key or subkey to match. If this is a partial key, all keys matching this part will be /// returned. ///
depth int /// The zero-based depth to which searches should be limited. ///
includeDescendants bool /// When true, descendants of matching keys will be returned ///
Результат IEnumerable

RemoveFromIndex() публичный Метод

Remove an element from the index.
public RemoveFromIndex ( IDomIndexedNode element ) : void
element IDomIndexedNode /// The element to remove ///
Результат void

RemoveFromIndex() публичный Метод

Remove an element from the index using its key.
public RemoveFromIndex ( ushort key, IDomIndexedNode element ) : void
key ushort /// The key to remove. ///
element IDomIndexedNode /// The element to remove; this is ignored fort IDomIndexRange because it is identified by the key. ///
Результат void