Energy Core Library
Energy.Interface.IQueue< T > Interface Template Reference

Interface for escaping texts with quotes or surrounded in any way. More...

Inheritance diagram for Energy.Interface.IQueue< T >:
Energy.Base.Queue< T >

Public Member Functions

bool Push (T item)
 Put element at the end of queue. More...
 
bool Push (T[] array)
 Put array of elements at the end of queue. More...
 
Pull ()
 Take element from queue, remove it from queue, and finally return. More...
 
T [] Pull (int count)
 Take number of elements from queue, remove them and return array of elements taken. Take(0) will return all elements from queue and empty it. More...
 
void Back (T item)
 Put element back to queue. This element will be taken first. More...
 
void Back (T[] list)
 Put array of elements back to queue. These elements will be taken first. More...
 
Chop ()
 Delete last element from queue and return it. More...
 
T [] Chop (int count)
 Delete number of last elements from queue and return them. More...
 

Detailed Description

Interface for escaping texts with quotes or surrounded in any way.

Member Function Documentation

◆ Back() [1/2]

void Energy.Interface.IQueue< T >.Back ( item)

Put element back to queue. This element will be taken first.

Parameters
itemElement

Implemented in Energy.Base.Queue< T >.

◆ Back() [2/2]

void Energy.Interface.IQueue< T >.Back ( T []  list)

Put array of elements back to queue. These elements will be taken first.

Parameters
listArray of elements

Implemented in Energy.Base.Queue< T >.

◆ Chop() [1/2]

T Energy.Interface.IQueue< T >.Chop ( )

Delete last element from queue and return it.

Returns
Element or default if queue was empty

Implemented in Energy.Base.Queue< T >.

◆ Chop() [2/2]

T [] Energy.Interface.IQueue< T >.Chop ( int  count)

Delete number of last elements from queue and return them.

Parameters
countNumber of elements
Returns
Array of elements

Implemented in Energy.Base.Queue< T >.

◆ Pull() [1/2]

T Energy.Interface.IQueue< T >.Pull ( )

Take element from queue, remove it from queue, and finally return.

Returns
Element

Implemented in Energy.Base.Queue< T >.

◆ Pull() [2/2]

T [] Energy.Interface.IQueue< T >.Pull ( int  count)

Take number of elements from queue, remove them and return array of elements taken. Take(0) will return all elements from queue and empty it.

Parameters
countNumber of elements
Returns
Array of elements

Implemented in Energy.Base.Queue< T >.

◆ Push() [1/2]

bool Energy.Interface.IQueue< T >.Push ( item)

Put element at the end of queue.

Parameters
itemElement
Returns
Success

Implemented in Energy.Base.Queue< T >.

◆ Push() [2/2]

bool Energy.Interface.IQueue< T >.Push ( T []  array)

Put array of elements at the end of queue.

Parameters
array
Returns
Success

Implemented in Energy.Base.Queue< T >.


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