Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | List of all members
USIDelegate Class Reference

#include <delegate.h>

Collaboration diagram for USIDelegate:

Public Member Functions

 USIDelegate (std::string name)
 
 USIDelegate (sc_core::sc_object *obj)
 
sc_core::sc_object * toObject ()
 
 operator sc_core::sc_object * ()
 
 ~USIDelegate ()
 
USIObject get_if_tuple ()
 Return the list of interface implementations. More...
 

Detailed Description

Delegation object. This object handles the delegation to the different interface like USIBaseDelegator. The USIBaseDelegator implements the core functionality of the sc_object interface. The second half of the object is implemented in the script language dependend delegate.i All we cover here in C++ is the construction and collection of interface classes.

Constructor & Destructor Documentation

USIDelegate::USIDelegate ( std::string  name)
inline

Constructor avaliable from the scripting language. Just provide a hierachial sc_object or gs_param name and it will create a corresponding USIDelegate.

Parameters
nameHierachail name of the corresponding sc_object.

References PyScObjectGenerator::find_object_by_name(), and PyScObjectGenerator::find_object_by_ptr().

Here is the call graph for this function:

USIDelegate::USIDelegate ( sc_core::sc_object *  obj)
inline

Copy constructor from sc_objects. Only available for convinience and only usable from C++

Parameters
objsc_object to bind to.
USIDelegate::~USIDelegate ( )
inline

Destructor. Decrements the ref count of the interface implementation list. This is scripting language dependend.

Todo:
Decrement ifs count

Member Function Documentation

USIObject USIDelegate::get_if_tuple ( )
inline

Return the list of interface implementations.

USIDelegate::operator sc_core::sc_object * ( )
inline

conversion operator to sc_object. Only available in C++ to use for implecit convertion in other interface implementations.

sc_core::sc_object* USIDelegate::toObject ( )
inline

Return the connected sc_object. Only available in C++ and used for converting back.


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