CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CoordTranslateResult Struct Reference

Translated result struct for CoordTranslator. More...

Collaboration diagram for CoordTranslateResult:
Collaboration graph
[legend]

Public Member Functions

Coordcoords ()
 Get pointer to trailing coords array.
 
const Coordcoords () const
 
std::span< CoordcoordsSpan ()
 Get span view of coords (requires coordsLength to be set first).
 
std::span< const CoordcoordsSpan () 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 1619 of file esitester.cpp.

Member Function Documentation

◆ allocSize()

static size_t CoordTranslateResult::allocSize ( size_t  numCoords)
inlinestatic

Definition at line 1632 of file esitester.cpp.

Referenced by coordTranslateTest().

◆ coords() [1/2]

Coord * CoordTranslateResult::coords ( )
inline

Get pointer to trailing coords array.

Definition at line 1624 of file esitester.cpp.

Referenced by coordsSpan(), coordsSpan(), and coordTranslateTest().

◆ coords() [2/2]

const Coord * CoordTranslateResult::coords ( ) const
inline

Definition at line 1625 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 1629 of file esitester.cpp.

References coords(), and coordsLength.

◆ coordsSpan() [2/2]

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

Definition at line 1630 of file esitester.cpp.

References coords(), and coordsLength.

Member Data Documentation

◆ coordsLength

size_t CoordTranslateResult::coordsLength

Definition at line 1620 of file esitester.cpp.

Referenced by coordsSpan(), and coordsSpan().


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