Baigudin Software avatar
EOOS Systems logo
home
ru region
en region

Class «eoos::lib::LinkedNode<T,A>»

Element for linked lists.

public: LinkedNode(T const& element);

Constructor.

Parameters:
element — An user element of this node.

public: virtual ~LinkedNode();

Destructor.

public: T& getElement();

Returns the element.

Returns:
The next element.

public: T const& getElement() const;

Returns the element.

Returns:
The next element.

public: int32_t getIndex() const;

Returns the element index.

Returns:
An element index.

public: LinkedNode<T,A>* getNext();

Returns next element.

Returns:
The next element.

public: LinkedNode<T,A> const* getNext() const;

Returns next element.

Returns:
The next element.

public: LinkedNode<T,A>* getPrevious();

Returns previous element.

Returns:
Previous element.

public: LinkedNode<T,A> const* getPrevious() const;

Returns previous element.

Returns:
Previous element.

public: void insertAfter(LinkedNode<T,A>* node);

Inserts a new element after this.

Function links a node after this and reindexes chain of nodes starts from given node.

Parameters:
node — Pointer to inserted node.

public: void insertBefore(LinkedNode<T,A>* node);

Inserts a new element before this.

Function links a node before this and reindexes chain of nodes starts from this node.

Parameters:
node — Pointer to inserted node.

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: 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: 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.

Back to class list