git-svn-id: svn://db.shs.com.ru/pip@498 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
51
main.cpp
51
main.cpp
@@ -1,26 +1,33 @@
|
||||
#include "main.h"
|
||||
#include <stdio.h>
|
||||
#include "pip.h"
|
||||
#include "pivector2d.h"
|
||||
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
A a;
|
||||
B b;
|
||||
a.setName("__a__");
|
||||
b.setName("__b__");
|
||||
/*CONNECTU_QUEUED(&a, ev1, &b, eh0, &b);
|
||||
CONNECTU_QUEUED(&a, ev1, &b, eh1, &a);
|
||||
piCout << "start";
|
||||
a.ev1(1.5);
|
||||
piSleep(1);
|
||||
piCout << a.maybeCallQueuedEvents();
|
||||
piSleep(1);
|
||||
piCout << b.maybeCallQueuedEvents();*/
|
||||
//piCout << "end";
|
||||
/*b.executeQueued(&a, "eh1", PIVariant(0.1), "0150", 10, 40);
|
||||
piSleep(1);
|
||||
a.maybeCallQueuedEvents();*/
|
||||
//dumpApplication();
|
||||
b.execute("eh1", PIVariant(0.1), "0150", 10, 40);
|
||||
b.executeQueued(&a, "eh1", PIVariant(0.1), "0150", 10, 40);
|
||||
a.callQueuedEvents();
|
||||
PIVector<PIVector<double> > in;
|
||||
in.resize(5);
|
||||
for (int i = 0; i < in.size_s(); ++i)
|
||||
for (int j = 0; j < 20; ++j)
|
||||
in[i] << j+i*100;
|
||||
// piCout << in.size() << in[0].size();
|
||||
PIVector2D<double> f0;
|
||||
PIVector2D<double> f1(30, 40);
|
||||
//in.resize(1);
|
||||
PIVector2D<double> f2(in);
|
||||
f0 = f2;
|
||||
// piCout << f0;
|
||||
// piCout << f1;
|
||||
// piCout << f2;
|
||||
// piCout << f2.rows() << f2.cols() << f2.size_all() << f2.rows()*f2.cols();
|
||||
// piCout << in;
|
||||
piCout << f2;
|
||||
f2.setRow(2, f2[2]);;
|
||||
piCout << f2;
|
||||
// piCout << f2.toVectors();
|
||||
// PIVector<double> t = f2.toPlainVector();
|
||||
// piCout << t;
|
||||
// piCout << PIVector2D<double>(f2.rows(), f2.cols(), t);
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user