TEMU  4.4
The Terma Emulator
temu_PropAccessor Struct Reference

#include </builds/termade/temu/temu/include/temu-c/Support/Objsys.h>

Collaboration diagram for temu_PropAccessor:

Data Fields

temu_Type Typ
 Type of property. More...
 
temu_ObjectObj
 Pointer to object containing property. More...
 
int Index
 Index used in access, can be modified by user. More...
 
void * Data
 Pointer to value if applicable. More...
 
temu_PropWriter Writer
 Writer function if applicable. More...
 
temu_PropReader Reader
 Reader function if applicable. More...
 
temu_PropWriter Setter
 Setter function if applicable. More...
 
temu_PropReader Getter
 Getter function if applicable. More...
 
temu_Propval(* readProp )(struct temu_PropAccessor *accessor)
 Read property via accessor. More...
 
void(* writeProp )(struct temu_PropAccessor *accessor, temu_Propval pv)
 Write property via accessor. More...
 
temu_Propval(* getProp )(struct temu_PropAccessor *accessor)
 Get property via accessor. More...
 
void(* setProp )(struct temu_PropAccessor *accessor, temu_Propval pv)
 Set property via accessor. More...
 

Detailed Description

! Generic property accessor

This struct serves as a generic accessor for properties. The intention for this is to be able to cache property accessors, without having to disambiguate between properties and pseudo properties.

The accessor is queried by the temu_getPropAccessor function, and is then used by calling the functions:

  • readProp
  • writeProp
  • getProp
  • setProp

Depending on whether read, write, get or set semantics is needed.

Field Documentation

◆ Data

void* temu_PropAccessor::Data

Pointer to value if applicable.

◆ getProp

temu_Propval(* temu_PropAccessor::getProp) (struct temu_PropAccessor *accessor)

Get property via accessor.

◆ Getter

temu_PropReader temu_PropAccessor::Getter

Getter function if applicable.

◆ Index

int temu_PropAccessor::Index

Index used in access, can be modified by user.

◆ Obj

temu_Object* temu_PropAccessor::Obj

Pointer to object containing property.

◆ Reader

temu_PropReader temu_PropAccessor::Reader

Reader function if applicable.

◆ readProp

temu_Propval(* temu_PropAccessor::readProp) (struct temu_PropAccessor *accessor)

Read property via accessor.

◆ setProp

void(* temu_PropAccessor::setProp) (struct temu_PropAccessor *accessor, temu_Propval pv)

Set property via accessor.

◆ Setter

temu_PropWriter temu_PropAccessor::Setter

Setter function if applicable.

◆ Typ

temu_Type temu_PropAccessor::Typ

Type of property.

◆ writeProp

void(* temu_PropAccessor::writeProp) (struct temu_PropAccessor *accessor, temu_Propval pv)

Write property via accessor.

◆ Writer

temu_PropWriter temu_PropAccessor::Writer

Writer function if applicable.


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