#include <sdl.h>
Inheritance diagram for sdl::ConcreteClass< T >:
Public Member Functions | |
virtual Object * | new_object () const throw (UnknownMember) |
default constructor (i.e., constructor with no parameters). | |
virtual Object * | new_object (int c) const throw (UnknownMember) |
constructor that takes an int. | |
virtual Object * | new_object (char c) const throw (UnknownMember) |
constructor that takes a char. | |
virtual Object * | new_object (long c) const throw (UnknownMember) |
constructor that takes a long. | |
virtual Object * | new_object (bool c) const throw (UnknownMember) |
constructor that takes a bool. | |
virtual Object * | new_object (float c) const throw (UnknownMember) |
constructor that takes a float. | |
virtual Object * | new_object (double c) const throw (UnknownMember) |
constructor that takes a double. | |
virtual Object * | new_object (const string &c) const throw (UnknownMember) |
constructor that takes a const string reference. | |
virtual Object * | new_object (const char *c) const throw (UnknownMember) |
constructor that takes a const char pointer. | |
virtual Object * | new_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. |
This class is used in the implementation of a dynamically-loadable class as a wrapper for that class. See Implementing Dynamic Classes for details.
|
registers a member function that takes a void * parameter and returns void.
|
|
registers a member function that takes a const char * parameter and returns void.
|
|
registers a member function that takes a const string & parameter and returns void.
|
|
registers a member function that takes a double parameter and returns void.
|
|
registers a member function that takes a float parameter and returns void.
|
|
registers a member function that takes a bool parameter and returns void.
|
|
registers a member function that takes a long parameter and returns void.
|
|
registers a member function that takes a char parameter and returns void.
|
|
registers a member function that takes an int parameter and returns void
|
|
registers a member function that takes a parameter and returns void
|
|
registers a data member of type void * to the given name.
|
|
registers a data member of type const char * to the given name.
|
|
registers a data member of type char * to the given name.
|
|
registers a data member of type int to the given name.
|
|
registers a data member of type float to the given name.
|
|
registers a data member of type double to the given name.
|
|
registers a data member of type bool to the given name.
|
|
registers a data member of type long to the given name.
|
|
registers a data member of type char to the given name.
|
|
registers a data member of type int to the given name.
|
|
constructor that takes a void pointer.
Implements sdl::Class. |
|
constructor that takes a const char pointer.
Implements sdl::Class. |
|
constructor that takes a const string reference.
Implements sdl::Class. |
|
constructor that takes a double.
Implements sdl::Class. |
|
constructor that takes a float.
Implements sdl::Class. |
|
constructor that takes a bool.
Implements sdl::Class. |
|
constructor that takes a long.
Implements sdl::Class. |
|
constructor that takes a char.
Implements sdl::Class. |
|
constructor that takes an int.
Implements sdl::Class. |
|
default constructor (i.e., constructor with no parameters).
Implements sdl::Class. |