MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChClassRegisterCommon Class Reference

#include <CHclassRegister.h>

Inheritance diagram for chrono::ChClassRegisterCommon:

Inheritance graph
[legend]
Collaboration diagram for chrono::ChClassRegisterCommon:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void * create (std::string &class_name)=0
virtual std::string get_conventional_name (std::string &compiler_name)=0

Static Public Member Functions

static
ChClassRegisterCommon ** 
GetStaticHeadAddr ()

Public Attributes

ChClassRegisterCommonm_pNext


Detailed Description

ChClassRegisterCommon is a base abstract class which allows a common management of all template classes ChClassRegister<t>.

Member Function Documentation

ChClassRegisterCommon ** chrono::ChClassRegisterCommon::GetStaticHeadAddr (  )  [static]

All instancied ChClassRegister<t> are collect inside an unique global list. this 'head' is the head of that STATIC list.

The root of the list of ChClassRegister<t> objects, each will contain the name ID of the class,and other useful things such as the method which can create a 't' object in runtime.

virtual void* chrono::ChClassRegisterCommon::create ( std::string &  class_name  )  [pure virtual]

The signature of create method for derived classes.

Implemented in chrono::ChClassRegisterABSTRACT< t >, and chrono::ChClassRegister< t >.

virtual std::string chrono::ChClassRegisterCommon::get_conventional_name ( std::string &  compiler_name  )  [pure virtual]

The signature of get_conventional_name method for derived classes.

Implemented in chrono::ChClassRegisterABSTRACT< t >.


Member Data Documentation

ChClassRegisterCommon* chrono::ChClassRegisterCommon::m_pNext

Each item in the gloabl list of ChClassRegister<t> object has a pointer to the next item named m_pNext. The last element has a NULL value inside m_pNext.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen