summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx/eolian_wrappers.hh
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:47:07 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:47:07 -0300
commit5a7d60cb778cb21d1d94d71a277feffa2c467473 (patch)
tree6f518dbe1a805eb1f3c8c658e40f65f3f20e1914 /src/bin/eolian_cxx/eolian_wrappers.hh
parent753f6ab9187b050e98032ddbc188cf0a2691edb6 (diff)
eolian-cxx: Added wrappers to handle Eolian_Constructor.
Diffstat (limited to 'src/bin/eolian_cxx/eolian_wrappers.hh')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 726f715164..b4145d198e 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -153,8 +153,12 @@ class_list_all()
153 return efl::eina::iterator<const Eolian_Class>(::eolian_all_classes_get()); 153 return efl::eina::iterator<const Eolian_Class>(::eolian_all_classes_get());
154} 154}
155 155
156 156inline Eolian_Function const&
157 157constructor_function(Eolian_Constructor const& ctor)
158{
159 assert(!!::eolian_constructor_function_get(&ctor));
160 return * ::eolian_constructor_function_get(&ctor);
161}
158 162
159inline efl::eina::iterator<const Eolian_Function> 163inline efl::eina::iterator<const Eolian_Function>
160functions_get(Eolian_Class const& cls) 164functions_get(Eolian_Class const& cls)
@@ -194,6 +198,17 @@ function_type(Eolian_Function const& func)
194 : efl::eolian::eo_function::regular_ 198 : efl::eolian::eo_function::regular_
195 ; 199 ;
196} 200}
201inline bool
202function_is_visible(Eolian_Constructor const& ctor_)
203{
204 Eolian_Function const* func = ::eolian_constructor_function_get(&ctor_);
205 Eolian_Class const* cls = ::eolian_constructor_class_get(&ctor_);
206 assert(::eolian_class_ctor_enable_get(cls));
207 assert(!!cls);
208 assert(!!func);
209 return function_is_visible(*func, method_t::value);
210}
211
197inline efl::eolian::eolian_type_instance 212inline efl::eolian::eolian_type_instance
198function_return_type(Eolian_Function const& func, Eolian_Function_Type func_type = method_t::value) 213function_return_type(Eolian_Function const& func, Eolian_Function_Type func_type = method_t::value)
199{ 214{