class
Bindgen::Configuration::Container
- Bindgen::Configuration::Container
- Reference
- Object
Overview
Configuration of template container types and their instantiations.
Included Modules
- YAML::Serializable
Defined in:
bindgen/configuration.crConstructors
Instance Method Summary
- #access_method : String
-
#class : String
Class name of the template type
-
#class=(class __arg0 : String)
Class name of the template type
-
#configured_access_method : String | Nil
Method to access an element at an index, or the value of an optional.
-
#configured_access_method=(configured_access_method : String | Nil)
Method to access an element at an index, or the value of an optional.
-
#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. -
#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. -
#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.
-
#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.
- #count_method : String
-
#erase_method : String
Method removing the entry of a key from an associative container, or an element from a set.
-
#erase_method=(erase_method : String)
Method removing the entry of a key from an associative container, or an element from a set.
-
#insert_method : String | Nil
Method adding an entry to an associative container, replacing the value of an existing key:
map.insert(key, value). -
#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). -
#instantiations : Set(Array(String))
List of instantiations to create.
-
#instantiations=(instantiations : Set(Array(String)))
List of instantiations to create.
- #push_method : String
-
#size_method : String
Method telling the current count of elements.
-
#size_method=(size_method : String)
Method telling the current count of elements.
-
#type : Type
Type of the container
-
#type=(type : Type)
Type of the container
Constructor Detail
Instance Method Detail
See #configured_access_method. Defaults to at, or to value for
an optional.
Method to access an element at an index, or the value of an optional.
Method to access an element at an index, or the value of an optional.
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.
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.
Method to add an element at the end, to set the value of an optional, or to insert an element into a set.
Method to add an element at the end, to set the value of an optional, or to insert an element into a set.
See #configured_count_method. Defaults to count, or to
has_value for an optional.
Method removing the entry of a key from an associative container, or an element from a set.
Method removing the entry of a key from an associative container, or an element from a set.
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).
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).
See #configured_push_method. Defaults to push_back, to emplace
for an optional, or to insert for a set.