basis::nameable Class Reference

Root object for any class that knows its own name. More...

#include <contracts.h>

Inheritance diagram for basis::nameable:
Inheritance graph
[legend]
Collaboration diagram for basis::nameable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * class_name () const =0
 Returns the bare name of this class as a constant character pointer.

Detailed Description

Root object for any class that knows its own name.

This is a really vital thing for debugging to be very helpful, and unfortunately it's not provided by C++.

Definition at line 122 of file contracts.h.


Member Function Documentation

virtual const char* basis::nameable::class_name (  )  const [pure virtual]

Returns the bare name of this class as a constant character pointer.

The name returned here is supposed to be just a class name and not provide any more information than that. It is especially important not to add any syntactic elements like '::' to the name, since a bare alphanumeric name is expected.

Implemented in application::base_application, and basis::text_formable.

Referenced by structures::hash_table< key_type, contents >::acquire(), structures::hash_table< key_type, contents >::add(), structures::hash_table< key_type, contents >::apply(), structures::hash_table< key_type, contents >::elements(), structures::hash_table< key_type, contents >::find(), structures::hash_table< key_type, contents >::rehash(), structures::hash_table< key_type, contents >::reset(), structures::hash_table< key_type, contents >::zap(), and structures::hash_table< key_type, contents >::~hash_table().


The documentation for this class was generated from the following file:
Generated on Sat Jan 28 04:25:23 2012 for hoople2 project by  doxygen 1.6.3