Searched refs:instance (Results 26 - 46 of 46) sorted by relevance

12

/gem5/ext/pybind11/tests/
H A Dtest_class.py18 instance = m.NoConstructor.new_instance()
22 del instance
43 Return an instance
H A Dtest_smart_ptr.py158 assert "Unable to cast from non-held to held instance" in str(excinfo.value)
194 assert "Unable to cast from non-held to held instance" in str(excinfo.value)
272 instance = m.HeldByDefaultHolder()
274 m.HeldByDefaultHolder.load_shared_ptr(instance)
276 "default-holder instance" in str(excinfo.value)
/gem5/ext/pybind11/include/pybind11/
H A Dcast.h107 // want to follow Python/virtual C++ rules that there should only be one instance of a
207 instance *inst = nullptr;
213 value_and_holder(instance *i, const detail::type_info *type, size_t vpos, size_t index) :
236 : inst->nonsimple.status[index] & instance::status_holder_constructed;
242 inst->nonsimple.status[index] |= instance::status_holder_constructed;
244 inst->nonsimple.status[index] &= (uint8_t) ~instance::status_holder_constructed;
249 : inst->nonsimple.status[index] & instance::status_instance_registered;
255 inst->nonsimple.status[index] |= instance::status_instance_registered;
257 inst->nonsimple.status[index] &= (uint8_t) ~instance::status_instance_registered;
261 // Container for accessing and iterating over an instance'
[all...]
H A Dpybind11.h339 pybind11_fail("overloading a method with both static and instance methods is not supported; "
343 "error while attempting to bind " + std::string(rec->is_method ? "instance" : "static") + " method " +
395 pybind11_fail("cpp_function::cpp_function(): Could not allocate instance method object");
440 const auto pi = reinterpret_cast<instance *>(parent.ptr());
780 auto *pi = reinterpret_cast<instance *>(parent.ptr());
1296 static void init_holder(detail::instance *inst, detail::value_and_holder &v_h,
1324 static void init_holder(detail::instance *inst, detail::value_and_holder &v_h,
1335 /// Performs instance initialization including constructing a holder and registering the known
1336 /// instance. Should be called as soon as the `type` value_ptr is set for an instance
[all...]
H A Dattr.h228 void (*init_instance)(instance *, const void *) = nullptr;
/gem5/src/sim/
H A Ddrain.cc197 : _drainManager(DrainManager::instance()),
H A Deventq.hh221 Counter instance; member in class:Event
351 instance = ++instanceCounter;
543 * An instance of this class temporarily migrates execution to a
H A Deventq.cc89 return csprintf("Event_%d", instance);
H A Dcxx_manager.cc629 return DrainManager::instance().tryDrain() ? 0 : 1;
635 DrainManager::instance().resume();
/gem5/src/python/m5/util/
H A Dgrammar.py111 parser = new.instance(ply.yacc.LRParser, dict)
/gem5/src/mem/ruby/network/
H A DMessageBuffer.hh128 return RubyDummyPort::instance();
/gem5/ext/pybind11/include/pybind11/detail/
H A Dinternals.h97 std::unordered_multimap<const void *, instance*> registered_instances; // void * -> instance*
121 void (*init_instance)(instance *, const void *);
H A Dcommon.h301 /// Approach used to cast a previously unknown C++ instance into a Python object
327 /** Use std::move to move the return value contents into a new instance
361 * The space to allocate for simple layout instance holders (see below) in multiple of the size of
381 /// The 'instance' type which needs to be standard layout (need to be able to use 'offsetof')
382 struct instance { struct
394 * An instance has two possible value/holder layouts.
419 /// For simple layout, tracks whether the instance is registered in `registered_instances`
424 /// Initializes all of the above type/values/holders data (but not the instance values themselves)
440 static_assert(std::is_standard_layout<instance>::value, "Internal error: `pybind11::detail::instance` i
[all...]
/gem5/ext/testlib/
H A Dhelper.py337 def collect(self, instance):
339 col.append(instance)
/gem5/util/cxx_config/
H A Dmain.cc264 DrainManager::instance().preCheckpointRestore();
/gem5/util/systemc/gem5_within_systemc/
H A Dmain.cc308 DrainManager::instance().preCheckpointRestore();
/gem5/src/python/pybind11/
H A Dcore.cc126 .def_static("instance", &DrainManager::instance,
/gem5/src/python/m5/
H A Dsimulate.py73 _drain_manager = _m5.drain.DrainManager.instance()
/gem5/src/gpu-compute/
H A Ddispatcher.cc49 GpuDispatcher *GpuDispatcher::instance = nullptr; member in class:GpuDispatcher
/gem5/ext/googletest/googletest/test/
H A Dgtest-param-test_test.cc571 static TestGenerationEnvironment* instance = new TestGenerationEnvironment; local
572 return instance;
/gem5/ext/googletest/googletest/src/
H A Dgtest.cc2541 // The newly created TestInfo instance will assume
3985 static UnitTest* const instance = new UnitTest; local
3986 return instance;
3988 static UnitTest instance;
3989 return &instance;

Completed in 66 milliseconds

12