class Bindgen::Configuration::Container

Overview

Configuration of template container types and their instantiations.

Included Modules

Defined in:

bindgen/configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def access_method : String #

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


[View source]
def class : String #

Class name of the template type


[View source]
def class=(class __arg0 : String) #

Class name of the template type


[View source]
def configured_access_method : String | Nil #

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


[View source]
def configured_access_method=(configured_access_method : String | Nil) #

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


[View source]
def 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.


[View source]
def 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.


[View source]
def 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.


[View source]
def 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.


[View source]
def count_method : String #

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


[View source]
def erase_method : String #

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


[View source]
def erase_method=(erase_method : String) #

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


[View source]
def 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).


[View source]
def 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).


[View source]
def instantiations : Set(Array(String)) #

List of instantiations to create.


[View source]
def instantiations=(instantiations : Set(Array(String))) #

List of instantiations to create.


[View source]
def push_method : String #

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


[View source]
def size_method : String #

Method telling the current count of elements.


[View source]
def size_method=(size_method : String) #

Method telling the current count of elements.


[View source]
def type : Type #

Type of the container


[View source]
def type=(type : Type) #

Type of the container


[View source]