Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Baigudin Software registers the copyright of its own operating system – Embedded Object Operating System

The Russian Federal Service for Intellectual Property (Rospatent) registers the copyright of Embedded Object Operating System – Baigudin Software’s own embedded object-oriented real-time operating system.

Abstract class «eoos::lib::AbstractBaseString<T,R,A>»

Abstract base string class.

public:


 virtual              ~AbstractBaseString();

 virtual bool_t        concatenate(api::String<T> const& string);

 bool_t                convert(I value, Number::Base base = Number::BASE_10);

 virtual bool_t        copy(api::String<T> const& string);

 virtual T const*      getChar() const;

 virtual size_t        getLength();

 virtual bool_t        isConstructed() const;

 static bool_t         isConstructed(api::Object* obj);

 virtual bool_t        isEmpty();

 virtual bool_t        isEqualTo(api::String<T> const& string) const;

 static void           operator delete(void* ptr);

 static void           operator delete(void*, void*);

 static void*          operator new(size_t size);

 static void*          operator new(size_t, void* ptr);

 inline bool_t         operator!=(api::String<T> const& source1, api::String<T> const& source2);

 inline bool_t         operator!=(api::String<T> const& source1, T const* source2);

 inline bool_t         operator!=(T const* source1, api::String<T> const& source2);

 AbstractBaseString&   operator+=(api::String<T> const& source);

 AbstractBaseString&   operator+=(T const* source);

 Object&               operator=(Object const& obj);

 Object&               operator=(Object&& obj) & noexcept;

 inline bool_t         operator==(api::String<T> const& source1, api::String<T> const& source2);

 inline bool_t         operator==(api::String<T> const& source1, T const* source2);

 inline bool_t         operator==(T const* source1, api::String<T> const& source2);


protected:


                       AbstractBaseString();

public: virtual ~AbstractBaseString();

Destructor.

public: virtual bool_t concatenate(api::String<T> const& string);

Concatenates a passed string to this string.

Parameters:
string — A string object interface to be appended.

Returns:
True if a passed string has been appended successfully.

public: bool_t convert(I value, Number::Base base = Number::BASE_10);

Converts an integer number to this string.

Parameters:
value — A value that would be converted to this string.
base — A numerical base used to represent a value as this string.

Returns:
True if the conversion has been completed successfully.

public: virtual bool_t copy(api::String<T> const& string);

Copies a passed string into this string.

Parameters:
string — A string object interface to be copied.

Returns:
True if a passed string has been copied successfully.

public: virtual T const* getChar() const;

Returns pointer to the first character of containing string.

Returns:
First character of containing string characters, or NULLPTR if an error occurred.

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: static bool_t isConstructed(api::Object* obj);

Tests if an object has been constructed.

Parameters:
obj — Object to be tested.

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 isEqualTo(api::String<T> const& string) const;

Compares this string with a passed string lexicographically.

Parameters:
string — A string object interface to be compared with.

Returns:
true if this string equals to a given string.

public: static void operator delete(void* ptr);

Operator delete.

Parameters:
ptr — An address of allocated memory block or a null pointer.

public: static void operator delete(void*, void*);

Operator delete.

public: static void* operator new(size_t size);

Operator new.

Parameters:
size — A number of bytes to allocate.

Returns:
Allocated memory address or a null pointer.

public: static void* operator new(size_t, void* ptr);

Operator new.

Parameters:
ptr — A pointer to reserved memory area.

Returns:
The given pointer.

public: inline bool_t operator!=(api::String<T> const& source1, api::String<T> const& source2);

Compares for inequality of two strings.

Parameters:
source1 — A source object interface 1.
source2 — A source object interface 2.

Returns:
True if strings are not equal.

public: inline bool_t operator!=(api::String<T> const& source1, T const* source2);

Compares for inequality of two strings.

Parameters:
source1 — A source object interface 1.
source2 — A source character string 2.

Returns:
True if strings are not equal.

public: inline bool_t operator!=(T const* source1, api::String<T> const& source2);

Compares for inequality of two strings.

Parameters:
source1 — A source character string 1.
source2 — A source object interface 2.

Returns:
True if strings are not equal.

public: AbstractBaseString& operator+=(api::String<T> const& source);

Assignment by sum operator.

Parameters:
source — A source object interface.

Returns:
Reference to this object.

public: AbstractBaseString& operator+=(T const* source);

Assignment by sum operator.

Parameters:
source — A source character string.

Returns:
Reference to this object.

public: Object& operator=(Object const& obj);

Copy assignment operator.

Parameters:
obj — Reference to a source object.

Returns:
Reference to this object.

public: Object& operator=(Object&& obj) & noexcept;

Move assignment operator.

Parameters:
obj — Right reference to a source object.

Returns:
Reference to this object.

public: inline bool_t operator==(api::String<T> const& source1, api::String<T> const& source2);

Compares for equality of two strings.

Parameters:
source1 — A source object interface 1.
source2 — A source object interface 2.

Returns:
True if strings are equal.

public: inline bool_t operator==(api::String<T> const& source1, T const* source2);

Compares for equality of two strings.

Parameters:
source1 — A source object interface 1.
source2 — A source character string 2.

Returns:
True if strings are equal.

public: inline bool_t operator==(T const* source1, api::String<T> const& source2);

Compares for equality of two strings.

Parameters:
source1 — A source character string 1.
source2 — A source object interface 2.

Returns:
True if strings are equal.

protected: AbstractBaseString();

Constructor.

Back to class list