Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ModuleSymbol Class Reference

Represents a symbol in a shared object / module / DLL. More...

#include <symbol.h>

Inheritance diagram for ModuleSymbol:

Inheritance graph
[legend]
Collaboration diagram for ModuleSymbol:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleSymbol ()
 Creates a NULL symbol.

 ModuleSymbol (const ModuleSymbol &s)
 Copy constructor as usual.

 ~ModuleSymbol ()
 Destructor; nothing special.

ModuleSymboloperator= (const ModuleSymbol &s)
 Standard assignment operator.

void * ptr () const
 Get the symbol pointer, no casting applied:.

bool operator! () const
 Check for NULL pointers:.

 operator bool () const
SharedObject object () const
 Get the associated shared object.


Private Member Functions

 ModuleSymbol (void *_ptr, const SharedObject &_so)
 Module symbols are created by SharedObject and never directly.


Private Attributes

void * sptr
 This is the symbol pointer; no casting applied.

SharedObject so
 Associated shared object for reference counting.


Friends

class _ISharedObject

Detailed Description

Represents a symbol in a shared object / module / DLL.

Author:
Wolfgang Wieser ] wwieser (a) gmx <*> de [
This class is a symbol which was looked up in a shared object.
It is returned by SharedObject::lookup().

This is a completely "C++-safe" type (assignment & copy constructor).
See the docu for file pool.h for detailed information.

Definition at line 34 of file symbol.h.


Constructor & Destructor Documentation

ModuleSymbol::ModuleSymbol void *  _ptr,
const SharedObject _so
[inline, private]
 

Module symbols are created by SharedObject and never directly.

Definition at line 44 of file symbol.h.

References SharedObject, so, and sptr.

ModuleSymbol::ModuleSymbol  )  [inline]
 

Creates a NULL symbol.

Definition at line 47 of file symbol.h.

References so, and sptr.

ModuleSymbol::ModuleSymbol const ModuleSymbol s  )  [inline]
 

Copy constructor as usual.

Definition at line 49 of file symbol.h.

References so, and sptr.

ModuleSymbol::~ModuleSymbol  )  [inline]
 

Destructor; nothing special.

Definition at line 51 of file symbol.h.


Member Function Documentation

SharedObject ModuleSymbol::object  )  const [inline]
 

Get the associated shared object.

Definition at line 66 of file symbol.h.

References SharedObject, and so.

ModuleSymbol::operator bool  )  const [inline]
 

Definition at line 63 of file symbol.h.

References sptr.

bool ModuleSymbol::operator!  )  const [inline]
 

Check for NULL pointers:.

Definition at line 62 of file symbol.h.

References sptr.

ModuleSymbol& ModuleSymbol::operator= const ModuleSymbol s  )  [inline]
 

Standard assignment operator.

Definition at line 54 of file symbol.h.

References so, and sptr.

void* ModuleSymbol::ptr  )  const [inline]
 

Get the symbol pointer, no casting applied:.

Definition at line 58 of file symbol.h.

References sptr.

Referenced by ModuleFunction< FPTR >::fptr().


Friends And Related Function Documentation

friend class _ISharedObject [friend]
 

Definition at line 36 of file symbol.h.


Member Data Documentation

SharedObject ModuleSymbol::so [private]
 

Associated shared object for reference counting.

Definition at line 41 of file symbol.h.

Referenced by ModuleSymbol(), object(), and operator=().

void* ModuleSymbol::sptr [private]
 

This is the symbol pointer; no casting applied.

Definition at line 39 of file symbol.h.

Referenced by ModuleSymbol(), operator bool(), operator!(), operator=(), and ptr().


The documentation for this class was generated from the following file:
Generated on Sat Feb 19 22:35:32 2005 for Ray by doxygen 1.3.5