Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
cpp.ast.AstBuilder Class Reference
Inheritance diagram for cpp.ast.AstBuilder:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, token_stream, filename, in_class='', visibility=None, namespace_stack=[])
 
def Generate (self)
 
def GetMethod (self, modifiers, templated_types)
 
def GetName (self, seq=None)
 
def GetScope (self)
 
def handle_asm (self)
 
def handle_auto (self)
 
def handle_bool (self)
 
def handle_break (self)
 
def handle_case (self)
 
def handle_catch (self)
 
def handle_char (self)
 
def handle_class (self)
 
def handle_const (self)
 
def handle_const_cast (self)
 
def handle_continue (self)
 
def handle_default (self)
 
def handle_delete (self)
 
def handle_do (self)
 
def handle_double (self)
 
def handle_dynamic_cast (self)
 
def handle_else (self)
 
def handle_enum (self)
 
def handle_explicit (self)
 
def handle_extern (self)
 
def handle_false (self)
 
def handle_float (self)
 
def handle_for (self)
 
def handle_friend (self)
 
def handle_goto (self)
 
def handle_if (self)
 
def handle_inline (self)
 
def handle_int (self)
 
def handle_long (self)
 
def handle_mutable (self)
 
def handle_namespace (self)
 
def handle_new (self)
 
def handle_operator (self)
 
def handle_private (self)
 
def handle_protected (self)
 
def handle_public (self)
 
def handle_register (self)
 
def handle_reinterpret_cast (self)
 
def handle_return (self)
 
def handle_short (self)
 
def handle_signed (self)
 
def handle_sizeof (self)
 
def handle_static (self)
 
def handle_static_cast (self)
 
def handle_struct (self)
 
def handle_switch (self)
 
def handle_template (self)
 
def handle_this (self)
 
def handle_throw (self)
 
def handle_true (self)
 
def handle_try (self)
 
def handle_typedef (self)
 
def handle_typeid (self)
 
def handle_typename (self)
 
def handle_union (self)
 
def handle_unsigned (self)
 
def handle_using (self)
 
def handle_virtual (self)
 
def handle_void (self)
 
def handle_volatile (self)
 
def handle_wchar_t (self)
 
def handle_while (self)
 
def HandleError (self, msg, token)
 

Public Attributes

 converter
 
 current_token
 
 filename
 
 in_class
 
 in_class_name_only
 
 in_function
 
 namespace_stack
 
 token_queue
 
 tokens
 
 visibility
 

Private Member Functions

def _AddBackToken (self, token)
 
def _AddBackTokens (self, tokens)
 
def _CreateVariable (self, pos_token, name, type_name, type_modifiers, ref_pointer_name_seq, templated_types, value=None)
 
def _GenerateOne (self, token)
 
def _GetBases (self)
 
def _GetClass (self, class_type, visibility, templated_types)
 
def _GetMatchingChar (self, open_paren, close_paren, GetNextToken=None)
 
def _GetMethod (self, return_type_and_name, modifiers, templated_types, get_paren)
 
def _GetNestedType (self, ctor)
 
def _GetNextToken (self)
 
def _GetParameters (self)
 
def _GetReturnTypeAndClassName (self, token_seq)
 
def _GetTemplatedTypes (self)
 
def _GetTokensUpTo (self, expected_token_type, expected_token)
 
def _GetVarTokensUpTo (self, expected_token_type, expected_tokens)
 
def _IgnoreUpTo (self, token_type, token)
 
def _SkipIf0Blocks (self)
 

Private Attributes

 _handling_typedef
 

Detailed Description

Definition at line 675 of file ast.py.

Constructor & Destructor Documentation

def cpp.ast.AstBuilder.__init__ (   self,
  token_stream,
  filename,
  in_class = '',
  visibility = None,
  namespace_stack = [] 
)

Definition at line 677 of file ast.py.

Member Function Documentation

def cpp.ast.AstBuilder._AddBackToken (   self,
  token 
)
private

Definition at line 909 of file ast.py.

def cpp.ast.AstBuilder._AddBackTokens (   self,
  tokens 
)
private

Definition at line 917 of file ast.py.

def cpp.ast.AstBuilder._CreateVariable (   self,
  pos_token,
  name,
  type_name,
  type_modifiers,
  ref_pointer_name_seq,
  templated_types,
  value = None 
)
private

Definition at line 727 of file ast.py.

def cpp.ast.AstBuilder._GenerateOne (   self,
  token 
)
private

Definition at line 737 of file ast.py.

def cpp.ast.AstBuilder._GetBases (   self)
private

Definition at line 1447 of file ast.py.

def cpp.ast.AstBuilder._GetClass (   self,
  class_type,
  visibility,
  templated_types 
)
private

Definition at line 1479 of file ast.py.

def cpp.ast.AstBuilder._GetMatchingChar (   self,
  open_paren,
  close_paren,
  GetNextToken = None 
)
private

Definition at line 879 of file ast.py.

def cpp.ast.AstBuilder._GetMethod (   self,
  return_type_and_name,
  modifiers,
  templated_types,
  get_paren 
)
private

Definition at line 959 of file ast.py.

def cpp.ast.AstBuilder._GetNestedType (   self,
  ctor 
)
private

Definition at line 1183 of file ast.py.

def cpp.ast.AstBuilder._GetNextToken (   self)
private

Definition at line 904 of file ast.py.

def cpp.ast.AstBuilder._GetParameters (   self)
private

Definition at line 898 of file ast.py.

def cpp.ast.AstBuilder._GetReturnTypeAndClassName (   self,
  token_seq 
)
private

Definition at line 1106 of file ast.py.

def cpp.ast.AstBuilder._GetTemplatedTypes (   self)
private

Definition at line 1385 of file ast.py.

def cpp.ast.AstBuilder._GetTokensUpTo (   self,
  expected_token_type,
  expected_token 
)
private

Definition at line 848 of file ast.py.

def cpp.ast.AstBuilder._GetVarTokensUpTo (   self,
  expected_token_type,
  expected_tokens 
)
private

Definition at line 851 of file ast.py.

def cpp.ast.AstBuilder._IgnoreUpTo (   self,
  token_type,
  token 
)
private

Definition at line 861 of file ast.py.

def cpp.ast.AstBuilder._SkipIf0Blocks (   self)
private

Definition at line 864 of file ast.py.

def cpp.ast.AstBuilder.Generate (   self)

Definition at line 703 of file ast.py.

def cpp.ast.AstBuilder.GetMethod (   self,
  modifiers,
  templated_types 
)

Definition at line 952 of file ast.py.

def cpp.ast.AstBuilder.GetName (   self,
  seq = None 
)
Returns ([tokens], next_token_info).

Definition at line 927 of file ast.py.

def cpp.ast.AstBuilder.GetScope (   self)

Definition at line 901 of file ast.py.

def cpp.ast.AstBuilder.handle_asm (   self)

Definition at line 1441 of file ast.py.

def cpp.ast.AstBuilder.handle_auto (   self)

Definition at line 1259 of file ast.py.

def cpp.ast.AstBuilder.handle_bool (   self)

Definition at line 1150 of file ast.py.

def cpp.ast.AstBuilder.handle_break (   self)

Definition at line 1646 of file ast.py.

def cpp.ast.AstBuilder.handle_case (   self)

Definition at line 1600 of file ast.py.

def cpp.ast.AstBuilder.handle_catch (   self)

Definition at line 1631 of file ast.py.

def cpp.ast.AstBuilder.handle_char (   self)

Definition at line 1153 of file ast.py.

def cpp.ast.AstBuilder.handle_class (   self)

Definition at line 1444 of file ast.py.

def cpp.ast.AstBuilder.handle_const (   self)

Definition at line 1267 of file ast.py.

def cpp.ast.AstBuilder.handle_const_cast (   self)

Definition at line 1322 of file ast.py.

def cpp.ast.AstBuilder.handle_continue (   self)

Definition at line 1649 of file ast.py.

def cpp.ast.AstBuilder.handle_default (   self)

Definition at line 1606 of file ast.py.

def cpp.ast.AstBuilder.handle_delete (   self)

Definition at line 1334 of file ast.py.

def cpp.ast.AstBuilder.handle_do (   self)

Definition at line 1640 of file ast.py.

def cpp.ast.AstBuilder.handle_double (   self)

Definition at line 1165 of file ast.py.

def cpp.ast.AstBuilder.handle_dynamic_cast (   self)

Definition at line 1325 of file ast.py.

def cpp.ast.AstBuilder.handle_else (   self)

Definition at line 1614 of file ast.py.

def cpp.ast.AstBuilder.handle_enum (   self)

Definition at line 1256 of file ast.py.

def cpp.ast.AstBuilder.handle_explicit (   self)

Definition at line 1583 of file ast.py.

def cpp.ast.AstBuilder.handle_extern (   self)

Definition at line 1273 of file ast.py.

def cpp.ast.AstBuilder.handle_false (   self)

Definition at line 1438 of file ast.py.

def cpp.ast.AstBuilder.handle_float (   self)

Definition at line 1168 of file ast.py.

def cpp.ast.AstBuilder.handle_for (   self)

Definition at line 1643 of file ast.py.

def cpp.ast.AstBuilder.handle_friend (   self)

Definition at line 1313 of file ast.py.

def cpp.ast.AstBuilder.handle_goto (   self)

Definition at line 1623 of file ast.py.

def cpp.ast.AstBuilder.handle_if (   self)

Definition at line 1611 of file ast.py.

def cpp.ast.AstBuilder.handle_inline (   self)

Definition at line 1270 of file ast.py.

def cpp.ast.AstBuilder.handle_int (   self)

Definition at line 1156 of file ast.py.

def cpp.ast.AstBuilder.handle_long (   self)

Definition at line 1159 of file ast.py.

def cpp.ast.AstBuilder.handle_mutable (   self)

Definition at line 1298 of file ast.py.

def cpp.ast.AstBuilder.handle_namespace (   self)

Definition at line 1551 of file ast.py.

def cpp.ast.AstBuilder.handle_new (   self)

Definition at line 1331 of file ast.py.

def cpp.ast.AstBuilder.handle_operator (   self)

Definition at line 1593 of file ast.py.

def cpp.ast.AstBuilder.handle_private (   self)

Definition at line 1309 of file ast.py.

def cpp.ast.AstBuilder.handle_protected (   self)

Definition at line 1305 of file ast.py.

def cpp.ast.AstBuilder.handle_public (   self)

Definition at line 1301 of file ast.py.

def cpp.ast.AstBuilder.handle_register (   self)

Definition at line 1264 of file ast.py.

def cpp.ast.AstBuilder.handle_reinterpret_cast (   self)

Definition at line 1328 of file ast.py.

def cpp.ast.AstBuilder.handle_return (   self)

Definition at line 1617 of file ast.py.

def cpp.ast.AstBuilder.handle_short (   self)

Definition at line 1162 of file ast.py.

def cpp.ast.AstBuilder.handle_signed (   self)

Definition at line 1180 of file ast.py.

def cpp.ast.AstBuilder.handle_sizeof (   self)

Definition at line 1597 of file ast.py.

def cpp.ast.AstBuilder.handle_static (   self)

Definition at line 1276 of file ast.py.

def cpp.ast.AstBuilder.handle_static_cast (   self)

Definition at line 1319 of file ast.py.

def cpp.ast.AstBuilder.handle_struct (   self)

Definition at line 1217 of file ast.py.

def cpp.ast.AstBuilder.handle_switch (   self)

Definition at line 1603 of file ast.py.

def cpp.ast.AstBuilder.handle_template (   self)

Definition at line 1412 of file ast.py.

def cpp.ast.AstBuilder.handle_this (   self)

Definition at line 1590 of file ast.py.

def cpp.ast.AstBuilder.handle_throw (   self)

Definition at line 1634 of file ast.py.

def cpp.ast.AstBuilder.handle_true (   self)

Definition at line 1435 of file ast.py.

def cpp.ast.AstBuilder.handle_try (   self)

Definition at line 1628 of file ast.py.

def cpp.ast.AstBuilder.handle_typedef (   self)

Definition at line 1339 of file ast.py.

def cpp.ast.AstBuilder.handle_typeid (   self)

Definition at line 1379 of file ast.py.

def cpp.ast.AstBuilder.handle_typename (   self)

Definition at line 1382 of file ast.py.

def cpp.ast.AstBuilder.handle_union (   self)

Definition at line 1253 of file ast.py.

def cpp.ast.AstBuilder.handle_unsigned (   self)

Definition at line 1177 of file ast.py.

def cpp.ast.AstBuilder.handle_using (   self)

Definition at line 1578 of file ast.py.

def cpp.ast.AstBuilder.handle_virtual (   self)

Definition at line 1279 of file ast.py.

def cpp.ast.AstBuilder.handle_void (   self)

Definition at line 1171 of file ast.py.

def cpp.ast.AstBuilder.handle_volatile (   self)

Definition at line 1295 of file ast.py.

def cpp.ast.AstBuilder.handle_wchar_t (   self)

Definition at line 1174 of file ast.py.

def cpp.ast.AstBuilder.handle_while (   self)

Definition at line 1637 of file ast.py.

def cpp.ast.AstBuilder.HandleError (   self,
  msg,
  token 
)

Definition at line 698 of file ast.py.

Member Data Documentation

cpp.ast.AstBuilder._handling_typedef
private

Definition at line 694 of file ast.py.

cpp.ast.AstBuilder.converter

Definition at line 696 of file ast.py.

cpp.ast.AstBuilder.current_token

Definition at line 692 of file ast.py.

cpp.ast.AstBuilder.filename

Definition at line 679 of file ast.py.

cpp.ast.AstBuilder.in_class

Definition at line 685 of file ast.py.

cpp.ast.AstBuilder.in_class_name_only

Definition at line 687 of file ast.py.

cpp.ast.AstBuilder.in_function

Definition at line 691 of file ast.py.

cpp.ast.AstBuilder.namespace_stack

Definition at line 684 of file ast.py.

cpp.ast.AstBuilder.token_queue

Definition at line 683 of file ast.py.

cpp.ast.AstBuilder.tokens

Definition at line 678 of file ast.py.

cpp.ast.AstBuilder.visibility

Definition at line 690 of file ast.py.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:09