xapian-core  2.0.0
Classes | Namespaces | Functions
registry.cc File Reference

Class for looking up user subclasses during unserialisation. More...

#include <config.h>
#include "xapian/registry.h"
#include "xapian/error.h"
#include "xapian/geospatial.h"
#include "xapian/intrusive_ptr.h"
#include "xapian/matchspy.h"
#include "xapian/postingsource.h"
#include "xapian/weight.h"
#include "debuglog.h"
#include "stringutils.h"
#include <algorithm>
#include <map>
#include <string>
+ Include dependency graph for registry.cc:

Go to the source code of this file.

Classes

class  Xapian::Registry::Internal
 

Namespaces

 Xapian
 The Xapian namespace contains public interfaces for the Xapian library.
 

Functions

template<class T >
static void register_object (map< string, opt_intrusive_ptr< T >, std::less<>> &registry, T *obj_)
 Register an optionally ref-counted object. More...
 
template<class T >
static void register_object (map< string, T *, std::less<>> &registry, const T &obj)
 Register an object that requires cloning. More...
 
template<class T >
static const T * lookup_object (map< string, opt_intrusive_ptr< T >, std::less<>> registry, string_view name)
 Look up an optionally ref-counted object. More...
 
template<class T >
static const T * lookup_object (map< string, T *, std::less<>> registry, string_view name)
 Look up an object that requires cloning. More...
 

Detailed Description

Class for looking up user subclasses during unserialisation.

Definition in file registry.cc.

Function Documentation

◆ lookup_object() [1/2]

template<class T >
static const T* lookup_object ( map< string, opt_intrusive_ptr< T >, std::less<>>  registry,
string_view  name 
)
inlinestatic

◆ lookup_object() [2/2]

template<class T >
static const T* lookup_object ( map< string, T *, std::less<>>  registry,
string_view  name 
)
inlinestatic

Look up an object that requires cloning.

Definition at line 150 of file registry.cc.

◆ register_object() [1/2]

template<class T >
static void register_object ( map< string, opt_intrusive_ptr< T >, std::less<>> &  registry,
T *  obj_ 
)
inlinestatic

◆ register_object() [2/2]

template<class T >
static void register_object ( map< string, T *, std::less<>> &  registry,
const T &  obj 
)
inlinestatic

Register an object that requires cloning.

Definition at line 104 of file registry.cc.

References p, and rare.