GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_cmd.hh File Reference
Include dependency graph for GameApi_cmd.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DelApiItemF
class  TypeToString< T >
struct  ApiSplit
struct  add_all<... >
struct  add_all< X, Xs... >
class  ApiItem< RT, P >
class  FromStreamClass< T >
class  FromStreamClass< float >
class  FromStreamClass< std::string >
class  FromStreamClass< GameApi::EveryApi & >
class  FromStreamClass< bool >
class  FromStreamClass< unsigned int >
class  FromStreamClass< std::vector< std::string > >
class  FromStreamClass< std::vector< T > >
class  EnvGameApiItem_int
class  EnvGameApiItem_string
class  EnvGameApiItem_float
class  EnvGameApiItem_arr
class  EnvGameApiItem_arr_p

Macros

#define FEATURE_GLTF   1
#define FEATURE_VOXEL   1
#define FEATURE_VOLUME   1
#define FEATURE_FONT   1
#define FEATURE_MATERIAL   1
#define FEATURE_FRAMEBUFFER   1
#define FEATURE_PTS   1
#define FEATURE_WAVEFORM   1
#define FEATURE_GUI   1
#define FEATURE_BOOLEANOPS   1
#define FEATURE_OGL_SETUP   1
#define MACRO2(lab, funccall)
#define MAC(a)
#define MACRO(lab)

Functions

int ret_type_count (std::string s)
int to_int (std::string s)
float to_float (std::string s)
template<class T>
void set_empty (GameApi::EveryApi &ev, T &t)
MACRO2(GameApi::LI, ev.lines_api.from_polygon(ev.polygon_api.p_empty())) MACRO2(GameApi std::string unique_id_apiitem ()
template<class T, class RT, class... P>
int funccall (std::stringstream &ss, GameApi::Env &ee, GameApi::EveryApi &ev, T(GameApi::EveryApi::*api), RT(T::*fptr)(P...), std::vector< std::string > s, GameApi::ExecuteEnv &e, const std::vector< std::string > &param_name, const std::string &return_type)
std::pair< std::string, std::string > CodeGen_1 (GameApi::EveryApi &ev, std::vector< std::string > params, std::vector< std::string > param_names, std::vector< std::string > param_type, std::vector< std::string > param_exprs, std::string return_type, std::string api_name, std::string func_name, int j)
ApiSplit split_api_default (std::string def)
bool print_if_false (const bool assertion, std::string msg)
std::string FloatExprEval (std::string s)
int find_float_ch (std::string s, char ch)
void funccall_1 (std::vector< std::string > &s, GameApi::ExecuteEnv &e, std::vector< std::string > param_name)
template<typename T>
T from_stream2 (std::stringstream &is, GameApi::EveryApi &ev)
template<class T, class RT, class... P>
GameApiItem * ApiItemF (T(GameApi::EveryApi::*api), RT(T::*fptr)(P...), std::string name, std::vector< std::string > param_name, std::vector< std::string > param_type, std::vector< std::string > param_default, std::string return_type, std::string api_name, std::string func_name, std::string symbols="", std::string comment="")
std::vector< std::string > parse_sep (std::string s, char sep)
std::vector< std::string > choose_param3 (std::vector< std::string > vec, int ii)
std::string generate_seq (int n, int count)
std::string replace_str (std::string code, std::string repl, std::string subst)

Variables

DelApiItemF g_api_item_deleter

Macro Definition Documentation

◆ FEATURE_BOOLEANOPS

#define FEATURE_BOOLEANOPS   1

◆ FEATURE_FONT

#define FEATURE_FONT   1

◆ FEATURE_FRAMEBUFFER

#define FEATURE_FRAMEBUFFER   1

◆ FEATURE_GLTF

#define FEATURE_GLTF   1

◆ FEATURE_GUI

#define FEATURE_GUI   1

◆ FEATURE_MATERIAL

#define FEATURE_MATERIAL   1

◆ FEATURE_OGL_SETUP

#define FEATURE_OGL_SETUP   1

◆ FEATURE_PTS

#define FEATURE_PTS   1

◆ FEATURE_VOLUME

#define FEATURE_VOLUME   1

◆ FEATURE_VOXEL

#define FEATURE_VOXEL   1

◆ FEATURE_WAVEFORM

#define FEATURE_WAVEFORM   1

◆ MAC

#define MAC ( a)
Value:
template<> class TypeToString<GameApi::a> { public: static constexpr const char * str=#a; };
Definition GameApi_cmd.hh:94
str
Definition meshpage.php:1778
Definition FreeType.hh:46

◆ MACRO

#define MACRO ( lab)
Value:
template<> \
class FromStreamClass<lab> \
{ \
public:\
lab from_stream(std::stringstream &ss, GameApi::EveryApi &ev)\
{\
lab bm;\
std::string s;\
ss >> s;\
if (s=="@") {\
set_empty(ev,bm);\
std::cout << "Warning: Empty slot in left side of node detected! " << TypeToString<lab>::str << std::endl; \
return bm;\
}\
bm.id = to_int(s);\
return bm;\
}\
};
EveryApi ev(e)
Definition GameApi_cmd.hh:400
static constexpr const char * str
Definition GameApi_cmd.hh:94
Definition GameApi.hh:4664
int to_int(TestEnum t)
Definition test_module.cpp:73

◆ MACRO2

#define MACRO2 ( lab,
funccall )
Value:
void set_empty(GameApi::EveryApi &ev, T &t)
Definition GameApi_cmd.hh:51

Function Documentation

◆ ApiItemF()

template<class T, class RT, class... P>
GameApiItem * ApiItemF ( T GameApi::EveryApi::* api,
RT(T::* fptr )(P...),
std::string name,
std::vector< std::string > param_name,
std::vector< std::string > param_type,
std::vector< std::string > param_default,
std::string return_type,
std::string api_name,
std::string func_name,
std::string symbols = "",
std::string comment = "" )

◆ choose_param3()

std::vector< std::string > choose_param3 ( std::vector< std::string > vec,
int ii )
inline
Here is the caller graph for this function:

◆ CodeGen_1()

std::pair< std::string, std::string > CodeGen_1 ( GameApi::EveryApi & ev,
std::vector< std::string > params,
std::vector< std::string > param_names,
std::vector< std::string > param_type,
std::vector< std::string > param_exprs,
std::string return_type,
std::string api_name,
std::string func_name,
int j )
Here is the caller graph for this function:

◆ find_float_ch()

int find_float_ch ( std::string s,
char ch )
Here is the caller graph for this function:

◆ FloatExprEval()

std::string FloatExprEval ( std::string s)
Here is the caller graph for this function:

◆ from_stream2()

template<typename T>
T from_stream2 ( std::stringstream & is,
GameApi::EveryApi & ev )
Here is the caller graph for this function:

◆ funccall()

template<class T, class RT, class... P>
int funccall ( std::stringstream & ss,
GameApi::Env & ee,
GameApi::EveryApi & ev,
T GameApi::EveryApi::* api,
RT(T::* fptr )(P...),
std::vector< std::string > s,
GameApi::ExecuteEnv & e,
const std::vector< std::string > & param_name,
const std::string & return_type )

◆ funccall_1()

void funccall_1 ( std::vector< std::string > & s,
GameApi::ExecuteEnv & e,
std::vector< std::string > param_name )
Here is the caller graph for this function:

◆ generate_seq()

std::string generate_seq ( int n,
int count )
inline
Here is the caller graph for this function:

◆ parse_sep()

std::vector< std::string > parse_sep ( std::string s,
char sep )
Here is the caller graph for this function:

◆ print_if_false()

bool print_if_false ( const bool assertion,
std::string msg )
inline
Here is the caller graph for this function:

◆ replace_str()

std::string replace_str ( std::string code,
std::string repl,
std::string subst )
Here is the caller graph for this function:

◆ ret_type_count()

int ret_type_count ( std::string s)
Here is the caller graph for this function:

◆ set_empty()

template<class T>
void set_empty ( GameApi::EveryApi & ev,
T & t )

◆ split_api_default()

ApiSplit split_api_default ( std::string def)
Here is the caller graph for this function:

◆ to_float()

float to_float ( std::string s)
Here is the caller graph for this function:

◆ to_int()

int to_int ( std::string s)

◆ unique_id_apiitem()

MACRO2(GameApi::LI, ev.lines_api.from_polygon(ev.polygon_api.p_empty())) MACRO2(GameApi std::string unique_id_apiitem ( )

Variable Documentation

◆ g_api_item_deleter

DelApiItemF g_api_item_deleter
extern