Struct Field

Nested Relationships

Struct Documentation

struct Field

Encapsulates Quack a single class field.

Public Functions

Field(std::string name)

Initialize a field stored as a member of a class.

Parameters
  • name: Name of the field

Public Members

std::string name_
Class *type_ = nullptr

Type of the field object

struct Container : public MapContainer<Field>

Public Functions

const void print_original_src(unsigned int indent_depth)

Prints the user defined classes only. It will raise a runtime error if called. Never need to print the fields.

Parameters
  • indent_depth: Depth to tab the contents.

void add_by_name(const std::string &name)

Modified version of the field that automates boxing the field objects.

Parameters
  • name: Name of the field to add.

bool is_super_set(Container *other)

Checks whether the implicit Field::Container() object is a superset of other's fields.

Return
True if the implicit container is a superset.
Parameters
  • other: Set of fields to be checked against the implicit container.