FFSM++  1.1.0
French Forest Sector Model ++
Sandbox.cpp File Reference
#include <algorithm>
#include <cmath>
#include <map>
#include <tr1/array>
#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 1496 of file Sandbox.cpp.

1496  {
1497 
1498  vector <string> myStringDatas;
1499  myStringDatas.push_back("aaaaa");
1500  myStringDatas.push_back("bbbbb");
1501  myStringDatas.push_back("ccccc");
1502  vector <T> xVector;
1503 
1504  for (int i=0;i<myStringDatas.size();i++){
1505  istringstream iss(myStringDatas[i]);
1506  T x;
1507  iss >> x;
1508  xVector.push_back(x);
1509  }
1510 
1511  return xVector;
1512 }