PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
main.cpp File Reference
#include <iostream>
#include <vector>
#include "phoenix_assert.h"
#include "phoenix_vector_split.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void testVectorSplit ()
 Test the string filename function. More...
 
void testVectorSplit2 ()
 Test the string filename function. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 42 of file main.cpp.

42  {
45  return 0;
46 }
void testVectorSplit()
Test the string filename function.
Definition: main.cpp:14
void testVectorSplit2()
Test the string filename function.
Definition: main.cpp:28

References testVectorSplit(), and testVectorSplit2().

+ Here is the call graph for this function:

◆ testVectorSplit()

void testVectorSplit ( )

Test the string filename function.

Definition at line 14 of file main.cpp.

14  {
15  std::vector<int> vecInt;
16  for(size_t i(0lu); i < 10lu; ++i){
17  vecInt.push_back((int)i);
18  }
19  std::vector<std::vector<int> > vecVecInt;
20  phoenix_vector_split(vecVecInt, vecInt, 2lu);
21  for(int i(0); i < 5; ++i){
22  phoenix_assert(vecVecInt[0][i] == 2*i);
23  phoenix_assert(vecVecInt[1][i] == 2*i + 1);
24  }
25 }
#define phoenix_assert(isOk)
void phoenix_vector_split(std::vector< std::vector< T > > &vecVecOutput, const std::vector< T > &vecInput, size_t nbPart)
Split a list in a list of lists, keep the order of the input file if the output is used for std::thre...

References phoenix_assert, and phoenix_vector_split().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testVectorSplit2()

void testVectorSplit2 ( )

Test the string filename function.

Definition at line 28 of file main.cpp.

28  {
29  std::vector<int> vecInt;
30  for(size_t i(0lu); i < 2lu; ++i){
31  vecInt.push_back((int)i);
32  }
33 
34  std::vector<std::vector<int> > vecVecInt;
35  phoenix_vector_split(vecVecInt, vecInt, 6lu);
36  for(int i(0); i < 1; ++i){
37  phoenix_assert(vecVecInt[0][i] == 2*i);
38  phoenix_assert(vecVecInt[1][i] == 2*i + 1);
39  }
40 }

References phoenix_assert, and phoenix_vector_split().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: