OpenSDN source code
t_function Class Reference

#include <t_function.h>

Inheritance diagram for t_function:
Collaboration diagram for t_function:

Public Member Functions

 t_function (t_type *returntype, std::string name, t_struct *arglist, bool oneway=false)
 
 t_function (t_type *returntype, std::string name, t_struct *arglist, t_struct *xceptions, bool oneway=false)
 
 ~t_function ()
 
t_typeget_returntype () const
 
const std::string & get_name () const
 
t_structget_arglist () const
 
t_structget_xceptions () const
 
bool is_oneway () const
 
- Public Member Functions inherited from t_doc
 t_doc ()
 
void set_doc (const std::string &doc)
 
const std::string & get_doc () const
 
bool has_doc ()
 

Private Attributes

t_typereturntype_
 
std::string name_
 
t_structarglist_
 
t_structxceptions_
 
bool oneway_
 

Detailed Description

Representation of a function. Key parts are return type, function name, optional modifiers, and an argument list, which is implemented as a thrift struct.

Definition at line 34 of file t_function.h.

Constructor & Destructor Documentation

◆ t_function() [1/2]

t_function::t_function ( t_type returntype,
std::string  name,
t_struct arglist,
bool  oneway = false 
)
inline

Definition at line 36 of file t_function.h.

◆ t_function() [2/2]

t_function::t_function ( t_type returntype,
std::string  name,
t_struct arglist,
t_struct xceptions,
bool  oneway = false 
)
inline

Definition at line 58 of file t_function.h.

Here is the call graph for this function:

◆ ~t_function()

t_function::~t_function ( )
inline

Definition at line 85 of file t_function.h.

Member Function Documentation

◆ get_arglist()

t_struct* t_function::get_arglist ( ) const
inline

Definition at line 95 of file t_function.h.

◆ get_name()

const std::string& t_function::get_name ( ) const
inline

Definition at line 91 of file t_function.h.

◆ get_returntype()

t_type* t_function::get_returntype ( ) const
inline

Definition at line 87 of file t_function.h.

◆ get_xceptions()

t_struct* t_function::get_xceptions ( ) const
inline

Definition at line 99 of file t_function.h.

◆ is_oneway()

bool t_function::is_oneway ( ) const
inline

Definition at line 103 of file t_function.h.

Member Data Documentation

◆ arglist_

t_struct* t_function::arglist_
private

Definition at line 119 of file t_function.h.

◆ name_

std::string t_function::name_
private

Definition at line 118 of file t_function.h.

◆ oneway_

bool t_function::oneway_
private

Definition at line 121 of file t_function.h.

◆ returntype_

t_type* t_function::returntype_
private

Definition at line 117 of file t_function.h.

◆ xceptions_

t_struct* t_function::xceptions_
private

Definition at line 120 of file t_function.h.


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