Covalent Bond  0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
Public Member Functions | Public Attributes | List of all members
cbShape< Dims > Struct Template Reference

#include <cbTable.hpp>

Public Member Functions

 cbShape ()=default
 
 cbShape (const cbShape< Dims > &rhs)
 
 cbShape (const std::initializer_list< int32_t > &rhs)
 
int32_t & operator[] (int32_t idx)
 
const int32_t operator[] (int32_t idx) const
 
int32_t numElements ()
 

Public Attributes

int32_t m_stride
 
int32_t m_dims [Dims]
 

Detailed Description

template<int32_t Dims>
struct cbShape< Dims >

Template Parameters
Dims

Definition at line 135 of file cbTable.hpp.

Constructor & Destructor Documentation

◆ cbShape() [1/3]

template<int32_t Dims>
cbShape< Dims >::cbShape ( )
default

◆ cbShape() [2/3]

template<int32_t Dims>
cbShape< Dims >::cbShape ( const cbShape< Dims > &  rhs)
inline

Definition at line 137 of file cbTable.hpp.

◆ cbShape() [3/3]

template<int32_t Dims>
cbShape< Dims >::cbShape ( const std::initializer_list< int32_t > &  rhs)
inline

Definition at line 142 of file cbTable.hpp.

Member Function Documentation

◆ numElements()

template<int32_t Dims>
int32_t cbShape< Dims >::numElements ( )
inline

Definition at line 154 of file cbTable.hpp.

◆ operator[]() [1/2]

template<int32_t Dims>
int32_t& cbShape< Dims >::operator[] ( int32_t  idx)
inline

Definition at line 151 of file cbTable.hpp.

◆ operator[]() [2/2]

template<int32_t Dims>
const int32_t cbShape< Dims >::operator[] ( int32_t  idx) const
inline

Definition at line 152 of file cbTable.hpp.

Member Data Documentation

◆ m_dims

template<int32_t Dims>
int32_t cbShape< Dims >::m_dims[Dims]

◆ m_stride

template<int32_t Dims>
int32_t cbShape< Dims >::m_stride

Definition at line 161 of file cbTable.hpp.

Referenced by cbShape< 2 >::cbShape().


The documentation for this struct was generated from the following file: