public
Last active

  • Download Gist
jvar.cpp
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "jvar.h"
 
namespace Js {
 
JVar::JVar(){
 
}
 
 
JVar::~JVar(){
 
}
 
 
}
jvar.h
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef JSJVAR_H
#define JSJVAR_H
 
namespace Js {
 
class JVar{
public:
JVar();
virtual ~JVar();
};
 
}
 
#endif
paramsmap.cpp
C++
1 2 3 4 5 6 7 8 9 10
#include "paramsmap.h"
 
ParamsMap::ParamsMap() : ParamsMapCore<string, Var>(){
 
}
 
 
ParamsMap::~ParamsMap(){
 
}
paramsmap.h
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef PARAMSMAP_H
#define PARAMSMAP_H
 
#include <string>
#include <map>
#include "var.h"
#include "paramsmapcore.h"
 
using std::string;
using std::map;
 
class Var;
class ParamsMapCore<string, Var>;
 
class ParamsMap : public ParamsMapCore<string, Var>{
public:
ParamsMap();
~ParamsMap();
};
 
#endif
paramsmapcore.h
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef PARAMSMAPCORE_H
#define PARAMSMAPCORE_H
 
#include <map>
#include <string>
#include "var.h"
 
class Var;
 
template <typename KeyType, typename ValueType>
class ParamsMapCore : public std::map<KeyType, ValueType>{
public:
ParamsMapCore();
virtual ~ParamsMapCore();
};
 
#include "paramsmapcore.hpp"
 
#endif
paramsmapcore.hpp
C++
1 2 3 4 5 6 7 8 9 10 11
#include "paramsmapcore.h"
 
template <typename KeyType, typename ValueType>
ParamsMapCore<KeyType, ValueType>::ParamsMapCore() : std::map<KeyType, ValueType>(){
 
}
 
template <typename KeyType, typename ValueType>
ParamsMapCore<KeyType, ValueType>::~ParamsMapCore(){
 
}
var.cpp
C++
1 2 3 4
#include "var.h"
 
Var::Var(){}
Var::~Var(){}
var.h
C++
1 2 3 4 5 6 7 8 9
#ifndef VAR_H
#define VAR_H
 
class Var{
public:
Var();
~Var();
};
#endif

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.