Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Class «eoos::lib::Align<T,S,A>»

Alignment of fundamental types to byte boundary of memory.

MISRA C++ NOTE: Any signed underlying types shall not be used for not violating the 5-0-21 MISRA C++:2008 Rule.

public: Align();

Constructor.

public: Align(Align const& obj);

Copy constructor.

Parameters:
obj — A source object.

public: Align(T const& value);

Constructor.

Parameters:
value — A data value.

public: ~Align();

Destructor.

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: operator T() const;

Casts to the template data type.

Returns:
A data value.

public: inline bool_t operator!=(Align<T,S,A> const& obj1, Align<T,S,A> const& obj2);

Comparison operator to unequal.

Parameters:
obj1 — Reference to object.
obj2 — Reference to object.

Returns:
True if objects are not equal.

public: Align& operator++();

Pre-increment operator.

Parameters:
obj — A source object.

Returns:
Reference to this object.

public: Align operator++(int);

Post-increment operator.

Returns:
This object.

public: Align& operator--();

Pre-decrement operator.

Parameters:
obj — A source object.

Returns:
Reference to this object.

public: Align operator--(int);

Post-decrement operator.

Returns:
This object.

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

Assignment operator.

Parameters:
obj — A source object.

Returns:
Reference to this object.

public: Align& operator=(T const& value);

Assignment operator.

Parameters:
value — A source data value.

Returns:
Reference to this object.

public: inline bool_t operator==(Align<T,S,A> const& obj1, Align<T,S,A> const& obj2);

Comparison operator to equal.

Parameters:
obj1 — Reference to object.
obj2 — Reference to object.

Returns:
True if objects are equal.

Back to class list