[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TNodePool

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Provides custom memory management when DOM Nodes are created.

Declaration

Source position: laz2_dom.pas line 831

type TNodePool = class(TObject)

public

  constructor Create();

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  function AllocNode();

  

Creates a new DOM node instance and stores it in the node pool.

  procedure FreeNode();

  

Frees the specified DOM node and removes it from the node pool.

end;

Inheritance

TNodePool

  

Provides custom memory management when DOM Nodes are created.

|

TObject

Description

TNodePool is a class used to provide custom memory management when DOM nodes are created in a DOM document. Each TNodePool instance manages objects with the same instance size (and may be a different class types). TDOMDocument provides an internal array of TNodePool instances that are maintained when DOM nodes are created in its Alloc method.

See also

TNodePoolArray

  

Specifies an array of TNodePool instances.

TDOMDocument.Alloc

  

Ensures the DOM node class type is allocated using the Node pool for the document.

TDOMNode

  

Implements the DOM Node interface.


Version 3.2 Generated 2024-02-25 Home