abstract struct Gloop::ObjectList(T)

Overview

Collection of the same type of objects from the same context.

Included Modules

Direct Known Subclasses

Defined in:

gloop/object_list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Context, names : Slice(Object::Name)) #

Creates a list of objects from the same context with their names.


[View source]
def self.new(context : Context, names : Enumerable(Object::Name)) #

Creates a list of objects from the same context with their names.


[View source]
def self.new(context : Context, objects : Enumerable(T)) #

Creates a list of object from the same context.


[View source]
def self.new(context : Context, size : Int, &) #

Creates a list of objects from the same context.

Yields a pointer to a block of memory to populate with object names.


[View source]

Instance Method Detail

def size #

Returns the number of objects in this list.


[View source]
def to_slice #

Retrieves the names of all objects in the list.


[View source]
def to_unsafe #

Retrieves a pointer to the object names.


[View source]
def unsafe_fetch(index : Int) #

Retrieves a single object from the list.


[View source]