API:System.Generics.Collections.TObjectStack

From RAD Studio API Documentation
Jump to: navigation, search

System.Generics.Collections.TStackSystem.Generics.Collections.TEnumerableSystem.TObjectTObjectStack

Delphi

TObjectStack<T: class> = class(TStack<T>)

C++

template<typename T> class PASCALIMPLEMENTATION TObjectStack__1 : public TStack__1<T>

Properties

Type Visibility Source Unit Parent
class public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections System.Generics.Collections

Description

Last in, first out stack.

System.Generics.Collections.TObjectStack inherits from System.Generics.Collections.TStack. All content below this line refers to System.Generics.Collections.TStack.

Last in, first out stack.

TStack represents a last in, first out stack of the same type. It is of arbitrary size, expanding as needed. You can push nil on the stack.

When the stack changes, an OnNotify event is generated.

Count contains the number of stack entries.

The class TObjectStack inherits from TStack and provides an automatic mechanism for freeing objects removed from stacks.

See Also

Code Examples