KFoundation
v2.1
A Better Foundation Library for C++
|
Classes | |
class | kfoundation::InvalidPointerException |
Thrown on attempt to access an invalid pointer. More... | |
class | kfoundation::MasterMemoryManager |
Manages all the memory managers used in a process. More... | |
class | kfoundation::MemoryException |
Used to throw exeptions related to memory. More... | |
class | kfoundation::MemoryManager |
Abstract interface to be implemented by all memory managers. More... | |
class | kfoundation::NullPointerException |
Thrown on attempt to access to a null pointer. More... | |
class | kfoundation::ObjectPoolMemoryManager< T > |
Reuses the objects in a preallocated pool whenever a new instance is needed. More... | |
class | kfoundation::OutOfMemoryException |
Thrown on out of memory. More... | |
class | kfoundation::RefArrayBase< T > |
One-dimentional indexed collection of KFObject s. More... | |
class | kfoundation::RefCountMemoryManager |
Reference counting memory manager. More... | |
class | kfoundation::Ref< T > |
Reference to a class of given template type. More... | |
class | kfoundation::RefConst< T > |
Reference to constant vairation of Ref. More... | |
class | kfoundation::StaticRef< T > |
Static variant of Ref. More... | |
class | kfoundation::StaticRefConst< T > |
Reference to constant variant of StaticRef. More... | |
Macros | |
#define | ISA(X) isa<X>() |
Operates like a member function on a Ref<T> and returns a boolean. More... | |
#define | AS(X) cast<X>() |
Operates like a member function on a Ref<T> and casts it to another type. More... | |
#define AS | ( | X) | cast<X>() |
Operates like a member function on a Ref<T> and casts it to another type.
Usage:
Ref<MySuperClass> myCastedObject = myObject.AS(MySuperClass);
#define ISA | ( | X) | isa<X>() |
Operates like a member function on a Ref<T> and returns a boolean.
If myObject.ISA(MyClass)
returns true, then myObject is an instance of MyClass.