|
LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
An Generic Object Factory (aka Class Store) More...
#include <factory.h>
Public Types | |
| typedef Cre | Creator |
| creator type | |
| typedef I | Index |
| index type | |
| typedef Com | Compare |
| compare function type | |
Public Member Functions | |
| Factory () | |
| constructor | |
| ~Factory () | |
| destructor | |
| void | reg (Creator c, const Index &idx) |
| register the creator with index variable More... | |
| void | dereg (const Index &idx) |
| deregister the specified creator More... | |
| bool | getCreator (Creator &c, const Index &idx) const |
| get the specified create object More... | |
| std::list< Index > | list () const |
| get the index list More... | |
| std::ostream & | printList (std::ostream &o=std::cout) const |
| print index and the size of creators More... | |
| size_t | size () const |
| get the size of registered index More... | |
| size_t | size (const Index &idx) const |
| get the size of registered creators for the input index More... | |
| RegHolder | autoReg (Creator c, const Index &i) |
| register the creator using AutoReger. used for the automatic registration. More... | |
An Generic Object Factory (aka Class Store)
|
inline |
register the creator using AutoReger. used for the automatic registration.
| c | creator object |
| i | const reference to the index variable |
|
inline |
deregister the specified creator
| idx | deregistered index value |
|
inline |
get the specified create object
| c | reference to the creator variable |
| idx | index value |
|
inline |
get the index list
|
inline |
print index and the size of creators
| o | reference to the output stream |
|
inline |
register the creator with index variable
| c | creator object |
| idx | const reference to the index variable |
|
inline |
get the size of registered index
|
inline |
get the size of registered creators for the input index
| idx | index value |