#include <Reflex/Builder/UnionBuilder.h>
Public Member Functions | |
| UnionBuilder (const char *nam, const std::type_info &ti, size_t size, unsigned int modifiers=0, TYPE typ=UNION) | |
| virtual | ~UnionBuilder () |
| template<typename T> | |
| UnionBuilder & | AddItem (const char *nam) |
| UnionBuilder & | AddItem (const char *nam, const char *typ) |
| template<class T> | |
| UnionBuilder & | AddDataMember (const char *nam, size_t offs, unsigned int modifiers=0) |
| UnionBuilder & | AddDataMember (const Type &typ, const char *nam, size_t offs, unsigned int modifiers=0) |
| template<class F> | |
| UnionBuilder & | AddFunctionMember (const char *nam, StubFunction stubFP, void *stubCtx=0, const char *params=0, unsigned int modifiers=0) |
| UnionBuilder & | AddFunctionMember (const Type &typ, const char *nam, StubFunction stubFP, void *stubCtx=0, const char *params=0, unsigned int modifiers=0) |
| template<typename P> | |
| UnionBuilder & | AddProperty (const char *key, P value) |
| UnionBuilder & | SetSizeOf (size_t size) |
| Type | ToType () |
Protected Member Functions | |
| UnionBuilder & | EnableCallback (const bool enable=true) |
Private Attributes | |
| UnionBuilderImpl | fUnionBuilderImpl |
Definition at line 130 of file UnionBuilder.h.
| Reflex::UnionBuilder::UnionBuilder | ( | const char * | nam, | |
| const std::type_info & | ti, | |||
| size_t | size, | |||
| unsigned int | modifiers = 0, |
|||
| TYPE | typ = UNION | |||
| ) |
constructor
| virtual Reflex::UnionBuilder::~UnionBuilder | ( | ) | [virtual] |
destructor
| Reflex::UnionBuilder & Reflex::UnionBuilder::AddItem | ( | const char * | nam | ) |
AddItem will add one union item
| Name | the Name of the union item | |
| At | the At of the union item |
Definition at line 238 of file UnionBuilder.h.
References Reflex::UnionBuilderImpl::AddItem(), and fUnionBuilderImpl.
| UnionBuilder& Reflex::UnionBuilder::AddItem | ( | const char * | nam, | |
| const char * | typ | |||
| ) |
AddItem will add one union item
| Name | the Name of the union item | |
| At | the At of the union item |
| Reflex::UnionBuilder & Reflex::UnionBuilder::AddDataMember | ( | const char * | nam, | |
| size_t | offs, | |||
| unsigned int | modifiers = 0 | |||
| ) |
AddDataMember will add the information about one data MemberAt of the union
| Name | of the data MemberAt | |
| Offset | of data MemberAt | |
| modifiers | the modifiers of the data MemberAt |
Definition at line 247 of file UnionBuilder.h.
References Reflex::UnionBuilderImpl::AddDataMember(), and fUnionBuilderImpl.
| UnionBuilder& Reflex::UnionBuilder::AddDataMember | ( | const Type & | typ, | |
| const char * | nam, | |||
| size_t | offs, | |||
| unsigned int | modifiers = 0 | |||
| ) |
| Reflex::UnionBuilder & Reflex::UnionBuilder::AddFunctionMember | ( | const char * | nam, | |
| StubFunction | stubFP, | |||
| void * | stubCtx = 0, |
|||
| const char * | params = 0, |
|||
| unsigned int | modifiers = 0 | |||
| ) |
AddFunctionMember will add the information about one function MemberAt of the union
| Name | of the function MemberAt | |
| function | templated function MemberAt to extract At information | |
| stubFP | Stub function pointer for the function | |
| stubCxt | Stub user context for the stub function | |
| params | parameter names and default values (semi-colon separated) | |
| modifiers | the modifiers of the data MemberAt |
Definition at line 257 of file UnionBuilder.h.
References Reflex::UnionBuilderImpl::AddFunctionMember(), and fUnionBuilderImpl.
| UnionBuilder& Reflex::UnionBuilder::AddFunctionMember | ( | const Type & | typ, | |
| const char * | nam, | |||
| StubFunction | stubFP, | |||
| void * | stubCtx = 0, |
|||
| const char * | params = 0, |
|||
| unsigned int | modifiers = 0 | |||
| ) |
| Reflex::UnionBuilder & Reflex::UnionBuilder::AddProperty | ( | const char * | key, | |
| P | value | |||
| ) |
AddProperty will add a PropertyNth to the PropertyNth stack which will be emtpied with the next build of a union or union item
| key | the PropertyNth key | |
| value | the value of the PropertyNth |
Definition at line 269 of file UnionBuilder.h.
References Reflex::UnionBuilderImpl::AddProperty(), and fUnionBuilderImpl.
| UnionBuilder& Reflex::UnionBuilder::SetSizeOf | ( | size_t | size | ) |
SetSizeOf will set the SizeOf property for this union. It currently ignores all actual content. Size of the union
| Type Reflex::UnionBuilder::ToType | ( | ) |
| UnionBuilder& Reflex::UnionBuilder::EnableCallback | ( | const bool | enable = true |
) | [protected] |
EnableCallback Enable or disable the callback call in the destructor
| enable | true to enable callback call, false to disable callback call |
the union information
Definition at line 230 of file UnionBuilder.h.
Referenced by AddDataMember(), AddFunctionMember(), AddItem(), and AddProperty().
1.5.1