#include "marshal_generator.h"#include "be_extern.h"#include "utl_identifier.h"#include <string>#include <sstream>#include <iostream>#include <cctype>Include dependency graph for marshal_generator.cpp:

Typedefs | |
| typedef string(*) | CommonFn (const string &name, AST_Type *type, const string &prefix, string &intro, const string &) |
Enumerations | |
| enum | WrapDirection { WD_OUTPUT, WD_INPUT } |
Functions | |
| string | wrapPrefix (AST_Type *type, WrapDirection wd) |
| string | getWrapper (const string name, AST_Type *type, WrapDirection wd) |
| string | getMaxSizeExprPrimitive (AST_Type *type) |
| string | getSerializerName (AST_Type *type) |
| string | nameOfSeqHeader (AST_Type *elem) |
| string | streamAndCheck (const string &expr, size_t indent=2) |
| void | gen_sequence (UTL_ScopedName *tdname, AST_Sequence *seq) |
| void | gen_array (UTL_ScopedName *name, AST_Array *arr) |
| string | getArrayForany (const char *prefix, const char *fname, const string &cxx_fld) |
| AST_Type * | find_type (const std::vector< AST_Field * > &fields, string key) |
| bool | is_bounded_type (AST_Type *type) |
| size_t | max_marshaled_size (AST_Type *type) |
| string | findSizeCommon (const string &name, AST_Type *type, const string &prefix, string &intro, const string &="") |
| string | streamCommon (const string &name, AST_Type *type, const string &prefix, string &intro, const string &stru="") |
| bool | needSyntheticDefault (AST_Type *disc, size_t n_labels) |
| std::ostream & | operator<< (std::ostream &o, const AST_Expression &e) |
| string | getEnumLabel (AST_Expression *label_val, AST_Type *disc) |
| void | generateBranchLabels (AST_UnionBranch *branch, AST_Type *discriminator, size_t &n_labels, bool &has_default) |
| void | generateSwitchBodyForUnion (CommonFn commonFn, const std::vector< AST_UnionBranch * > &branches, AST_Type *discriminator, const char *statementPrefix, const char *namePrefix="", const string &uni="") |
typedef string(*) CommonFn(const string &name, AST_Type *type, const string &prefix, string &intro, const string &) [static] |
| enum WrapDirection |
| AST_Type* @42::find_type | ( | const std::vector< AST_Field * > & | fields, | |
| string | key | |||
| ) | [static] |
| string @43::findSizeCommon | ( | const string & | name, | |
| AST_Type * | type, | |||
| const string & | prefix, | |||
| string & | intro, | |||
| const string & | = "" | |||
| ) | [static] |
| void @42::gen_array | ( | UTL_ScopedName * | name, | |
| AST_Array * | arr | |||
| ) | [static] |
| void @42::gen_sequence | ( | UTL_ScopedName * | tdname, | |
| AST_Sequence * | seq | |||
| ) | [static] |
| void @44::generateBranchLabels | ( | AST_UnionBranch * | branch, | |
| AST_Type * | discriminator, | |||
| size_t & | n_labels, | |||
| bool & | has_default | |||
| ) | [static] |
| void @44::generateSwitchBodyForUnion | ( | CommonFn | commonFn, | |
| const std::vector< AST_UnionBranch * > & | branches, | |||
| AST_Type * | discriminator, | |||
| const char * | statementPrefix, | |||
| const char * | namePrefix = "", |
|||
| const string & | uni = "" | |||
| ) | [static] |
| string @42::getArrayForany | ( | const char * | prefix, | |
| const char * | fname, | |||
| const string & | cxx_fld | |||
| ) | [static] |
| string @44::getEnumLabel | ( | AST_Expression * | label_val, | |
| AST_Type * | disc | |||
| ) | [static] |
| string @42::getMaxSizeExprPrimitive | ( | AST_Type * | type | ) | [static] |
| string @42::getSerializerName | ( | AST_Type * | type | ) | [static] |
| string @42::getWrapper | ( | const string | name, | |
| AST_Type * | type, | |||
| WrapDirection | wd | |||
| ) | [static] |
| bool @42::is_bounded_type | ( | AST_Type * | type | ) | [static] |
| size_t @42::max_marshaled_size | ( | AST_Type * | type | ) | [static] |
| string @42::nameOfSeqHeader | ( | AST_Type * | elem | ) | [static] |
| bool @44::needSyntheticDefault | ( | AST_Type * | disc, | |
| size_t | n_labels | |||
| ) | [static] |
| std::ostream& @44::operator<< | ( | std::ostream & | o, | |
| const AST_Expression & | e | |||
| ) | [static] |
| string @42::streamAndCheck | ( | const string & | expr, | |
| size_t | indent = 2 | |||
| ) | [static] |
| string @43::streamCommon | ( | const string & | name, | |
| AST_Type * | type, | |||
| const string & | prefix, | |||
| string & | intro, | |||
| const string & | stru = "" | |||
| ) | [static] |
| string @42::wrapPrefix | ( | AST_Type * | type, | |
| WrapDirection | wd | |||
| ) | [static] |
1.4.7