Logo Search packages:      
Sourcecode: pan version File versions  Download package

pan::Xref Class Reference
[Backend Interfaces]

#include <xref.h>

List of all members.

Detailed Description

A set of identifiers for an article.

By using this as a cross-reference to all the occurences of an article, we can mark every instance of a crosspost as read when it's read in one group, or we can look for an article across different servers.

There can only be one entry per [server + group] in a set. Adding a second entry with the same [server + group] will fail.

Definition at line 41 of file xref.h.

Public Types

typedef targets_t::const_iterator const_iterator
typedef sorted_vector< Target,
true > 

Public Member Functions

template<typename ForwardIterator>
void assign (ForwardIterator a, ForwardIterator b)
const_iterator begin () const
void clear ()
bool empty () const
const_iterator end () const
bool find (const Quark &server, Quark &setme_group, unsigned long &setme_number) const
unsigned long find_number (const Quark &server, const Quark &group) const
void get_servers (quarks_t &addme) const
bool has_server (const Quark &server) const
void insert (const Quark &s, const StringView &header)
void insert (const Xref &xref)
void insert (const Quark &s, const Quark &g, unsigned long n)
void insert (const Target &target)
template<typename ForwardIterator>
void insert (ForwardIterator a, ForwardIterator b)
void remove_server (const Quark &server)
void remove_targets_less_than (const Quark &s, const Quark &g, unsigned long less_than_this)
unsigned long size () const
void swap (targets_t &t)

Private Attributes

targets_t targets


struct  Target

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index