FFSM++  1.1.0
French Forest Sector Model ++
Sandbox.cpp File Reference
#include <algorithm>
#include <cmath>
#include <map>
#include <tr1/array>
#include <Eigen/Dense>
#include "Sandbox.h"
#include "ThreadManager.h"
#include "ModelData.h"
#include "Gis.h"
#include "ModelRegion.h"
#include "Carbon.h"
#include <iostream>
#include <iomanip>
#include <string>
#include <random>
#include <float.h>
#include <limits>
#include <cstddef>
#include "IpIpoptApplication.hpp"
#include "IpSolveStatistics.hpp"
#include "Ipopt_nlp_problem_debugtest.h"
#include "Adolc_debugtest.h"
Include dependency graph for Sandbox.cpp:

Go to the source code of this file.

Classes

struct  GccTest
 

Typedefs

typedef map< string, string > TStrStrMap
 
typedef pair< string, string > TStrStrPair
 

Functions

template<class T >
vector< T > getVectorSetting (string name_h, int type)
 

Typedef Documentation

typedef map<string, string> TStrStrMap

Definition at line 76 of file Sandbox.cpp.

typedef pair<string, string> TStrStrPair

Definition at line 77 of file Sandbox.cpp.

Function Documentation

vector<T> getVectorSetting ( string  name_h,
int  type 
)

Definition at line 1467 of file Sandbox.cpp.

1467  {
1468 
1469  vector <string> myStringDatas;
1470  myStringDatas.push_back("aaaaa");
1471  myStringDatas.push_back("bbbbb");
1472  myStringDatas.push_back("ccccc");
1473  vector <T> xVector;
1474 
1475  for (int i=0;i<myStringDatas.size();i++){
1476  istringstream iss(myStringDatas[i]);
1477  T x;
1478  iss >> x;
1479  xVector.push_back(x);
1480  }
1481 
1482  return xVector;
1483 }