update
parent
3c1f8626fd
commit
41a3fbcdea
@ -1,3 +1,3 @@
|
|||||||
# amscpptemplate25a
|
# amscppperm1
|
||||||
|
|
||||||
Rearrange my C++ project template in an attempt to harmonize everything and modernize my build scripts.
|
Library containing structures to iterate over permutations and provide permutation sign.
|
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../sourceprojs23/camsimglib3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../sourceprojs23/amsmathutil2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../sourceprojs23/amscppfilesys3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
tar -czvf ../amscpptemplate25a.tar.gz ./*
|
tar -czvf ../amscppperm1.tar.gz ./*
|
||||||
|
|
||||||
scp ../amscpptemplate25a.tar.gz aschinder@amssolarempire.com:~/workspace/projects
|
scp ../amscppperm1.tar.gz aschinder@amssolarempire.com:~/workspace/projects
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,31 @@
|
|||||||
|
#ifndef __AMSCPPPERM1_HPP__
|
||||||
|
#define __AMSCPPPERM1_HPP__
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace ams
|
||||||
|
{
|
||||||
|
namespace perm
|
||||||
|
{
|
||||||
|
|
||||||
|
//Buffer operations
|
||||||
|
|
||||||
|
|
||||||
|
//Permutation class
|
||||||
|
class permutation
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int dim;
|
||||||
|
int *data;
|
||||||
|
|
||||||
|
permutation();
|
||||||
|
~permutation();
|
||||||
|
};
|
||||||
|
|
||||||
|
}; //end namespace perm
|
||||||
|
}; //end namespace ams
|
||||||
|
|
||||||
|
#endif
|
@ -1,15 +0,0 @@
|
|||||||
#ifndef __AMSCPPTEMPLATE25A_HPP__
|
|
||||||
#define __AMSCPPTEMPLATE25A_HPP__
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
|
|
||||||
namespace ams
|
|
||||||
{
|
|
||||||
void amscpptemplate_testfn();
|
|
||||||
void amscpptemplate_testfn2();
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
scp aschinder@amssolarempire.com:workspace/projects/amscpptemplate25a.tar.gz ../
|
scp aschinder@amssolarempire.com:workspace/projects/amscppperm1.tar.gz ../
|
||||||
tar xzvf ../amscpptemplate25a.tar.gz ./
|
tar xzvf ../amscppperm1.tar.gz ./
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
#include <amscppperm1/amscppperm1.hpp>
|
||||||
|
|
||||||
|
namespace ams
|
||||||
|
{
|
||||||
|
namespace perm
|
||||||
|
{
|
||||||
|
|
||||||
|
}; //end namespace perm
|
||||||
|
}; //end namespace ams
|
@ -0,0 +1,25 @@
|
|||||||
|
#include <amscppperm1/amscppperm1.hpp>
|
||||||
|
|
||||||
|
namespace ams
|
||||||
|
{
|
||||||
|
namespace perm
|
||||||
|
{
|
||||||
|
|
||||||
|
permutation::permutation()
|
||||||
|
{
|
||||||
|
dim = 0;
|
||||||
|
data = NULL;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
permutation::~permutation()
|
||||||
|
{
|
||||||
|
if(data!=NULL) {delete[] data; data = NULL;}
|
||||||
|
dim = 0;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}; //end namespace perm
|
||||||
|
}; //end namespace ams
|
@ -1,12 +0,0 @@
|
|||||||
#include <amscpptemplate25a/amscpptemplate25a.hpp>
|
|
||||||
|
|
||||||
namespace ams
|
|
||||||
{
|
|
||||||
|
|
||||||
void amscpptemplate_testfn2()
|
|
||||||
{
|
|
||||||
printf("Test function 2.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
@ -1,12 +0,0 @@
|
|||||||
#include <amscpptemplate25a/amscpptemplate25a.hpp>
|
|
||||||
|
|
||||||
namespace ams
|
|
||||||
{
|
|
||||||
|
|
||||||
void amscpptemplate_testfn()
|
|
||||||
{
|
|
||||||
printf("Test function.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
@ -1,9 +1,9 @@
|
|||||||
#include <amscpptemplate25a/amscpptemplate25a.hpp>
|
#include <amscppperm1/amscppperm1.hpp>
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
printf("ams c++ project template tests.\n");
|
printf("ams c++ project template tests.\n");
|
||||||
ams::amscpptemplate_testfn();
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
Loading…
Reference in New Issue