rlmm::basic_function_map< Lock > Struct Template Reference
[The Readline classes.]

#include <rlmm/function_map.hh>

Inheritance diagram for rlmm::basic_function_map< Lock >:

Inheritance graph
[legend]
Collaboration diagram for rlmm::basic_function_map< Lock >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename Lock>
struct rlmm::basic_function_map< Lock >

Map of currently defined functions.


Public Member Functions

virtual ~basic_function_map ()
command_t get (const std::string &name)
bool add (const std::string &name, command_t cmd)
template<class T>
bool add (const std::string &name)
std::list< std::string > name_list () const
void list ()

Protected Member Functions

 basic_function_map ()
 basic_function_map (const basic_function_map &o)
basic_function_mapoperator= (const basic_function_map &o)

Friends

class singleton


Constructor & Destructor Documentation

template<typename Lock>
rlmm::basic_function_map< Lock >::basic_function_map  )  [inline, protected]
 

Constructor.

template<typename Lock>
rlmm::basic_function_map< Lock >::basic_function_map const basic_function_map< Lock > &  o  )  [inline, protected]
 

Constructor.

template<typename Lock>
virtual rlmm::basic_function_map< Lock >::~basic_function_map  )  [inline, virtual]
 

Destructor.


Member Function Documentation

template<typename Lock>
template<class T>
bool rlmm::basic_function_map< Lock >::add const std::string &  name  )  [inline]
 

add the named command.

Parameters:
name the name of the command.
Returns:
true on success, false on errors.

template<typename Lock>
bool rlmm::basic_function_map< Lock >::add const std::string &  name,
command_t  cmd
[inline]
 

add the named command.

Parameters:
name the name of the command.
cmd The command function.
Returns:
true on success, false on errors.

template<typename Lock>
command_t rlmm::basic_function_map< Lock >::get const std::string &  name  )  [inline]
 

get the named command.

Parameters:
name Name to look up.
Returns:
pointer to command wrapper function.

template<typename Lock>
void rlmm::basic_function_map< Lock >::list  )  [inline]
 

Show a list of currently defined functions.

template<typename Lock>
std::list< std::string > rlmm::basic_function_map< Lock >::name_list  )  const [inline]
 

Get a list of defined function names.

Returns:
list of defined function names.

template<typename Lock>
basic_function_map& rlmm::basic_function_map< Lock >::operator= const basic_function_map< Lock > &  o  )  [inline, protected]
 

Constructor.


Friends And Related Function Documentation

template<typename Lock>
friend class singleton [friend]
 

Base class is a friend.


The documentation for this struct was generated from the following file:
Top of page
Last update Fri Aug 26 15:19:53 2005
Christian Holm
Created by DoxyGen 1.4.4