Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Operation Class Reference

#include <elm/rtti/Class.h>

+ Inheritance diagram for Operation:

Public Types

enum  kind_t {
  NONE, CONSTRUCTOR, METHOD, STATIC,
  ITER
}
 

Public Member Functions

 Operation (kind_t kind, cstring name, const Type &rtype=void_type)
 
 Operation (kind_t kind, cstring name, const List< Parameter > &pars, const Type &rtype=void_type)
 
virtual ~Operation (void)
 
kind_t kind (void) const
 
cstring name (void) const
 
const TypereturnType (void) const
 
const List< Parameter > & parameters (void) const
 
virtual Variant call (const Vector< Variant > &args) const
 

Protected Member Functions

void add (const Parameter &param)
 

Member Enumeration Documentation

◆ kind_t

enum kind_t
Enumerator
NONE 
CONSTRUCTOR 
METHOD 
STATIC 
ITER 

Constructor & Destructor Documentation

◆ Operation() [1/2]

Operation ( kind_t  kind,
cstring  name,
const Type rtype = void_type 
)

◆ Operation() [2/2]

Operation ( kind_t  kind,
cstring  name,
const List< Parameter > &  pars,
const Type rtype = void_type 
)

◆ ~Operation()

~Operation ( void  )
virtual

Member Function Documentation

◆ add()

◆ call()

◆ kind()

kind_t kind ( void  ) const
inline

◆ name()

cstring name ( void  ) const
inline

◆ parameters()

const List< Parameter > & parameters ( void  ) const
inline

◆ returnType()

const Type & returnType ( void  ) const
inline

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