Simple Dynamic Loader Library Documentation (v. 1.1.0)
Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

sdl::ConcreteClass< T > Class Template Reference

concrete implementation of the base meta-class. More...

#include <sdl.h>

Inheritance diagram for sdl::ConcreteClass< T >:

sdl::Class List of all members.

Public Member Functions

virtual Objectnew_object () const throw (UnknownMember)
 default constructor (i.e., constructor with no parameters).
virtual Objectnew_object (int c) const throw (UnknownMember)
 constructor that takes an int.
virtual Objectnew_object (char c) const throw (UnknownMember)
 constructor that takes a char.
virtual Objectnew_object (long c) const throw (UnknownMember)
 constructor that takes a long.
virtual Objectnew_object (bool c) const throw (UnknownMember)
 constructor that takes a bool.
virtual Objectnew_object (float c) const throw (UnknownMember)
 constructor that takes a float.
virtual Objectnew_object (double c) const throw (UnknownMember)
 constructor that takes a double.
virtual Objectnew_object (const string &c) const throw (UnknownMember)
 constructor that takes a const string reference.
virtual Objectnew_object (const char *c) const throw (UnknownMember)
 constructor that takes a const char pointer.
virtual Objectnew_object (void *c) const throw (UnknownMember)
 constructor that takes a void pointer.
binding data members and member functions
These methods are used in the initialization of the module that implements a dynamically-loadable class. Specifically, they are used to bind data members and members function of a class to names.

void bind (const string &name, int T::*m) throw ()
 registers a data member of type int to the given name.
void bind (const string &name, char T::*m) throw ()
 registers a data member of type char to the given name.
void bind (const string &name, long T::*m) throw ()
 registers a data member of type long to the given name.
void bind (const string &name, bool T::*m) throw ()
 registers a data member of type bool to the given name.
void bind (const string &name, double T::*m) throw ()
 registers a data member of type double to the given name.
void bind (const string &name, float T::*m) throw ()
 registers a data member of type float to the given name.
void bind (const string &name, string T::*m) throw ()
 registers a data member of type int to the given name.
void bind (const string &name, char *T::*m) throw ()
 registers a data member of type char * to the given name.
void bind (const string &name, const char *T::*m) throw ()
 registers a data member of type const char * to the given name.
void bind (const string &name, void *T::*m) throw ()
 registers a data member of type void * to the given name.
void bind (const string &name, void(T::*m)()) throw ()
 registers a member function that takes a parameter and returns void
void bind (const string &name, void(T::*m)(int)) throw ()
 registers a member function that takes an int parameter and returns void
void bind (const string &name, void(T::*m)(char)) throw ()
 registers a member function that takes a char parameter and returns void.
void bind (const string &name, void(T::*m)(long)) throw ()
 registers a member function that takes a long parameter and returns void.
void bind (const string &name, void(T::*m)(bool)) throw ()
 registers a member function that takes a bool parameter and returns void.
void bind (const string &name, void(T::*m)(float)) throw ()
 registers a member function that takes a float parameter and returns void.
void bind (const string &name, void(T::*m)(double)) throw ()
 registers a member function that takes a double parameter and returns void.
void bind (const string &name, void(T::*m)(const string &)) throw ()
 registers a member function that takes a const string & parameter and returns void.
void bind (const string &name, void(T::*m)(const char *)) throw ()
 registers a member function that takes a const char * parameter and returns void.
void bind (const string &name, void(T::*m)(void *)) throw ()
 registers a member function that takes a void * parameter and returns void.
binding constructor functions
These methods are used to define the constructor functions for a dynamically-loadable class. Like the binding methods, these methods are used in the initialization function of the module that implements a dynamically-loadable class.

void set_constructor (T *(c)(void)) throw ()
 defines a default constructor function (i.e., one with no parameters).
void set_constructor (T *(c)(int)) throw ()
 defines a constructor function that takes an int.
void set_constructor (T *(c)(char)) throw ()
 defines a constructor function that takes a char.
void set_constructor (T *(c)(long)) throw ()
 defines a constructor function that takes a long.
void set_constructor (T *(c)(bool)) throw ()
 defines a constructor function that takes a bool.
void set_constructor (T *(c)(float)) throw ()
 defines a constructor function that takes a float.
void set_constructor (T *(c)(double)) throw ()
 defines a constructor function that takes a double.
void set_constructor (T *(c)(const string &)) throw ()
 defines a constructor function that takes a string.
void set_constructor (T *(c)(const char *)) throw ()
 defines a constructor function that takes a char pointer.
void set_constructor (T *(c)(void *)) throw ()
 defines a constructor function that takes a void pointer.

Detailed Description

template<class T>
class sdl::ConcreteClass< T >

concrete implementation of the base meta-class.

This class is used in the implementation of a dynamically-loadable class as a wrapper for that class. See Implementing Dynamic Classes for details.


Member Function Documentation

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(void *)  m
throw () [inline]
 

registers a member function that takes a void * parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(const char *)  m
throw () [inline]
 

registers a member function that takes a const char * parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(const string &)  m
throw () [inline]
 

registers a member function that takes a const string & parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(double)  m
throw () [inline]
 

registers a member function that takes a double parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(float)  m
throw () [inline]
 

registers a member function that takes a float parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(bool)  m
throw () [inline]
 

registers a member function that takes a bool parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(long)  m
throw () [inline]
 

registers a member function that takes a long parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(char)  m
throw () [inline]
 

registers a member function that takes a char parameter and returns void.

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)(int)  m
throw () [inline]
 

registers a member function that takes an int parameter and returns void

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void(T::*)()  m
throw () [inline]
 

registers a member function that takes a parameter and returns void

Parameters:
name name associated with the member function.
m pointer to the member function.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
void *T::*  m
throw () [inline]
 

registers a data member of type void * to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
const char *T::*  m
throw () [inline]
 

registers a data member of type const char * to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
char *T::*  m
throw () [inline]
 

registers a data member of type char * to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
string T::*  m
throw () [inline]
 

registers a data member of type int to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
float T::*  m
throw () [inline]
 

registers a data member of type float to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
double T::*  m
throw () [inline]
 

registers a data member of type double to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
bool T::*  m
throw () [inline]
 

registers a data member of type bool to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
long T::*  m
throw () [inline]
 

registers a data member of type long to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
char T::*  m
throw () [inline]
 

registers a data member of type char to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
void sdl::ConcreteClass< T >::bind const string &  name,
int T::*  m
throw () [inline]
 

registers a data member of type int to the given name.

Parameters:
name name associated with the data member.
m pointer to the data member.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object void *  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a void pointer.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object const char *  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a const char pointer.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object const string &  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a const string reference.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object double  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a double.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object float  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a float.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object bool  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a bool.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object long  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a long.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object char  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes a char.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object int  c  )  const throw (UnknownMember) [inline, virtual]
 

constructor that takes an int.

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.

template<class T>
virtual Object* sdl::ConcreteClass< T >::new_object  )  const throw (UnknownMember) [inline, virtual]
 

default constructor (i.e., constructor with no parameters).

Exceptions:
UnknownMember when no such constructor function is available.

Implements sdl::Class.


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