Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Utils.StringIDList Class Reference

Ordered list of unique StringID. More...

Inheritance diagram for Dragengine.Utils.StringIDList:

Public Member Functions

void add (StringID id)
 Add ID to list.
void addAll (StringIDList list)
 Add all IDs to list.
void addAllIfAbsent (StringIDList list)
 Add all absent IDs to list .
void addIfAbsent (StringID id)
 Add ID to list if absent.
void forEach (Block ablock)
 Visit IDs with block with parameter StringID.
StringID getAt (int index)
 ID at index.
int getCount ()
 Number of IDs.
bool has (StringID id)
 ID is present.
bool hasAll (StringIDList list)
 All IDs are present.
bool hasAny (StringIDList list)
 One or more IDs are present.
bool hasNone (StringIDList list)
 All IDs are absent.
bool hasNot (StringIDList list)
 One or more IDs are absent.
StringIDList new ()
 Create list.
StringIDList new (StringIDList list)
 Create copy of list.
void remove (StringID id)
 Remove ID.
void removeAll ()
 Remove all IDs.
void removeAll (StringIDList list)
 Remove all IDs from list.
void removeAllIfPresent (StringIDList list)
 Remove present IDs from list.
void removeIfPresent (StringID id)
 Remove ID if present.

Detailed Description

Ordered list of unique StringID.

Member Function Documentation

◆ add()

void Dragengine.Utils.StringIDList.add ( StringID id)

Add ID to list.

Exceptions
EInvalidParamID is null.
EInvalidParamID is present.

References hasNot().

Referenced by removeIfPresent().

◆ addAll()

void Dragengine.Utils.StringIDList.addAll ( StringIDList list)

Add all IDs to list.

Exceptions
EInvalidParamOne or more IDs are present.

References hasNone().

Referenced by forEach().

◆ addAllIfAbsent()

void Dragengine.Utils.StringIDList.addAllIfAbsent ( StringIDList list)

Add all absent IDs to list .

Referenced by forEach().

◆ addIfAbsent()

void Dragengine.Utils.StringIDList.addIfAbsent ( StringID id)

Add ID to list if absent.

Exceptions
EInvalidParamID is null.

Referenced by removeAll().

◆ forEach()

void Dragengine.Utils.StringIDList.forEach ( Block ablock)

Visit IDs with block with parameter StringID.

References addAll(), addAllIfAbsent(), forEach(), hasAny(), hasNot(), removeAll(), removeAllIfPresent(), and removeIfPresent().

Referenced by forEach().

◆ getAt()

StringID Dragengine.Utils.StringIDList.getAt ( int index)

ID at index.

References getCount().

Referenced by has().

◆ getCount()

int Dragengine.Utils.StringIDList.getCount ( )

Number of IDs.

Referenced by getAt().

◆ has()

bool Dragengine.Utils.StringIDList.has ( StringID id)

ID is present.

References getAt().

Referenced by hasAny().

◆ hasAll()

bool Dragengine.Utils.StringIDList.hasAll ( StringIDList list)

All IDs are present.

If list is empty returns true.

References hasAny().

Referenced by hasNone().

◆ hasAny()

bool Dragengine.Utils.StringIDList.hasAny ( StringIDList list)

One or more IDs are present.

If list is empty returns false.

References has().

Referenced by forEach(), and hasAll().

◆ hasNone()

bool Dragengine.Utils.StringIDList.hasNone ( StringIDList list)

All IDs are absent.

If list is empty returns true.

References hasAll().

Referenced by addAll().

◆ hasNot()

bool Dragengine.Utils.StringIDList.hasNot ( StringIDList list)

One or more IDs are absent.

If list is empty returns false.

Referenced by add(), and forEach().

◆ new() [1/2]

StringIDList Dragengine.Utils.StringIDList.new ( )

Create list.

References new().

Referenced by new().

◆ new() [2/2]

StringIDList Dragengine.Utils.StringIDList.new ( StringIDList list)

Create copy of list.

◆ remove()

void Dragengine.Utils.StringIDList.remove ( StringID id)

Remove ID.

Exceptions
EInvalidParamID is absent.

◆ removeAll() [1/2]

void Dragengine.Utils.StringIDList.removeAll ( )

Remove all IDs.

Referenced by forEach().

◆ removeAll() [2/2]

void Dragengine.Utils.StringIDList.removeAll ( StringIDList list)

Remove all IDs from list.

Exceptions
EInvalidParamOne or more IDs are absent.

References addIfAbsent().

◆ removeAllIfPresent()

void Dragengine.Utils.StringIDList.removeAllIfPresent ( StringIDList list)

Remove present IDs from list.

Referenced by forEach().

◆ removeIfPresent()

void Dragengine.Utils.StringIDList.removeIfPresent ( StringID id)

Remove ID if present.

References add().

Referenced by forEach().


The documentation for this class was generated from the following file: