Bundle

A bundle of classes (different classes) that are destroyed and freed when the bundles destructor is called.

Intended for parts of a program where classes are continuously allocated and all have the same lifetime. They are then destroyed as one. It is important to not let any references to classes escape to other parts of the program because that will lead to random crashes.

Constructors

this
this(Allocator allocator)

Non-singleton allocator, must be passed in.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

allocator_
alias allocator_ = Allocator.instance
Undocumented in source.
allocator_
alias allocator_ = theAllocator
Undocumented in source.

Functions

empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
make
T make(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
release
void release()

Destroying and release the memory of all objects.

Manifest constants

isGlobal
enum isGlobal;
Undocumented in source.
isSingleton
enum isSingleton;
Undocumented in source.
isTheAllocator
enum isTheAllocator;
Undocumented in source.

Variables

allocator_
Allocator allocator_;
Undocumented in source.

Meta