mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
22 lines
675 B
C++
22 lines
675 B
C++
#ifndef ALLOCATION_FAILED_LAYOUT_NODE_H
|
|
#define ALLOCATION_FAILED_LAYOUT_NODE_H
|
|
|
|
#include "layout_node.h"
|
|
#include "layout_reference.h"
|
|
|
|
class AllocationFailedLayoutNode : public LayoutNode {
|
|
public:
|
|
// TreeNode
|
|
size_t size() const override { return sizeof(AllocationFailedLayoutNode); }
|
|
const char * description() const override { return "Allocation Failed"; }
|
|
int numberOfChildren() const override { return 0; }
|
|
bool isAllocationFailure() const override { return true; }
|
|
};
|
|
|
|
class AllocationFailedLayoutRef : public LayoutReference<AllocationFailedLayoutNode> {
|
|
public:
|
|
AllocationFailedLayoutRef() : LayoutReference<AllocationFailedLayoutNode>() {}
|
|
};
|
|
|
|
#endif
|