17 INLINE RecorderTable::
25 INLINE RecorderTable::
33 INLINE
void RecorderTable::
35 _recorders = copy._recorders;
38 Recorders::iterator ri;
39 for (ri = _recorders.begin(); ri != _recorders.end(); ++ri) {
49 nassertv(recorder !=
nullptr);
52 std::pair<Recorders::iterator, bool> result =
53 _recorders.insert(Recorders::value_type(name, recorder));
58 result.first->second = recorder;
68 Recorders::const_iterator ri = _recorders.find(name);
69 if (ri != _recorders.end()) {
81 Recorders::iterator ri = _recorders.find(name);
82 if (ri != _recorders.end()) {
bool remove_recorder(const std::string &name)
Removes the named recorder from the table.
This object is used by the RecorderController to write (and read) a record of the set of recorders in...
This is the base class to a number of objects that record particular kinds of user input (like a Mous...
void add_recorder(const std::string &name, RecorderBase *recorder)
Adds the named recorder to the set of recorders.
RecorderBase * get_recorder(const std::string &name) const
Returns the recorder with the indicated name, or NULL if there is no such recorder.
void unref_delete(RefCountType *ptr)
This global helper function will unref the given ReferenceCount object, and if the reference count re...