mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
Add Layouts
This commit is contained in:
14
test.cpp
14
test.cpp
@@ -1,5 +1,7 @@
|
||||
#include "float_node.h"
|
||||
#include "char_layout_node.h"
|
||||
#include "addition_node.h"
|
||||
#include "layout_cursor.h"
|
||||
#include <stdio.h>
|
||||
|
||||
Addition buildAddition() {
|
||||
@@ -11,12 +13,22 @@ Addition buildAddition() {
|
||||
}
|
||||
|
||||
int main() {
|
||||
Addition a = buildAddition();
|
||||
/*Addition a = buildAddition();
|
||||
float result = a.approximate();
|
||||
Float smallFloat(1.3f);
|
||||
a.replaceChildAtIndex(0, smallFloat);
|
||||
float result2 = a.approximate();
|
||||
a.swapChildren(1,0);
|
||||
TreePool::sharedPool()->log();*/
|
||||
|
||||
printf("\nCHAR LAYOUT\n");
|
||||
CharLayout aChar('a');
|
||||
TreePool::sharedPool()->log();
|
||||
LayoutCursor cursor(aChar.pointer());
|
||||
TreePool::sharedPool()->log();
|
||||
cursor.log();
|
||||
bool recompute = false;
|
||||
cursor.moveLeft(&recompute);
|
||||
cursor.log();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user