| eRPC Generator (erpcgen) Rev. 1.8.1 NXP Semiconductors

- Main Page
- Classes
- Files

- File List

FunctionType.h
1 /*
2 * Copyright (c) 2014, Freescale Semiconductor, Inc.
3 * Copyright 2016 NXP
4 * All rights reserved.
5 *
6 *
7 * SPDX-License-Identifier: BSD-3-Clause
8 */
9
10 #ifndef _EMBEDDED_RPC__FUNCTION_TYPE_H_
11 #define _EMBEDDED_RPC__FUNCTION_TYPE_H_
12
13 #include "DataType.h"
14 #include "Function.h"
15 #include "StructType.h"
16 #include "Symbol.h"
17
18 #include <string>
19
21 // Classes
23
24 namespace erpcgen {
25
31 class FunctionType : public FunctionBase, public DataType
32 {
33 public:
34 typedef std::vector<Function *> c_function_list_t;
43 FunctionType(const Token &tok)
44 : FunctionBase()
45 , DataType(tok, DataType::kFunctionType, Symbol::kFunctionTypeSymbol)
46 , m_callbackFuns()
47 {
48 }
49
55 virtual bool isFunction() const { return true; }
56
71 virtual std::string getDescription() const;
72
76 c_function_list_t &getCallbackFuns() { return m_callbackFuns; }
77
78 protected:
79 c_function_list_t m_callbackFuns;
80 };
81
82 } // namespace erpcgen
83
84 #endif // _EMBEDDED_RPC__FUNCTION_TYPE_H_
erpcgen::FunctionType
Function data type.
Definition: FunctionType.h:31
erpcgen::FunctionType::isFunction
virtual bool isFunction() const
This function return "true" value as default for identify function type.
Definition: FunctionType.h:55
erpcgen::Symbol
Base class for all named declarations in the IDL.
Definition: Symbol.h:28
erpcgen::FunctionType::getCallbackFuns
c_function_list_t & getCallbackFuns()
Returns list of callback functions.
Definition: FunctionType.h:76
erpcgen::DataType
Base class for data types.
Definition: DataType.h:26
erpcgen::Token
Encapsulates all information about a token.
Definition: Token.h:60
erpcgen::FunctionBase
Function base declaration.
Definition: Function.h:30
erpcgen::FunctionType::m_callbackFuns
c_function_list_t m_callbackFuns
Definition: FunctionType.h:79
erpcgen::FunctionType::c_function_list_t
std::vector< Function * > c_function_list_t
Definition: FunctionType.h:34
erpcgen::FunctionType::getDescription
virtual std::string getDescription() const
This function returns description about the interface function.
Definition: Type.cpp:494
erpcgen
Definition: AstNode.h:26
erpcgen::FunctionType::FunctionType
FunctionType(const Token &tok)
Constructor.
Definition: FunctionType.h:43