C# Class Den.Tools.ArrayTools

Exibir arquivo Open project: galqawala/Senganget Class Usage Examples

Public Methods

Method Description
Add ( Array array, element ) : T[]
Add ( Array &array, element ) : void
AddLayer ( T[,,] array, T[,,] otherArray, int channel ) : T[,,]
AddLayer ( T[,,] &array, T[,,] otherArray, int channel ) : void
AddRange ( Array array, Array other ) : T[]
AddRange ( Array &array, Array other ) : void
Any ( Array array ) : T
Append ( Array array, Array additional ) : T[]
Append ( Array &array, Array additional ) : void
CheckAdd ( Array array, element ) : T[]
CheckAdd ( Array &array, element ) : void
Contains ( Array array, obj ) : bool
Convert ( Array src ) : T[]
CopyLayer ( T[,,] src, T[,,] dst, int srcNum, int dstNum ) : void
Equals ( Array a1, Array a2 ) : bool
EqualsEquatable ( Array a1, Array a2 ) : bool
EqualsVector3 ( Array a1, Array a2, float delta = float.Epsilon ) : bool
FillNulls ( Array arr, Func func ) : void
Find ( Array array, obj ) : int
Find ( Array array, Predicate func ) : int
FindAllIndexes ( Array array, Func func ) : List
FindCount ( Array array, obj ) : int
FindMember ( Array array, Func func ) : T
FindMemberOfType ( Array array ) : TT
Insert ( Array array, int pos, element ) : T[]
Insert ( Array &array, int pos, element ) : void
Insert ( Array &array, int pos, Func createElement = null ) : void
InsertRange ( Array array, int after, Array add ) : T[]
IsEmpty ( Array array ) : bool
MatchElements ( Array arr1, Array arr2 ) : bool
MatchExactly ( Array arr1, Array arr2 ) : bool
Move ( Array array, int src, int dst ) : void
Order ( Array array, Array order = null, int max, int steps = 1000000, Array stepsArray = null ) : int[]
Process ( Array arr, Func func ) : T[]
QSort ( Array array ) : void
QSort ( Array array, int l, int r ) : void
QSort ( Array array, Array reference ) : void
QSort ( Array array, Array reference, int l, int r ) : void
QSort ( List list, Array reference ) : void
QSort ( List list, Array reference, int l, int r ) : void
Remove ( Array array, obj ) : T[]
Remove ( Array &array, obj ) : void
RemoveAll ( Array array, obj ) : T[]
RemoveAll ( Array &array, obj ) : void
RemoveAllFunc ( Array array, Func func ) : T[]
RemoveAllFunc ( Array &array, Func func ) : void
RemoveAt ( Array array, int num ) : T[]
RemoveAt ( Array &array, int num ) : void
Resize ( Array array, int newSize, def ) : T[]
Resize ( Array array, int newSize, Func createElement = null ) : T[]
Resize ( Array &array, int newSize, def ) : void
Resize ( Array &array, int newSize, Func createElement = null ) : void
ResizeLayers ( T[,,] array, int newSize, def ) : T[,,]
ResizeLayers ( T[,,] &array, int newSize, def ) : void
Rewrite ( List src, Array &dst, Func fn ) : void
Rewrite ( List src, Array &dst ) : void
Select ( Array src, Func fn ) : TDst[]
Switch ( Array array, obj1, obj2 ) : void
Switch ( Array array, int num1, int num2 ) : void
ToStringMemberwise ( Array array, string separator = ", " ) : string
Truncated ( Array src, int length ) : T[]

Method Details

Add() static public method

static public Add ( Array array, element ) : T[]
array Array
return T[]

Add() static public method

static public Add ( Array &array, element ) : void
array Array
return void

AddLayer() static public method

static public AddLayer ( T[,,] array, T[,,] otherArray, int channel ) : T[,,]
array T[,,]
otherArray T[,,]
channel int
return T[,,]

AddLayer() static public method

static public AddLayer ( T[,,] &array, T[,,] otherArray, int channel ) : void
array T[,,]
otherArray T[,,]
channel int
return void

AddRange() static public method

static public AddRange ( Array array, Array other ) : T[]
array Array
other Array
return T[]

AddRange() static public method

static public AddRange ( Array &array, Array other ) : void
array Array
other Array
return void

Any() static public method

static public Any ( Array array ) : T
array Array
return T

Append() static public method

static public Append ( Array array, Array additional ) : T[]
array Array
additional Array
return T[]

Append() static public method

static public Append ( Array &array, Array additional ) : void
array Array
additional Array
return void

CheckAdd() static public method

static public CheckAdd ( Array array, element ) : T[]
array Array
return T[]

CheckAdd() static public method

static public CheckAdd ( Array &array, element ) : void
array Array
return void

Contains() static public method

static public Contains ( Array array, obj ) : bool
array Array
return bool

Convert() static public method

static public Convert ( Array src ) : T[]
src Array
return T[]

CopyLayer() static public method

static public CopyLayer ( T[,,] src, T[,,] dst, int srcNum, int dstNum ) : void
src T[,,]
dst T[,,]
srcNum int
dstNum int
return void

Equals() public static method

public static Equals ( Array a1, Array a2 ) : bool
a1 Array
a2 Array
return bool

EqualsEquatable() public static method

public static EqualsEquatable ( Array a1, Array a2 ) : bool
a1 Array
a2 Array
return bool

EqualsVector3() public static method

public static EqualsVector3 ( Array a1, Array a2, float delta = float.Epsilon ) : bool
a1 Array
a2 Array
delta float
return bool

FillNulls() static public method

static public FillNulls ( Array arr, Func func ) : void
arr Array
func Func
return void

Find() static public method

static public Find ( Array array, obj ) : int
array Array
return int

Find() static public method

static public Find ( Array array, Predicate func ) : int
array Array
func Predicate
return int

FindAllIndexes() public static method

public static FindAllIndexes ( Array array, Func func ) : List
array Array
func Func
return List

FindCount() public static method

public static FindCount ( Array array, obj ) : int
array Array
return int

FindMember() static public method

static public FindMember ( Array array, Func func ) : T
array Array
func Func
return T

FindMemberOfType() public static method

public static FindMemberOfType ( Array array ) : TT
array Array
return TT

Insert() static public method

static public Insert ( Array array, int pos, element ) : T[]
array Array
pos int
return T[]

Insert() static public method

static public Insert ( Array &array, int pos, element ) : void
array Array
pos int
return void

Insert() static public method

static public Insert ( Array &array, int pos, Func createElement = null ) : void
array Array
pos int
createElement Func
return void

InsertRange() static public method

static public InsertRange ( Array array, int after, Array add ) : T[]
array Array
after int
add Array
return T[]

IsEmpty() static public method

static public IsEmpty ( Array array ) : bool
array Array
return bool

MatchElements() static public method

static public MatchElements ( Array arr1, Array arr2 ) : bool
arr1 Array
arr2 Array
return bool

MatchExactly() static public method

static public MatchExactly ( Array arr1, Array arr2 ) : bool
arr1 Array
arr2 Array
return bool

Move() static public method

static public Move ( Array array, int src, int dst ) : void
array Array
src int
dst int
return void

Order() static public method

static public Order ( Array array, Array order = null, int max, int steps = 1000000, Array stepsArray = null ) : int[]
array Array
order Array
max int
steps int
stepsArray Array
return int[]

Process() static public method

static public Process ( Array arr, Func func ) : T[]
arr Array
func Func
return T[]

QSort() static public method

static public QSort ( Array array ) : void
array Array
return void

QSort() static public method

static public QSort ( Array array, int l, int r ) : void
array Array
l int
r int
return void

QSort() static public method

static public QSort ( Array array, Array reference ) : void
array Array
reference Array
return void

QSort() static public method

static public QSort ( Array array, Array reference, int l, int r ) : void
array Array
reference Array
l int
r int
return void

QSort() static public method

static public QSort ( List list, Array reference ) : void
list List
reference Array
return void

QSort() static public method

static public QSort ( List list, Array reference, int l, int r ) : void
list List
reference Array
l int
r int
return void

Remove() static public method

static public Remove ( Array array, obj ) : T[]
array Array
return T[]

Remove() static public method

static public Remove ( Array &array, obj ) : void
array Array
return void

RemoveAll() static public method

static public RemoveAll ( Array array, obj ) : T[]
array Array
return T[]

RemoveAll() static public method

static public RemoveAll ( Array &array, obj ) : void
array Array
return void

RemoveAllFunc() static public method

static public RemoveAllFunc ( Array array, Func func ) : T[]
array Array
func Func
return T[]

RemoveAllFunc() static public method

static public RemoveAllFunc ( Array &array, Func func ) : void
array Array
func Func
return void

RemoveAt() static public method

static public RemoveAt ( Array array, int num ) : T[]
array Array
num int
return T[]

RemoveAt() static public method

static public RemoveAt ( Array &array, int num ) : void
array Array
num int
return void

Resize() static public method

static public Resize ( Array array, int newSize, def ) : T[]
array Array
newSize int
return T[]

Resize() static public method

static public Resize ( Array array, int newSize, Func createElement = null ) : T[]
array Array
newSize int
createElement Func
return T[]

Resize() static public method

static public Resize ( Array &array, int newSize, def ) : void
array Array
newSize int
return void

Resize() static public method

static public Resize ( Array &array, int newSize, Func createElement = null ) : void
array Array
newSize int
createElement Func
return void

ResizeLayers() static public method

static public ResizeLayers ( T[,,] array, int newSize, def ) : T[,,]
array T[,,]
newSize int
return T[,,]

ResizeLayers() static public method

static public ResizeLayers ( T[,,] &array, int newSize, def ) : void
array T[,,]
newSize int
return void

Rewrite() static public method

static public Rewrite ( List src, Array &dst, Func fn ) : void
src List
dst Array
fn Func
return void

Rewrite() static public method

static public Rewrite ( List src, Array &dst ) : void
src List
dst Array
return void

Select() static public method

static public Select ( Array src, Func fn ) : TDst[]
src Array
fn Func
return TDst[]

Switch() static public method

static public Switch ( Array array, obj1, obj2 ) : void
array Array
return void

Switch() static public method

static public Switch ( Array array, int num1, int num2 ) : void
array Array
num1 int
num2 int
return void

ToStringMemberwise() static public method

static public ToStringMemberwise ( Array array, string separator = ", " ) : string
array Array
separator string
return string

Truncated() static public method

static public Truncated ( Array src, int length ) : T[]
src Array
length int
return T[]