class

Bindgen::Configuration::Container

Inherits YAML::Serializable < Reference < Object

Configuration of template container types and their instantiations.

Constructors

new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

access_method

See #configured_access_method. Defaults to at, or to value for an optional.

Source
class

Class name of the template type

Source
class=(class __arg0 : String)

Class name of the template type

Source
configured_access_method

Method to access an element at an index, or the value of an optional.

Source
configured_access_method=(configured_access_method : String | Nil)

Method to access an element at an index, or the value of an optional.

Source
configured_count_method

Method telling if an associative container has a key, or a set an element, returning the count of entries of the key, or a bool; or if an optional has a value.

Source
configured_count_method=(configured_count_method : String | Nil)

Method telling if an associative container has a key, or a set an element, returning the count of entries of the key, or a bool; or if an optional has a value.

Source
configured_push_method

Method to add an element at the end, to set the value of an optional, or to insert an element into a set.

Source
configured_push_method=(configured_push_method : String | Nil)

Method to add an element at the end, to set the value of an optional, or to insert an element into a set.

Source
count_method

See #configured_count_method. Defaults to count, or to has_value for an optional.

Source
erase_method

Method removing the entry of a key from an associative container, or an element from a set.

Source
erase_method=(erase_method : String)

Method removing the entry of a key from an associative container, or an element from a set.

Source
insert_method

Method adding an entry to an associative container, replacing the value of an existing key: map.insert(key, value). If unset, the bindgen_map_store helper is used instead, which assigns to the existing value or calls map.emplace(key, value).

Source
insert_method=(insert_method : String | Nil)

Method adding an entry to an associative container, replacing the value of an existing key: map.insert(key, value). If unset, the bindgen_map_store helper is used instead, which assigns to the existing value or calls map.emplace(key, value).

Source
instantiations

List of instantiations to create.

Source
instantiations=(instantiations : Set(Array(String)))

List of instantiations to create.

Source
push_method

See #configured_push_method. Defaults to push_back, to emplace for an optional, or to insert for a set.

Source
size_method

Method telling the current count of elements.

Source
size_method=(size_method : String)

Method telling the current count of elements.

Source
type

Type of the container

Source
type=(type : Type)

Type of the container

Source

Nested types