Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «eoos::api::Queue<T>»

Queue interface.

public: virtual ~Queue();

Destructor.

public: virtual bool_t add(T const& element);

Inserts a new element to the end of this container.

Parameters:
element — An inserting element.

Returns:
True if element is added.

public: virtual T const& getIllegal();

Returns illegal element which will be returned as error value.

Returns:
Illegal element.

public: virtual size_t getLength();

Returns a number of elements in this container.

Returns:
Number of elements, or always 0 if an error occurred.

public: virtual bool_t isConstructed() const;

Tests if this object has been constructed.

Returns:
True if object has been constructed successfully.

public: virtual bool_t isEmpty();

Tests if this collection has elements.

Returns:
True if this collection does not contain any elements, or always true if an error occurred.

public: virtual bool_t isIllegal(T const& value) const;

Tests if given value is an illegal.

Parameters:
value — A testing value.

Returns:
True if value is an illegal.

public: virtual T& peek();

Examines the head element of this container.

Returns:
The head element.

public: virtual bool_t remove();

Removes the head element of this container.

Returns:
True if an element is removed successfully.

public: virtual void setIllegal(T const& value);

Sets illegal element which will be returned as error value.

Parameters:
value — An illegal value.

Back to class list