Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Collection<Type>»

The root interface of some collections.

public: virtual ~Collection();

Destructor.

public: virtual Type getIllegal() const;

Returns illegal element which will be returned as error value.

Returns:
illegal element.

public: virtual int32 getLength() const;

Returns a number of elements in this container.

Returns:
number of elements.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

public: virtual bool isEmpty() const;

Tests if this collection has elements.

Returns:
true if this collection does not contain any elements.

public: virtual bool isIllegal(const Type& value) const;

Tests if given value is an illegal.

Parameters:
value — testing value.

Returns:
true if value is an illegal.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

public: virtual void setIllegal(Type value);

Sets illegal element which will be returned as error value.

Parameters:
value — illegal value.

Back to class list