version 1.3, 2002/03/19 21:03:37
|
version 1.4, 2002/03/20 21:25:49
|
|
|
pegasus_module(ModuleController *controller, | pegasus_module(ModuleController *controller, |
const String &id, | const String &id, |
void *module_address, | void *module_address, |
void (*_async_callback)(Uint32, Message *)) |
void (*_async_callback)(Uint32, Message *)) ; |
{ |
|
|
|
} |
|
|
|
pegasus_module(const pegasus_module & mod) |
|
{ |
|
(mod._rep->_reference_count)++; |
|
_rep = mod._rep; |
|
} |
|
|
|
virtual ~pegasus_module() |
|
{ |
|
if( 0 == (_rep->_reference_count.value())) |
|
delete _rep; |
|
| |
} |
pegasus_module(const pegasus_module & mod); |
| |
pegasus_module & pegasus_module::operator= (const pegasus_module & mod) |
|
{ |
|
(mod._rep->_reference_count)++; |
|
if ( ((rep->_reference_count)--) == 0 ) |
|
delete rep; |
|
_rep = mod._rep; |
|
return *this; |
|
} |
|
| |
|
virtual ~pegasus_module(); |
| |
Boolean operator == (const pegasus_module *mod) const |
pegasus_module & operator= (const pegasus_module & mod); |
{ |
Boolean operator == (const pegasus_module *mod) const; |
if(mod->_rep == _rep) |
Boolean operator == (const pegasus_module & mod) const ; |
return true; |
Boolean operator == (const String & mod) const; |
return false; |
Boolean operator == (const void *mod) const; |
} |
|
|
|
Boolean operator == (const String & mod) const |
|
{ |
|
if(_rep->_name == mod) |
|
return true; |
|
return false; |
|
} |
|
|
|
Boolean operator == (const pegasus_module & mod) const |
|
{ |
|
if( mod._rep == _rep ) |
|
return true; |
|
return false; |
|
|
|
} |
|
|
|
Boolean operator == (const void *mod) const |
|
{ |
|
if ( (reinterpret_cast<pegasus_module *>(mod))->_rep == _rep) |
|
return true; |
|
return false; |
|
} |
|
| |
const String & get_name(void); | const String & get_name(void); |
| |
|
|
| |
} | } |
| |
|
|
Boolean operator == (const module_rep *rep) const | Boolean operator == (const module_rep *rep) const |
{ | { |
if (rep == this ) | if (rep == this ) |
|
|
} | } |
| |
| |
|
|
|
|
private: | private: |
module_rep(void); | module_rep(void); |
module_rep(const module_rep & ); | module_rep(const module_rep & ); |
|
|
}; | }; |
| |
| |
|
pegasus_module(const pegasus_module & mod) |
|
{ |
|
(mod._rep->_reference_count)++; |
|
_rep = mod._rep; |
|
} |
|
|
|
virtual ~pegasus_module() |
|
{ |
|
if( 0 == (_rep->_reference_count.value())) |
|
delete _rep; |
|
|
|
} |
|
|
|
|
|
pegasus_module & pegasus_module::operator= (const pegasus_module & mod) |
|
{ |
|
(mod._rep->_reference_count)++; |
|
if ( ((rep->_reference_count)--) == 0 ) |
|
delete rep; |
|
_rep = mod._rep; |
|
return *this; |
|
} |
|
|
|
Boolean pegasus_module::operator== (const pegasus_module *mod) const |
|
{ |
|
if(mod->_rep == _rep) |
|
return true; |
|
return false; |
|
} |
|
|
|
|
|
Boolean pegasus_module::operator== (const pegasus_module & mod) const |
|
{ |
|
if( mod._rep == _rep ) |
|
return true; |
|
return false; |
|
|
|
} |
|
|
|
Boolean pegasus_module::operator == (const String & mod) const |
|
{ |
|
if(_rep->_name == mod) |
|
return true; |
|
return false; |
|
} |
|
|
|
|
|
Boolean pegasus_module::operator == (const void *mod) const |
|
{ |
|
if ( (reinterpret_cast<pegasus_module *>(mod))->_rep == _rep) |
|
return true; |
|
return false; |
|
} |
|
|
|
Boolean pegasus_module::operator == (const void *mod) const |
|
{ |
|
if ( (reinterpret_cast<pegasus_module *>(mod))->_rep == _rep) |
|
return true; |
|
return false; |
|
} |
|
|
|
|
|
|
|
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
| |
#endif // Pegasus_Module_Controller_h |
#endif // Pegasus_Module_Controller_H |