icedb  version 0.5.1
Snow particle scattering database API
Namespaces | Macros | Functions
splitSet.cpp File Reference
#include <algorithm>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <boost/exception/all.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <sstream>
#include <iostream>
#include "../icedb/splitSet.hpp"
#include "../icedb/error.hpp"
Include dependency graph for splitSet.cpp:

Go to the source code of this file.

Namespaces

 icedb
 
 icedb::splitSet
 

Macros

#define DOTYPES(f)
 
#define SPEC_SPLITSET_A(T)
 
#define SPEC_SPLITSET_INTERVAL(T)
 
#define SPEC_SPLITSET(T)
 
#define IMPL_INTS(T)   template class DL_ICEDB intervals < T >;
 

Functions

template<class T >
void icedb::splitSet::stringifyRange (const T &Tstart, const T &Tend, const T &Tinterval, const std::string &Tspecializer, std::string &out)
 
template<class T >
void icedb::splitSet::splitSet (const T &start, const T &end, const T &interval, const std::string &specializer, std::set< T > &expanded)
 Shortcut that already passes parsed ICEDB_LOG_INFOrmation. More...
 
 icedb::splitSet::DOTYPES (SPEC_SPLITSET_A)
 
template<class T >
void icedb::splitSet::extractInterval (const std::string &instr, T &start, T &end, T &interval, size_t &num, std::string &specializer)
 Extracts ICEDB_LOG_INFOrmation from interval notation. More...
 
 icedb::splitSet::DOTYPES (SPEC_SPLITSET_INTERVAL)
 
template<class T >
void icedb::splitSet::splitSet (const std::string &instr, std::set< T > &expanded, const std::map< std::string, std::string > *aliases)
 
template<>
void icedb::splitSet::splitSet< std::string > (const std::string &instr, std::set< std::string > &expanded, const std::map< std::string, std::string > *aliases)
 
 icedb::splitSet::DOTYPES (SPEC_SPLITSET)
 
void icedb::splitSet::splitVector (const std::string &instr, std::vector< std::string > &out, char delim='\0')
 Convenience function to split a null-separated string list into a vector of strings. More...
 
void icedb::splitSet::splitNullMap (const std::string &instr, std::map< std::string, std::string > &out)
 Convenience function to split a null-separated string list into a map of strings. More...
 
 icedb::splitSet::DOTYPES (IMPL_INTS)
 

Macro Definition Documentation

◆ DOTYPES

#define DOTYPES (   f)
Value:
f(int); f(float); f(double); f(long); f(long long); \
f(unsigned int); f(unsigned long); f(unsigned long long);

Definition at line 33 of file splitSet.cpp.

◆ IMPL_INTS

#define IMPL_INTS (   T)    template class DL_ICEDB intervals < T >;

Definition at line 513 of file splitSet.cpp.

◆ SPEC_SPLITSET

#define SPEC_SPLITSET (   T)
Value:
template DL_ICEDB void splitSet<T>(const std::string &instr, std::set<T> &expanded, \
const std::map<std::string, std::string> *aliases);
#define DL_ICEDB
Definition: defs.h:124

Definition at line 352 of file splitSet.cpp.

◆ SPEC_SPLITSET_A

#define SPEC_SPLITSET_A (   T)
Value:
template DL_ICEDB void splitSet<T>(const T&, const T&, \
const T&, const std::string&, std::set<T> &);
#define DL_ICEDB
Definition: defs.h:124

Definition at line 167 of file splitSet.cpp.

◆ SPEC_SPLITSET_INTERVAL

#define SPEC_SPLITSET_INTERVAL (   T)
Value:
template DL_ICEDB void extractInterval<T>( \
const std::string&, T&, T&, T&, size_t&, std::string&);
#define DL_ICEDB
Definition: defs.h:124

Definition at line 240 of file splitSet.cpp.