Add

Graphics32

TPointerMap.Add

function Add(NewItem: PItem): PPData; overload;

function Add(NewItem: PItem; out IsNew: Boolean): PPData; overload;

function Add(NewItem: PItem; NewData: PData): PPData; overload;

function Add(NewItem: PItem; NewData: PData; out IsNew: Boolean): PPData; overload;

Description

Adds a new item to the pointer map. The function method will return a pointer to the data PPData.

NewItem specifies the pointer of the new item;

NewData specified the pointer of the data associated with the new item;

IsNew returns whether the item was added to the list or if an existing copy was modified.