Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Value<Type>»

Interface of setting and getting a value.

public: virtual ~Value();

Destructor.

public: virtual Type getIllegal() const;

Returns illegal element which will be returned as error value.

Returns:
illegal element.

public: virtual Type getValue() const;

Returns set value.

Returns:
the set value.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

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.

public: virtual void setValue(Type value);

Sets a value.

Parameters:
value — a value for setting.

Back to class list