Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
binder::EnumBinder Class Reference

#include <enum.hpp>

Inheritance diagram for binder::EnumBinder:
Inheritance graph
[legend]

Public Member Functions

 EnumBinder (clang::EnumDecl *e)
 
string id () const override
 Generate string id that uniquly identify C++ binding object. For functions this is function prototype and for classes forward declaration. More...
 
clang::NamedDecl * named_decl () const override
 
bool bindable () const override
 check if generator can create binding More...
 
virtual void request_bindings_and_skipping (Config const &) override
 check if user requested binding for the given declaration More...
 
void add_relevant_includes (IncludeSet &includes) const override
 extract include needed for this generator and add it to includes vector More...
 
void bind (Context &) override
 generate binding code for this object and all its dependencies More...
 
- Public Member Functions inherited from binder::Binder
virtual ~Binder ()
 
bool binding_requested () const
 
bool skipping_requested () const
 
void request_bindings ()
 request bindings for this generator More...
 
void request_skipping ()
 request skipping for this generator More...
 
bool is_binded () const
 
stringcode ()
 
string const & code () const
 
bool is_in_system_header ()
 return true if object declared in system header More...
 
virtual std::vector
< clang::CXXRecordDecl const * > 
dependencies () const
 
virtual string prefix_code () const
 return prefix portion of bindings code More...
 
 operator std::string () const
 return unique strting ID for this binder More...
 

Private Attributes

clang::EnumDecl * E
 

Additional Inherited Members

- Public Types inherited from binder::Binder
typedef std::string string
 

Constructor & Destructor Documentation

binder::EnumBinder::EnumBinder ( clang::EnumDecl *  e)
inline

Member Function Documentation

void binder::EnumBinder::add_relevant_includes ( IncludeSet includes) const
overridevirtual

extract include needed for this generator and add it to includes vector

Implements binder::Binder.

References binder::add_relevant_includes(), and ObjexxFCL::format::E().

void binder::EnumBinder::bind ( Context context)
overridevirtual
bool binder::EnumBinder::bindable ( ) const
overridevirtual

check if generator can create binding

Implements binder::Binder.

References ObjexxFCL::format::E(), and binder::is_bindable().

string binder::EnumBinder::id ( ) const
overridevirtual

Generate string id that uniquly identify C++ binding object. For functions this is function prototype and for classes forward declaration.

Implements binder::Binder.

References ObjexxFCL::format::E().

clang::NamedDecl* binder::EnumBinder::named_decl ( ) const
inlineoverridevirtual

Implements binder::Binder.

References E.

void binder::EnumBinder::request_bindings_and_skipping ( Config const &  config)
overridevirtual

Member Data Documentation

clang::EnumDecl* binder::EnumBinder::E
private

Referenced by named_decl().


The documentation for this class was generated from the following files: