Struct star::MetadataValue¶
ClassList > star > MetadataValue
Type-erased wrapper for metadata values. More...
#include <stards.h>
Public Attributes¶
| Type | Name |
|---|---|
| ValueVariant | data |
| DataType | dtype |
| std::vector< size_t > | shape |
Public Functions¶
| Type | Name |
|---|---|
| NDArray< T > | as () const |
| bool | is_array () const |
| bool | is_scalar () const |
| size_t | ndim () const |
| size_t | size () const |
| std::shared_ptr< NDArray< T > > | try_as () const |
| std::string | type_name () const |
Detailed Description¶
Provides type introspection and safe casting for metadata retrieved without knowing the type ahead of time. Eliminates the need for type guessing loops.
Public Attributes Documentation¶
variable data¶
variable dtype¶
variable shape¶
Public Functions Documentation¶
function as¶
function is_array¶
function is_scalar¶
function ndim¶
function size¶
function try_as¶
function type_name¶
The documentation for this class was generated from the following file StarDS/include/stards.h