CPP-TOOLBOX
Loading...
Searching...
No Matches
cpp_utils.main.CppMethod Class Reference

Public Member Functions

 __init__ (self, str name, str return_type, List[CppParameter] parameters, str body, str access_modifier="public", str initializer_list="", bool define_in_header=False, List[str] qualifiers=[])
 
str declaration (self)
 
str get_definition (self, str class_name)
 

Public Attributes

 name = name
 
 return_type = return_type
 
 parameters = parameters
 
 body = body
 
 access_modifier = access_modifier
 
 initializer_list = initializer_list
 
 define_in_header = define_in_header
 
 qualifiers = qualifiers
 

Detailed Description

Represents a method of a C++ class.

Constructor & Destructor Documentation

◆ __init__()

cpp_utils.main.CppMethod.__init__ ( self,
str name,
str return_type,
List[CppParameter] parameters,
str body,
str access_modifier = "public",
str initializer_list = "",
bool define_in_header = False,
List[str] qualifiers = [] )

Member Function Documentation

◆ declaration()

str cpp_utils.main.CppMethod.declaration ( self)
Return the declaration of the method

◆ get_definition()

str cpp_utils.main.CppMethod.get_definition ( self,
str class_name )
Return the definition of the method with class name prepended.

Member Data Documentation

◆ access_modifier

cpp_utils.main.CppMethod.access_modifier = access_modifier

◆ body

cpp_utils.main.CppMethod.body = body

◆ define_in_header

cpp_utils.main.CppMethod.define_in_header = define_in_header

◆ initializer_list

cpp_utils.main.CppMethod.initializer_list = initializer_list

◆ name

cpp_utils.main.CppMethod.name = name

◆ parameters

cpp_utils.main.CppMethod.parameters = parameters

◆ qualifiers

cpp_utils.main.CppMethod.qualifiers = qualifiers

◆ return_type

cpp_utils.main.CppMethod.return_type = return_type

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