Ipopt  3.12.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros
RegisteredTNLP.hpp File Reference
#include "IpTNLP.hpp"
#include <map>

Go to the source code of this file.

Classes

class  RegisteredTNLP
 Class implemented the NLP discretization of. More...
 
class  RegisteredTNLPs
 

Macros

#define REGISTER_TNLP(class_constructor, name)
 

Macro Definition Documentation

#define REGISTER_TNLP (   class_constructor,
  name 
)
Value:
class RegisteredTNLP_Setup_ ## name : public RegisteredTNLPs \
{ \
public: \
RegisteredTNLP_Setup_ ## name() \
: \
RegisteredTNLPs(new class_constructor, #name) \
{ } \
RegisteredTNLP_Setup_ ## name* KeepCompilerFromRemovingThis(); \
}; \
\
RegisteredTNLP_Setup_ ## name RegisteredTNLP_Setup_ ## name ## instance_; \
RegisteredTNLP_Setup_ ## name* \
RegisteredTNLP_Setup_ ## name::KeepCompilerFromRemovingThis() \
{ return &RegisteredTNLP_Setup_ ## name ## instance_; }
RegisteredTNLPs(const SmartPtr< RegisteredTNLP > &tnlp, const std::string name)

Definition at line 46 of file RegisteredTNLP.hpp.