GATE
C/C++ Framework
Loading...
Searching...
No Matches
DynStructDescriptorBase< cpp_struct_type > Struct Template Reference

Builds a C-struct descriptor dynamically. More...

#include <structs.hpp>

Inheritance diagram for DynStructDescriptorBase< cpp_struct_type >:
StructDescriptorBase< cpp_struct_type >

Protected Member Functions

template<class member_type>
void addMember (member_type cpp_struct_type::*memberPtr, char const *name, char const *description=NULL, enumint_t flags=0)
 Adds a member item to the internal item-array storage.
void updateDescriptor ()
 Updates the public struct desriptor with current state of the internal item-array storage.

Additional Inherited Members

Public Member Functions inherited from StructDescriptorBase< cpp_struct_type >
template<class member_type>
gate_struct_item_t buildMemberItem (member_type cpp_struct_type::*memberPtr, char const *name, char const *description=NULL, enumint_t flags=0)
 Builds a member item record based on a c++ member pointer and meta informations.
void setMemberItems (gate_struct_item_t const *items, gate_size_t items_count)
 Sets the descriptor's items and count fields.

Detailed Description

template<class cpp_struct_type>
struct gate::DynStructDescriptorBase< cpp_struct_type >

Builds a C-struct descriptor dynamically.

Template Parameters
cpp_struct_type

Member Function Documentation

◆ addMember()

template<class cpp_struct_type>
template<class member_type>
void addMember ( member_type cpp_struct_type::* memberPtr,
char const * name,
char const * description = NULL,
enumint_t flags = 0 )
inlineprotected

Adds a member item to the internal item-array storage.

Template Parameters
member_typeType of member to be referenced
Parameters
memberPtrPointer to member in covered struct
namestatic string name of member
descriptionoptional string description of member
flagsoptional member flags

◆ updateDescriptor()

template<class cpp_struct_type>
void updateDescriptor ( )
inlineprotected

Updates the public struct desriptor with current state of the internal item-array storage.

Needs to be called after the last member was added


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