CIRCT 24.0.0git
Loading...
Searching...
No Matches
CoordTranslateResult Struct Reference

Translated result struct for CoordTranslator. More...

Collaboration diagram for CoordTranslateResult:

Public Member Functions

Coord * coords ()
 Get pointer to trailing coords array.
const Coord * coords () const
std::span< Coord > coordsSpan ()
 Get span view of coords (requires coordsLength to be set first).
std::span< const Coord > coordsSpan () const

Static Public Member Functions

static size_t allocSize (size_t numCoords)

Public Attributes

size_t coordsLength

Detailed Description

Translated result struct for CoordTranslator.

Memory layout: ESI type: List<struct{x, y}> becomes host struct: { coords_length (size_t, 8 bytes on 64-bit), coords[] }

Definition at line 2064 of file esitester.cpp.

Member Function Documentation

◆ allocSize()

size_t CoordTranslateResult::allocSize ( size_t numCoords)
inlinestatic

Definition at line 2077 of file esitester.cpp.

Referenced by coordTranslateTest().

◆ coords() [1/2]

Coord * CoordTranslateResult::coords ( )
inline

Get pointer to trailing coords array.

Definition at line 2069 of file esitester.cpp.

Referenced by coordsSpan(), and coordsSpan().

◆ coords() [2/2]

const Coord * CoordTranslateResult::coords ( ) const
inline

Definition at line 2070 of file esitester.cpp.

◆ coordsSpan() [1/2]

std::span< Coord > CoordTranslateResult::coordsSpan ( )
inline

Get span view of coords (requires coordsLength to be set first).

Definition at line 2074 of file esitester.cpp.

References coords(), and coordsLength.

◆ coordsSpan() [2/2]

std::span< const Coord > CoordTranslateResult::coordsSpan ( ) const
inline

Definition at line 2075 of file esitester.cpp.

References coords(), and coordsLength.

Member Data Documentation

◆ coordsLength

size_t CoordTranslateResult::coordsLength

Definition at line 2065 of file esitester.cpp.

Referenced by coordsSpan(), and coordsSpan().


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