Tenncor
Classes | Functions | Variables
apis Namespace Reference

Classes

class  APIsPlugin
 

Functions

def _parse_args (arg, accept_def=True)
 
def _nullcheck (args)
 
def _decl_func (api)
 
def _template_defn_func (api)
 
def _defn_func (api)
 
def _handle_api_header (apis)
 
def _handle_api_source (apis)
 
def _handle_api_templates (apis)
 

Variables

string _ns_template
 
string _header_template
 
string _source_template
 
string _decl_tmp
 
string _template_defn_tmp
 
string _defn_tmp
 
string _plugin_id = "API"
 
string api_header = 'api.hpp'
 

Function Documentation

◆ _decl_func()

def apis._decl_func (   api)
private

◆ _defn_func()

def apis._defn_func (   api)
private

◆ _handle_api_header()

def apis._handle_api_header (   apis)
private

◆ _handle_api_source()

def apis._handle_api_source (   apis)
private

◆ _handle_api_templates()

def apis._handle_api_templates (   apis)
private

◆ _nullcheck()

def apis._nullcheck (   args)
private

◆ _parse_args()

def apis._parse_args (   arg,
  accept_def = True 
)
private

◆ _template_defn_func()

def apis._template_defn_func (   api)
private

Variable Documentation

◆ _decl_tmp

string apis._decl_tmp
private
Initial value:
1 = '''
2 /// {comment}
3 {template_prefix}{outtype} {funcname} ({args});
4 '''

◆ _defn_tmp

string apis._defn_tmp
private
Initial value:
1 = '''
2 {outtype} {funcname} ({args})
3 {{
4  if ({null_check})
5  {{
6  logs::fatal("cannot {funcname} with a null argument");
7  }}
8  {block}
9 }}
10 '''

◆ _header_template

string apis._header_template
private
Initial value:
1 = '''
2 #ifndef _GENERATED_API_HPP
3 #define _GENERATED_API_HPP
4 
5 //>>> hdr_namespaces
6 {hdr_namespaces}
7 
8 //>>> template_namespaces
9 {template_namespaces}
10 
11 //>>> operators
12 {operators}
13 
14 #endif // _GENERATED_API_HPP
15 '''

◆ _ns_template

string apis._ns_template
private
Initial value:
1 = '''
2 //>>> namespace
3 namespace {namespace}
4 {{
5 
6 //>>> funcs
7 {funcs}
8 
9 }}
10 '''

◆ _plugin_id

string apis._plugin_id = "API"
private

◆ _source_template

string apis._source_template
private
Initial value:
1 = '''
2 #ifdef _GENERATED_API_HPP
3 
4 //>>> src_namespaces
5 {src_namespaces}
6 
7 //>>> operators
8 {operators}
9 
10 #endif
11 '''

◆ _template_defn_tmp

string apis._template_defn_tmp
private
Initial value:
1 = '''
2 template <{template_args}>
3 {outtype} {funcname} ({args})
4 {{
5  if ({null_check})
6  {{
7  logs::fatal("cannot {funcname} with a null argument");
8  }}
9  {block}
10 }}
11 '''

◆ api_header

string apis.api_header = 'api.hpp'