BFLibCPP 0.1
CPP Library
|
#include <stack.hpp>
Public Member Functions | |
Stack () | |
~Stack () | |
int | push (T object) |
int | pop () |
T | top () |
S | size () |
bool | empty () |
Additional Inherited Members | |
![]() | |
int | deleteNode (Node *node) |
List () | |
List (const std::initializer_list< T > &list) | |
virtual | ~List () |
int | count () const |
int | add (T obj) |
int | pluckObject (T obj) |
int | deleteObjectAtIndex (int index) |
int | insertObjectAtIndex (T obj, int index) |
void | deleteAll () |
T | objectAtIndex (int index) const |
void | setDeallocateCallback (void(*callback)(T obj)) |
void | setReleaseCallback (void(*callback)(T obj)) |
void | setCompareCallback (int(*callback)(T a, T b)) |
Node * | first () const |
Node * | last () const |
bool | contains (const T obj) |
void | print () |
int | sort () |
int | sort (const ListSortOptions option) |
int | shuffle () |
void | operator= (const std::initializer_list< T > &list) |
Iterator | begin () |
required interfaces: begin() & end() | |
Iterator | end () |
![]() | |
Object () | |
Object (Object &obj) | |
virtual | ~Object () |
![]() | |
static void | retain (Object *obj) |
static void | release (Object *obj) |
static int | retainCount (Object *obj) |
static int | retainCount (Object &obj) |
Has similar interface to cpp stack object
This object does not handle any memory deallocation. Caller is still responsible for maintaining every object memory that gets pushed and popped. Thus it MUST be noted all references to objects will be deleted when stack is still full when stack object gets deleted
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |