|
| virtual void | initialize (unsigned nx, unsigned ny, unsigned element_size)=0 |
| | Allocate grid memory with value. More...
|
| |
| virtual void | get (unsigned &nx, unsigned &ny, unsigned &element_size) const =0 |
| | Get grid information. More...
|
| |
| virtual size_t | count (const parallel_driver ¶llel) const =0 |
| | Count the number of active cells. More...
|
| |
| virtual void | copy (const array_core2 &array, std::function< void(void *target, const void *src)> copy_func, const parallel_driver ¶llel)=0 |
| | Copy grid. More...
|
| |
| virtual void | set (int i, int j, std::function< void(void *value_ptr, bool &active)> func)=0 |
| | Set a value of a cell. More...
|
| |
| virtual const void * | operator() (int i, int j, bool &filled) const =0 |
| | Get a value of a cell. More...
|
| |
| virtual void | parallel_actives (std::function< void(int i, int j, void *value_ptr, bool &active, const bool &filled, int thread_index)> func, const parallel_driver ¶llel)=0 |
| | Loop over all the active cells in parallel. More...
|
| |
| virtual void | serial_actives (std::function< bool(int i, int j, void *value_ptr, bool &active, const bool &filled)> func)=0 |
| | Loop over all the active cells in serial order. More...
|
| |
| virtual void | const_parallel_actives (std::function< void(int i, int j, const void *value_ptr, const bool &filled, int thread_index)> func, const parallel_driver ¶llel) const =0 |
| | Loop over all the active cells in parallel by read-only fashion. More...
|
| |
| virtual void | const_serial_actives (std::function< bool(int i, int j, const void *value_ptr, const bool &filled)> func) const =0 |
| | Loop over all the active cells in serial order by read-only fashion. More...
|
| |
| virtual void | parallel_all (std::function< void(int i, int j, void *value_ptr, bool &active, const bool &filled, int thread_index)> func, const parallel_driver ¶llel)=0 |
| | Loop over all the cells in parallel. More...
|
| |
| virtual void | serial_all (std::function< bool(int i, int j, void *value_ptr, bool &active, const bool &filled)> func)=0 |
| | Loop over all the cells in serial order. More...
|
| |
| virtual void | const_parallel_all (std::function< void(int i, int j, const void *value_ptr, const bool &active, const bool &filled, int thread_index)> func, const parallel_driver ¶llel) const =0 |
| | Loop over all the cells in parallel by read-only fashion. More...
|
| |
| virtual void | const_serial_all (std::function< bool(int i, int j, const void *value_ptr, const bool &active, const bool &filled)> func) const =0 |
| | Loop over all the cells in serial order by read-only fashion. More...
|
| |
| virtual void | dilate (std::function< void(int i, int j, void *value_ptr, bool &active, const bool &filled, int thread_index)> func, const parallel_driver ¶llel)=0 |
| | Dilate cells. More...
|
| |
| virtual void | flood_fill (std::function< bool(void *value_ptr)> inside_func, const parallel_driver ¶llel)=0 |
| | Perform flood fill. More...
|
| |
| virtual void | const_parallel_inside (std::function< void(int i, int j, const void *value_ptr, const bool &active, int thread_index)> func, const parallel_driver ¶llel) const =0 |
| | Loop over all the filled cells in parallel by read-only fashion. More...
|
| |
| virtual void | const_serial_inside (std::function< bool(int i, int j, const void *value_ptr, const bool &active)> func) const =0 |
| | Loop over all the filled cells in serial order by read-only fashion. More...
|
| |
| virtual void | recursive_load (configuration &config) override |
| | Start recursively load configurables. More...
|
| |
| virtual void | recursive_configure (configuration &config) override |
| | Recursively call configure. More...
|
| |
|
| recursive_configurable ()=default |
| | Default constructor.
|
| |
| virtual void | recursive_initialize (const configurable::environment_map &environment=configurable::environment_map()) |
| | Initialize the program itself and relay the same to its children. Used to get things ready for actual use. More...
|
| |
| virtual bool | is_ready () const |
| | Get if the instance is initialized. More...
|
| |
| virtual void | add_child (configurable *child) |
| | Add a child instance. More...
|
| |
| virtual void | add_child (recursive_configurable *child) |
| | Add a child instance. More...
|
| |
| virtual void | remove_child (configurable *child) |
| | Remove a child instance. More...
|
| |
| virtual void | remove_child (recursive_configurable *child) |
| | Remove a child instance. More...
|
| |
|
virtual void | setup_now (configuration &config=get_global_configuration()) override |
| | Run recursive_load - recursive_configure - recursive_initialize processes.
|
| |
| virtual bool | not_recursive () override |
| | Check if this instance is not derived from recursive_configurable. More...
|
| |
| void | set_environment (std::string name, const void *value) |
| | Set the pointer to an environmental value associated with an input name. More...
|
| |
| virtual void | load (configuration &config) |
| | Load the program. Used to load files and libraries into memory. More...
|
| |
| virtual void | configure (configuration &config) |
| | Configure the program. Used to load and set parameters. More...
|
| |
|
| module () |
| | Default constructor for module.
|
| |
|
virtual | ~module () |
| | Default destructor for module.
|
| |
| virtual std::string | get_module_name () const |
| | Get the module name. More...
|
| |
|
| credit ()=default |
| | Default constructor.
|
| |
| | credit (std::string name, std::string argument_name) |
| | Constructor for credit. More...
|
| |
| virtual void | set_name (std::string name, std::string argument_name="") |
| | Set name (and perhaps, argument name together) More...
|
| |
|
virtual std::string | get_name () const |
| | Get the name.
|
| |
| virtual void | set_argument_name (std::string argument_name) |
| | Set an argument name. More...
|
| |
| virtual std::string | get_argument_name () const |
| | Get an argument name. More...
|
| |
| virtual double | get_version () const |
| | Get version. More...
|
| |
| virtual std::string | get_author () const |
| | Get author's name. More...
|
| |
| virtual std::tuple< int, int, int > | get_date () const |
| | Get currently set date. More...
|
| |
| virtual std::string | get_email_address () const |
| | Get email address. More...
|
| |
| virtual bool | send_message (std::string message, void *ptr=nullptr) |
| | Send a message. More...
|
| |
| virtual bool | const_send_message (std::string message, void *ptr=nullptr) const |
| | Send a message. More...
|
| |
|
|
using | environment_map = std::map< std::string, const void * > |
| | Type for environment_map.
|
| |
| static configuration & | set_global_configuration (const configuration &config) |
| | Assign the global settings of the program. More...
|
| |
| static configuration & | get_global_configuration () |
| | Get the global settings of the program. More...
|
| |
| template<class T > |
| static const T & | get_env (const environment_map &environment, std::string key) |
| | Extract an specified type of pointer from the input environment. More...
|
| |
| static std::string | module_libpath (std::string module_name) |
| | Get the path to the dynamic library. e.g., "mylib" -> "symlink-public/lib/libshiokaze_mylib.dylib". More...
|
| |
| static module * | alloc_module (configuration &config, std::string arg_name, std::string default_module_name, std::string description) |
| | Automatically reads the parameter "arg_name" to fetch the name for the library, and allocate the library. More...
|
| |
| static module * | alloc_module (std::string path) |
| | Reads the dynamic library of a class module, allocate, and return the pointer to it. More...
|
| |
| static unsigned | close_all_handles () |
| | Close all the handles that are still unloaded. More...
|
| |
| template<class T > |
| static std::unique_ptr< T > | unique_alloc_module (configuration &config, std::string arg_name, std::string default_module_name, std::string description) |
| | Allocate the module and cast to the a specified class T. More...
|
| |
| static unsigned | count_open_modules () |
| | Count all the open modules. More...
|
| |
|
std::string | m_name |
| | Name of credit.
|
| |
|
std::string | m_argument_name |
| | Argument name.
|
| |
Core module class for two dimensional array designed to be used in array2 class.