Arkanjo 0.1
A tool for find code duplicated functions in codebases
|
Represents a code function with its content and metadata. More...
#include <function.hpp>
Public Member Functions | |
int | number_of_lines () |
Calculates the total number of lines in the function. | |
Function (Path _path) | |
Constructs a Function object. | |
array< int, 3 > | get_scope_function_in_file () |
Gets the function's line number scope. | |
vector< string > | get_header () |
Gets the function's header content. | |
vector< string > | build_all_content () |
Builds combined content of header and source. | |
void | print_basic_info () |
Prints formatted function information to console. | |
Represents a code function with its content and metadata.
Provides access to function source, header, line information, and various utility methods for function manipulation and display.
Definition at line 33 of file function.hpp.
Function::Function | ( | Path | _path | ) |
Constructs a Function object.
_path | Path object containing function location info |
Definition at line 24 of file function.cpp.
vector< string > Function::build_all_content | ( | ) |
Builds combined content of header and source.
Definition at line 42 of file function.cpp.
vector< string > Function::get_header | ( | ) |
Gets the function's header content.
Definition at line 38 of file function.cpp.
array< int, 3 > Function::get_scope_function_in_file | ( | ) |
Gets the function's line number scope.
Definition at line 34 of file function.cpp.
int Function::number_of_lines | ( | ) |
Calculates the total number of lines in the function.
Definition at line 20 of file function.cpp.
void Function::print_basic_info | ( | ) |
Prints formatted function information to console.
Definition at line 60 of file function.cpp.