McStas Readout Master 0.3.3
Loading...
Searching...
No Matches
SchemaField Struct Reference

A single field in a parsed struct description. More...

#include <TypeDescriptionParser.h>

Public Member Functions

size_t total_size () const
 Total size of this field (element_size * max(array_count, 1))
 

Public Attributes

std::string name
 
std::string type
 
size_t offset
 
size_t element_size
 
size_t array_count
 
size_t alignment
 

Detailed Description

A single field in a parsed struct description.

Definition at line 36 of file TypeDescriptionParser.h.

Member Function Documentation

◆ total_size()

size_t SchemaField::total_size ( ) const
inline

Total size of this field (element_size * max(array_count, 1))

Definition at line 45 of file TypeDescriptionParser.h.

Member Data Documentation

◆ alignment

size_t SchemaField::alignment

Definition at line 42 of file TypeDescriptionParser.h.

◆ array_count

size_t SchemaField::array_count

Definition at line 41 of file TypeDescriptionParser.h.

◆ element_size

size_t SchemaField::element_size

Definition at line 40 of file TypeDescriptionParser.h.

◆ name

std::string SchemaField::name

Definition at line 37 of file TypeDescriptionParser.h.

◆ offset

size_t SchemaField::offset

Definition at line 39 of file TypeDescriptionParser.h.

◆ type

std::string SchemaField::type

Definition at line 38 of file TypeDescriptionParser.h.


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