OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::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::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 ( )
inline

Definition at line 85 of file t_function.h.

Member Function Documentation

t_struct* t_function::get_arglist ( ) const
inline

Definition at line 95 of file t_function.h.

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

Definition at line 91 of file t_function.h.

t_type* t_function::get_returntype ( ) const
inline

Definition at line 87 of file t_function.h.

t_struct* t_function::get_xceptions ( ) const
inline

Definition at line 99 of file t_function.h.

bool t_function::is_oneway ( ) const
inline

Definition at line 103 of file t_function.h.

Member Data Documentation

t_struct* t_function::arglist_
private

Definition at line 119 of file t_function.h.

std::string t_function::name_
private

Definition at line 118 of file t_function.h.

bool t_function::oneway_
private

Definition at line 121 of file t_function.h.

t_type* t_function::returntype_
private

Definition at line 117 of file t_function.h.

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: