feat(library/projection): add get_projection_info_map
This commit is contained in:
parent
3cf11dac87
commit
68a34bd1ba
2 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,10 @@ projection_info const * get_projection_info(environment const & env, name const
|
|||
return ext.m_info.find(p);
|
||||
}
|
||||
|
||||
name_map<projection_info> const & get_projection_info_map(environment const & env) {
|
||||
return get_extension(env).m_info;
|
||||
}
|
||||
|
||||
static void projection_info_reader(deserializer & d, shared_environment & senv,
|
||||
std::function<void(asynch_update_fn const &)> &,
|
||||
std::function<void(delayed_update_fn const &)> &) {
|
||||
|
|
|
@ -48,6 +48,9 @@ inline bool is_projection(environment const & env, name const & n) {
|
|||
return get_projection_info(env, n) != nullptr;
|
||||
}
|
||||
|
||||
/** \brief Return the mapping from projection name to associated information */
|
||||
name_map<projection_info> const & get_projection_info_map(environment const & env);
|
||||
|
||||
/** \brief Return true iff the type named \c S can be viewed as
|
||||
a structure in the given environment.
|
||||
|
||||
|
|
Loading…
Reference in a new issue