GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
ApiItem< RT, P > Class Template Reference

#include <GameApi_cmd.hh>

Inheritance diagram for ApiItem< RT, P >:
Collaboration diagram for ApiItem< RT, P >:

Public Member Functions

 ApiItem (RT(*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 ret_type, std::string func_name)
std::string Name () const
int ParamCount () const
std::string ParamName (int p) const
std::string ParamType (int p) const
std::string ParamDefault (int p) const
std::string ReturnType () const
int Execute (std::vector< std::string > params)
std::pair< std::string, std::string > CodeGen (std::vector< std::string > params, std::vector< std::string > param_names)
 ApiItem (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 ret_type, std::string api_name, std::string func_name, std::string symbols, std::string comment)
int Count () const
std::string Name (int i) const
int ParamCount (int i) const
std::string ParamName (int i, int p) const
std::string ParamType (int i, int p) const
std::string ParamDefault (int i, int p) const
std::string DefaultAuthor (int i, int p) const
std::string DefaultLicense (int i, int p) const
std::string ReturnType (int i) const
std::string ApiName (int i) const
std::string FuncName (int i) const
std::string Symbols () const
std::string Comment () const
int Execute (std::stringstream &ss, GameApi::Env &ee, GameApi::EveryApi &ev, std::vector< std::string > params, GameApi::ExecuteEnv &e, int j)
std::pair< std::string, std::string > CodeGen (GameApi::EveryApi &ev, std::vector< std::string > params, std::vector< std::string > param_names, std::vector< std::string > param_exprs, int j)
 ApiItem (RT(*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 ret_type, std::string func_name)
std::string Name () const
int ParamCount () const
std::string ParamName (int p) const
std::string ParamType (int p) const
std::string ParamDefault (int p) const
std::string ReturnType () const
std::string Symbols () const
int Execute (std::vector< std::string > params)
std::pair< std::string, std::string > CodeGen (std::vector< std::string > params, std::vector< std::string > param_names)
Public Member Functions inherited from GameApiItem
virtual ~GameApiItem ()
virtual int Execute (GameApi::Env &ee, GameApi::EveryApi &ev, std::vector< std::string > params, GameApi::ExecuteEnv &e, int j)=0
virtual std::pair< std::string, std::string > CodeGen (GameApi::EveryApi &ev, std::vector< std::string > params, std::vector< std::string > param_names, int j)=0
virtual void BeginEnv (GameApi::ExecuteEnv &e, std::vector< GameApiParam > params)
virtual void EndEnv (GameApi::ExecuteEnv &e)
virtual ~GameApiItem ()
virtual void BeginEnv (GameApi::ExecuteEnv &e, std::vector< GameApiParam > params)
virtual void EndEnv (GameApi::ExecuteEnv &e)

Constructor & Destructor Documentation

◆ ApiItem() [1/3]

template<class RT, class... P>
ApiItem< RT, P >::ApiItem ( RT(* 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 ret_type,
std::string func_name )
inline

◆ ApiItem() [2/3]

template<class RT, class... P>
ApiItem< RT, P >::ApiItem ( 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 ret_type,
std::string api_name,
std::string func_name,
std::string symbols,
std::string comment )
inline

◆ ApiItem() [3/3]

template<class RT, class... P>
ApiItem< RT, P >::ApiItem ( RT(* 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 ret_type,
std::string func_name )
inline

Member Function Documentation

◆ ApiName()

template<class RT, class... P>
std::string ApiItem< RT, P >::ApiName ( int i) const
inlinevirtual

Implements GameApiItem.

Here is the caller graph for this function:

◆ CodeGen() [1/3]

template<class RT, class... P>
std::pair< std::string, std::string > ApiItem< RT, P >::CodeGen ( GameApi::EveryApi & ev,
std::vector< std::string > params,
std::vector< std::string > param_names,
std::vector< std::string > param_exprs,
int j )
inlinevirtual

Implements GameApiItem.

◆ CodeGen() [2/3]

template<class RT, class... P>
std::pair< std::string, std::string > ApiItem< RT, P >::CodeGen ( std::vector< std::string > params,
std::vector< std::string > param_names )
inlinevirtual

Implements Item.

◆ CodeGen() [3/3]

template<class RT, class... P>
std::pair< std::string, std::string > ApiItem< RT, P >::CodeGen ( std::vector< std::string > params,
std::vector< std::string > param_names )
inlinevirtual

Implements Item.

◆ Comment()

template<class RT, class... P>
std::string ApiItem< RT, P >::Comment ( ) const
inlinevirtual

Implements GameApiItem.

◆ Count()

template<class RT, class... P>
int ApiItem< RT, P >::Count ( ) const
inlinevirtual

Implements GameApiItem.

◆ DefaultAuthor()

template<class RT, class... P>
std::string ApiItem< RT, P >::DefaultAuthor ( int i,
int p ) const
inlinevirtual

Implements GameApiItem.

◆ DefaultLicense()

template<class RT, class... P>
std::string ApiItem< RT, P >::DefaultLicense ( int i,
int p ) const
inlinevirtual

Implements GameApiItem.

◆ Execute() [1/3]

template<class RT, class... P>
int ApiItem< RT, P >::Execute ( std::stringstream & ss,
GameApi::Env & ee,
GameApi::EveryApi & ev,
std::vector< std::string > params,
GameApi::ExecuteEnv & e,
int j )
inlinevirtual

Implements GameApiItem.

◆ Execute() [2/3]

template<class RT, class... P>
int ApiItem< RT, P >::Execute ( std::vector< std::string > params)
inlinevirtual

Implements Item.

◆ Execute() [3/3]

template<class RT, class... P>
int ApiItem< RT, P >::Execute ( std::vector< std::string > params)
inlinevirtual

Implements Item.

◆ FuncName()

template<class RT, class... P>
std::string ApiItem< RT, P >::FuncName ( int i) const
inlinevirtual

Implements GameApiItem.

Here is the caller graph for this function:

◆ Name() [1/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::Name ( ) const
inlinevirtual

Implements Item.

◆ Name() [2/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::Name ( ) const
inlinevirtual

Implements Item.

◆ Name() [3/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::Name ( int i) const
inlinevirtual

Implements GameApiItem.

◆ ParamCount() [1/3]

template<class RT, class... P>
int ApiItem< RT, P >::ParamCount ( ) const
inlinevirtual

Implements Item.

◆ ParamCount() [2/3]

template<class RT, class... P>
int ApiItem< RT, P >::ParamCount ( ) const
inlinevirtual

Implements Item.

◆ ParamCount() [3/3]

template<class RT, class... P>
int ApiItem< RT, P >::ParamCount ( int i) const
inlinevirtual

Implements GameApiItem.

◆ ParamDefault() [1/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamDefault ( int i,
int p ) const
inlinevirtual

Implements GameApiItem.

◆ ParamDefault() [2/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamDefault ( int p) const
inlinevirtual

Implements Item.

◆ ParamDefault() [3/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamDefault ( int p) const
inlinevirtual

Implements Item.

◆ ParamName() [1/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamName ( int i,
int p ) const
inlinevirtual

Implements GameApiItem.

◆ ParamName() [2/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamName ( int p) const
inlinevirtual

Implements Item.

◆ ParamName() [3/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamName ( int p) const
inlinevirtual

Implements Item.

◆ ParamType() [1/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamType ( int i,
int p ) const
inlinevirtual

Implements GameApiItem.

◆ ParamType() [2/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamType ( int p) const
inlinevirtual

Implements Item.

◆ ParamType() [3/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ParamType ( int p) const
inlinevirtual

Implements Item.

◆ ReturnType() [1/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ReturnType ( ) const
inlinevirtual

Implements Item.

◆ ReturnType() [2/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ReturnType ( ) const
inlinevirtual

Implements Item.

◆ ReturnType() [3/3]

template<class RT, class... P>
std::string ApiItem< RT, P >::ReturnType ( int i) const
inlinevirtual

Implements GameApiItem.

◆ Symbols() [1/2]

template<class RT, class... P>
std::string ApiItem< RT, P >::Symbols ( ) const
inlinevirtual

Implements Item.

◆ Symbols() [2/2]

template<class RT, class... P>
std::string ApiItem< RT, P >::Symbols ( ) const
inlinevirtual

Implements Item.


The documentation for this class was generated from the following files: