WPILibC++ 2025.3.2
Loading...
Searching...
No Matches
wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > > Struct Template Reference

#include <frc/struct/MatrixStruct.h>

Static Public Member Functions

static constexpr std::string_view GetTypeName ()
 
static constexpr size_t GetSize ()
 
static constexpr std::string_view GetSchema ()
 
static frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > Unpack (std::span< const uint8_t > data)
 
static void Pack (std::span< uint8_t > data, const frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > &value)
 

Static Public Attributes

static constexpr ct_string kTypeName
 
static constexpr ct_string kSchema
 

Member Function Documentation

◆ GetSchema()

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
static constexpr std::string_view wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::GetSchema ( )
inlinestaticconstexpr

◆ GetSize()

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
static constexpr size_t wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::GetSize ( )
inlinestaticconstexpr

◆ GetTypeName()

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
static constexpr std::string_view wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::GetTypeName ( )
inlinestaticconstexpr

◆ Pack()

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
static void wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::Pack ( std::span< uint8_t > data,
const frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > & value )
inlinestatic

◆ Unpack()

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
static frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::Unpack ( std::span< const uint8_t > data)
inlinestatic

Member Data Documentation

◆ kSchema

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
ct_string wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::kSchema
staticconstexpr
Initial value:
=
wpi::Concat("double data["_ct_string, wpi::NumToCtString<Rows * Cols>(),
"]"_ct_string)
constexpr auto NumToCtString()
Converts any integral to a ct_string at compile-time.
Definition ct_string.h:202
constexpr auto Concat(ct_string< Char, Traits, N1 > const &s1, ct_string< Char, Traits, N > const &... s)
Concatenates multiple fixed_strings into a larger fixed_string at compile time.
Definition ct_string.h:168

◆ kTypeName

template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
ct_string wpi::Struct< frc::Matrixd< Rows, Cols, Options, MaxRows, MaxCols > >::kTypeName
staticconstexpr
Initial value:
=
wpi::Concat("Matrix__"_ct_string, wpi::NumToCtString<Rows>(),
"_"_ct_string, wpi::NumToCtString<Cols>())

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