abstract struct Gloop::ObjectList(T)
- Gloop::ObjectList(T)
- Struct
- Value
- Object
Overview
Collection of the same type of objects from the same context.
Included Modules
- Gloop::Contextual
- Indexable(T)
Direct Known Subclasses
Defined in:
gloop/object_list.crConstructors
-
.new(context : Context, names : Slice(Object::Name))
Creates a list of objects from the same context with their names.
-
.new(context : Context, names : Enumerable(Object::Name))
Creates a list of objects from the same context with their names.
-
.new(context : Context, objects : Enumerable(T))
Creates a list of object from the same context.
-
.new(context : Context, size : Int, &)
Creates a list of objects from the same context.
Instance Method Summary
-
#size
Returns the number of objects in this list.
-
#to_slice
Retrieves the names of all objects in the list.
-
#to_unsafe
Retrieves a pointer to the object names.
-
#unsafe_fetch(index : Int)
Retrieves a single object from the list.
Constructor Detail
Creates a list of objects from the same context with their names.
Creates a list of objects from the same context with their names.
Creates a list of object from the same context.
Creates a list of objects from the same context.
Yields a pointer to a block of memory to populate with object names.