eRPC Generator (erpcgen)
Rev. 1.12.0
NXP Semiconductors
|
An interface that contains functions. More...
#include <Group.hpp>
Public Types | |
typedef std::vector< Interface * > | interface_list_t |
typedef std::vector< Symbol * > | symbols_list_t |
typedef std::map< Symbol *, std::set< param_direction_t > > | symbol_directions_map_t |
Public Member Functions | |
Group (const std::string &name) | |
Constructor. More... | |
const std::string & | getName () const |
This function returns the group name. More... | |
void | addInterface (Interface *iface) |
This function will add pointer to interface into vector of group interfaces. More... | |
const interface_list_t & | getInterfaces () const |
This function returns vector with pointers to interfaces belonging to the group. More... | |
void | addDirToSymbolsMap (Symbol *symbol, param_direction_t dir) |
This function will add direction for specified symbol held in a symbol map. More... | |
const std::set< param_direction_t > | getSymbolDirections (Symbol *symbol) const |
This function returns set with symbol directions. More... | |
const symbols_list_t & | getSymbols () const |
This function returns vector with symbols. More... | |
void | setTemplate (cpptempl::data_map groupTemplate) |
This function will set group template. More... | |
cpptempl::data_map & | getTemplate () |
This function returns group template. More... | |
std::string | getDescription () const |
This function returns description about the interface. More... | |
An interface that contains functions.
typedef std::vector<Interface *> erpcgen::Group::interface_list_t |
Vector of interfaces belongs to group.
typedef std::map<Symbol *, std::set<param_direction_t> > erpcgen::Group::symbol_directions_map_t |
Map symbol with direction in which is used in current group.
typedef std::vector<Symbol *> erpcgen::Group::symbols_list_t |
Vector of symbols belongs to group.
|
inlineexplicit |
Constructor.
[in] | name | Group name. |
void Group::addDirToSymbolsMap | ( | Symbol * | symbol, |
param_direction_t | dir | ||
) |
This function will add direction for specified symbol held in a symbol map.
[in] | symbol | Symbol for which direction should be added. |
[in] | dir | Direction of the symbol. |
void Group::addInterface | ( | Interface * | iface | ) |
This function will add pointer to interface into vector of group interfaces.
[in] | iface | Pointer to interface. |
string Group::getDescription | ( | ) | const |
This function returns description about the interface.
|
inline |
This function returns vector with pointers to interfaces belonging to the group.
|
inline |
This function returns the group name.
const set< param_direction_t > Group::getSymbolDirections | ( | Symbol * | symbol | ) | const |
This function returns set with symbol directions.
[in] | symbol | Symbol which direction set should be returned. |
|
inline |
This function returns vector with symbols.
Unique symbols are added into vector within addDirToSymbolsMap() function.
|
inline |
This function returns group template.
void Group::setTemplate | ( | cpptempl::data_map | groupTemplate | ) |
This function will set group template.
[in] | groupTemplate | Group template defined as data map. |