static int f2c_id_;
static f2c_lookup_type::size_type num_default_handles_;
int my_f2c_id_ = -1;
+ bool deleted_ = false;
protected:
static void allocate_lookup()
}
static int f2c_id() { return f2c_id_; }
static void f2c_id_increment() { f2c_id_++; }
+ void mark_as_deleted() { deleted_ = true; };
public:
+ bool deleted() const { return deleted_; }
static f2c_lookup_type* lookup() { return f2c_lookup_.get(); }
F2C();
virtual ~F2C() = default;
int add_f();
static void free_f(int id) { f2c_lookup_->erase(id); }
int c2f();
- static void print_f2c_lookup();
+
// This method should be overridden in all subclasses to avoid casting the result when calling it.
// For the default one, the MPI_*_NULL returned is assumed to be NULL.
static F2C* f2c(int id);