CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
cla3p::Meta1D< T_Int > Class Template Reference

One-dimensional metadata container. More...

Public Member Functions

T_Int size () const
 Vector size.
bool empty () const
 Tests whether the object has zero dimension.
 operator bool () const
 Boolean conversion operator.

Detailed Description

template<typename T_Int>
class cla3p::Meta1D< T_Int >

One-dimensional metadata container.

Template Parameters
T_IntInteger type for storing the dimension value.

Provides storage and accessors for vector size. This class serves as a base for dimension metadata in dense vector structures.

Member Function Documentation

◆ size()

template<typename T_Int>
T_Int cla3p::Meta1D< T_Int >::size ( ) const
inline

Vector size.

Returns the number of entries stored in (*this).

Returns
The size dimension.

◆ empty()

template<typename T_Int>
bool cla3p::Meta1D< T_Int >::empty ( ) const
inline

Tests whether the object has zero dimension.

Returns true if the size is zero.

Returns
true if the object is empty, false otherwise.

◆ operator bool()

template<typename T_Int>
cla3p::Meta1D< T_Int >::operator bool ( ) const
inlineexplicit

Boolean conversion operator.

Enables implicit conversion to bool; returns true if object has non-zero dimension.

Returns
true if the object is not empty, false otherwise.