BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
SetIndexingPolicy< SET > Class Template Reference

IndexingPolicy for std::set. More...

#include <AssociativeIndexingPolicies.h>

Inheritance diagram for SetIndexingPolicy< SET >:

Public Types

typedef SET::key_type index_type
typedef type_tools::Parameter< index_type >::const_type index_parm_type
typedef SET::value_type value_type
typedef RemoveDataPtr< value_type >::type removedDataPtr_type
typedef removedDataPtr_typeElementPointer
typedef const ElementPointer ElementConstPointer
typedef removedDataPtr_typeElementReference
typedef const ElementReference ElementConstReference
typedef type_tools::Parameter< removedDataPtr_type >::type ElementParameter
typedef SET::reference reference
typedef SET::const_reference const_reference
typedef SET::pointer pointer
typedef SET::const_pointer const_pointer
typedef SET::iterator iterator
typedef SET::const_iterator const_iterator
typedef SET::key_type index_type
typedef type_tools::Parameter< index_type >::const_type index_parm_type
typedef SET::value_type value_type
typedef RemoveDataPtr< value_type >::type removedDataPtr_type
typedef removedDataPtr_typeElementPointer
typedef const ElementPointer ElementConstPointer
typedef removedDataPtr_typeElementReference
typedef const ElementReference ElementConstReference
typedef type_tools::Parameter< removedDataPtr_type >::type ElementParameter
typedef SET::reference reference
typedef SET::const_reference const_reference
typedef SET::pointer pointer
typedef SET::const_pointer const_pointer
typedef SET::iterator iterator
typedef SET::const_iterator const_iterator
typedef SET::key_type index_type
typedef type_tools::Parameter< index_type >::const_type index_parm_type
typedef SET::value_type value_type
typedef RemoveDataPtr< value_type >::type removedDataPtr_type
typedef removedDataPtr_typeElementPointer
typedef const ElementPointer ElementConstPointer
typedef removedDataPtr_typeElementReference
typedef const ElementReference ElementConstReference
typedef type_tools::Parameter< removedDataPtr_type >::type ElementParameter
typedef SET::reference reference
typedef SET::const_reference const_reference
typedef SET::pointer pointer
typedef SET::const_pointer const_pointer
typedef SET::iterator iterator
typedef SET::const_iterator const_iterator
Public Types inherited from AssociativeIndexingPolicy< SET >
typedef SET::key_type index_type
typedef type_tools::Parameter< index_type >::const_type index_parm_type
typedef SET::value_type value_type
typedef RemoveDataPtr< value_type >::type removedDataPtr_type
typedef removedDataPtr_typeElementPointer
typedef const ElementPointer ElementConstPointer
typedef removedDataPtr_typeElementReference
typedef const ElementReference ElementConstReference
typedef type_tools::Parameter< removedDataPtr_type >::type ElementParameter
typedef SET::reference reference
typedef SET::const_reference const_reference
typedef SET::pointer pointer
typedef SET::const_pointer const_pointer
typedef SET::iterator iterator
typedef SET::const_iterator const_iterator

Static Public Member Functions

static bool reverseLookup (const SET &data, ElementParameter element, index_type &same)
static bool reverseLookup (const SET &data, ElementParameter element, index_type &same)
static bool reverseLookup (const SET &data, ElementParameter element, index_type &same)

Protected Member Functions

 SetIndexingPolicy ()
 SetIndexingPolicy (index_parm_type key)
 SetIndexingPolicy (const_reference data, ElementParameter element)
void setIndex (index_parm_type key)
bool setIndex (const SET &data, ElementParameter element)
 ~SetIndexingPolicy ()
 SetIndexingPolicy ()
 SetIndexingPolicy (index_parm_type key)
 SetIndexingPolicy (const_reference data, ElementParameter element)
void setIndex (index_parm_type key)
bool setIndex (const SET &data, ElementParameter element)
 ~SetIndexingPolicy ()
 SetIndexingPolicy ()
 SetIndexingPolicy (index_parm_type key)
 SetIndexingPolicy (const_reference data, ElementParameter element)
void setIndex (index_parm_type key)
bool setIndex (const SET &data, ElementParameter element)
 ~SetIndexingPolicy ()
Protected Member Functions inherited from AssociativeIndexingPolicy< SET >
 AssociativeIndexingPolicy ()
 ~AssociativeIndexingPolicy ()
iterator lookup (SET &data) const
void setIndex (index_parm_type key)

Additional Inherited Members

Public Member Functions inherited from AssociativeIndexingPolicy< SET >
index_parm_type index () const
bool indexPut (OS &o) const
bool indexGet (IS &i)
Protected Attributes inherited from AssociativeIndexingPolicy< SET >
index_type m_key

Detailed Description

template<class SET>
class SetIndexingPolicy< SET >

IndexingPolicy for std::set.

Author
Paolo Calafiura
Id
AssociativeIndexingPolicies.h,v 1.2 2003/04/16 01:32:53 calaf Exp

Definition at line 84 of file Event/GeneratorObject/include/DataModel/tools/AssociativeIndexingPolicies.h.

Member Typedef Documentation

◆ const_iterator [1/3]

template<class SET>
typedef SET::const_iterator SetIndexingPolicy< SET >::const_iterator

◆ const_iterator [2/3]

template<class SET>
typedef SET::const_iterator SetIndexingPolicy< SET >::const_iterator

◆ const_iterator [3/3]

template<class SET>
typedef SET::const_iterator SetIndexingPolicy< SET >::const_iterator

◆ const_pointer [1/3]

template<class SET>
typedef SET::const_pointer SetIndexingPolicy< SET >::const_pointer

◆ const_pointer [2/3]

template<class SET>
typedef SET::const_pointer SetIndexingPolicy< SET >::const_pointer

◆ const_pointer [3/3]

template<class SET>
typedef SET::const_pointer SetIndexingPolicy< SET >::const_pointer

◆ const_reference [1/3]

template<class SET>
typedef SET::const_reference SetIndexingPolicy< SET >::const_reference

◆ const_reference [2/3]

template<class SET>
typedef SET::const_reference SetIndexingPolicy< SET >::const_reference

◆ const_reference [3/3]

template<class SET>
typedef SET::const_reference SetIndexingPolicy< SET >::const_reference

◆ ElementConstPointer [1/3]

template<class SET>
typedef const ElementPointer SetIndexingPolicy< SET >::ElementConstPointer

◆ ElementConstPointer [2/3]

template<class SET>
typedef const ElementPointer SetIndexingPolicy< SET >::ElementConstPointer

◆ ElementConstPointer [3/3]

template<class SET>
typedef const ElementPointer SetIndexingPolicy< SET >::ElementConstPointer

◆ ElementConstReference [1/3]

template<class SET>
typedef const ElementReference SetIndexingPolicy< SET >::ElementConstReference

◆ ElementConstReference [2/3]

template<class SET>
typedef const ElementReference SetIndexingPolicy< SET >::ElementConstReference

◆ ElementConstReference [3/3]

template<class SET>
typedef const ElementReference SetIndexingPolicy< SET >::ElementConstReference

◆ ElementParameter [1/3]

template<class SET>
typedef type_tools::Parameter<removedDataPtr_type>::type SetIndexingPolicy< SET >::ElementParameter

◆ ElementParameter [2/3]

template<class SET>
typedef type_tools::Parameter<removedDataPtr_type>::type SetIndexingPolicy< SET >::ElementParameter

◆ ElementParameter [3/3]

template<class SET>
typedef type_tools::Parameter<removedDataPtr_type>::type SetIndexingPolicy< SET >::ElementParameter

◆ ElementPointer [1/3]

template<class SET>
typedef removedDataPtr_type* SetIndexingPolicy< SET >::ElementPointer

◆ ElementPointer [2/3]

template<class SET>
typedef removedDataPtr_type* SetIndexingPolicy< SET >::ElementPointer

◆ ElementPointer [3/3]

template<class SET>
typedef removedDataPtr_type* SetIndexingPolicy< SET >::ElementPointer

◆ ElementReference [1/3]

template<class SET>
typedef removedDataPtr_type& SetIndexingPolicy< SET >::ElementReference

◆ ElementReference [2/3]

template<class SET>
typedef removedDataPtr_type& SetIndexingPolicy< SET >::ElementReference

◆ ElementReference [3/3]

template<class SET>
typedef removedDataPtr_type& SetIndexingPolicy< SET >::ElementReference

◆ index_parm_type [1/3]

template<class SET>
typedef type_tools::Parameter<index_type>::const_type SetIndexingPolicy< SET >::index_parm_type

◆ index_parm_type [2/3]

template<class SET>
typedef type_tools::Parameter<index_type>::const_type SetIndexingPolicy< SET >::index_parm_type

◆ index_parm_type [3/3]

template<class SET>
typedef type_tools::Parameter<index_type>::const_type SetIndexingPolicy< SET >::index_parm_type

◆ index_type [1/3]

template<class SET>
typedef SET::key_type SetIndexingPolicy< SET >::index_type

◆ index_type [2/3]

template<class SET>
typedef SET::key_type SetIndexingPolicy< SET >::index_type

◆ index_type [3/3]

template<class SET>
typedef SET::key_type SetIndexingPolicy< SET >::index_type

◆ iterator [1/3]

template<class SET>
typedef SET::iterator SetIndexingPolicy< SET >::iterator

◆ iterator [2/3]

template<class SET>
typedef SET::iterator SetIndexingPolicy< SET >::iterator

◆ iterator [3/3]

template<class SET>
typedef SET::iterator SetIndexingPolicy< SET >::iterator

◆ pointer [1/3]

template<class SET>
typedef SET::pointer SetIndexingPolicy< SET >::pointer

◆ pointer [2/3]

template<class SET>
typedef SET::pointer SetIndexingPolicy< SET >::pointer

◆ pointer [3/3]

template<class SET>
typedef SET::pointer SetIndexingPolicy< SET >::pointer

◆ reference [1/3]

template<class SET>
typedef SET::reference SetIndexingPolicy< SET >::reference

◆ reference [2/3]

template<class SET>
typedef SET::reference SetIndexingPolicy< SET >::reference

◆ reference [3/3]

template<class SET>
typedef SET::reference SetIndexingPolicy< SET >::reference

◆ removedDataPtr_type [1/3]

template<class SET>
typedef RemoveDataPtr<value_type>::type SetIndexingPolicy< SET >::removedDataPtr_type

◆ removedDataPtr_type [2/3]

template<class SET>
typedef RemoveDataPtr<value_type>::type SetIndexingPolicy< SET >::removedDataPtr_type

◆ removedDataPtr_type [3/3]

template<class SET>
typedef RemoveDataPtr<value_type>::type SetIndexingPolicy< SET >::removedDataPtr_type

◆ value_type [1/3]

template<class SET>
typedef SET::value_type SetIndexingPolicy< SET >::value_type

◆ value_type [2/3]

template<class SET>
typedef SET::value_type SetIndexingPolicy< SET >::value_type

◆ value_type [3/3]

template<class SET>
typedef SET::value_type SetIndexingPolicy< SET >::value_type

Constructor & Destructor Documentation

◆ SetIndexingPolicy() [1/9]

◆ SetIndexingPolicy() [2/9]

◆ SetIndexingPolicy() [3/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( const_reference data,
ElementParameter element )
inlineprotected

◆ ~SetIndexingPolicy() [1/3]

template<class SET>
SetIndexingPolicy< SET >::~SetIndexingPolicy ( )
inlineprotected

Definition at line 137 of file Event/GeneratorObject/include/DataModel/tools/AssociativeIndexingPolicies.h.

137{} // disallow accidental base class deletion

◆ SetIndexingPolicy() [4/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( )
inlineprotected

◆ SetIndexingPolicy() [5/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( index_parm_type key)
inlineprotected

◆ SetIndexingPolicy() [6/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( const_reference data,
ElementParameter element )
inlineprotected

◆ ~SetIndexingPolicy() [2/3]

template<class SET>
SetIndexingPolicy< SET >::~SetIndexingPolicy ( )
inlineprotected

Definition at line 137 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/AssociativeIndexingPolicies.h.

137{} // disallow accidental base class deletion

◆ SetIndexingPolicy() [7/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( )
inlineprotected

◆ SetIndexingPolicy() [8/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( index_parm_type key)
inlineprotected

◆ SetIndexingPolicy() [9/9]

template<class SET>
SetIndexingPolicy< SET >::SetIndexingPolicy ( const_reference data,
ElementParameter element )
inlineprotected

◆ ~SetIndexingPolicy() [3/3]

template<class SET>
SetIndexingPolicy< SET >::~SetIndexingPolicy ( )
inlineprotected

Definition at line 137 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/AssociativeIndexingPolicies.h.

137{} // disallow accidental base class deletion

Member Function Documentation

◆ reverseLookup() [1/3]

template<class SET>
bool SetIndexingPolicy< SET >::reverseLookup ( const SET & data,
ElementParameter element,
index_type & same )
inlinestatic

Definition at line 106 of file Event/GeneratorObject/include/DataModel/tools/AssociativeIndexingPolicies.h.

106 {
107 // compiler checks we can compare elements
110 if ( data.end() != data.find( element ) )
111 {
112 same = element;
113 return true;
114 }
115 else
116 {
117#ifndef NDEBUG
118 std::cerr << __FILE__ << ':' << __LINE__ << ": "
119 << "SetIndexingPolicy::reverseLookup ERROR: element not found" << std::endl;
120#endif
121 return false;
122 }
123 }

Referenced by SetIndexingPolicy< std::set< KEY > >::setIndex(), and SetIndexingPolicy< std::set< KEY > >::SetIndexingPolicy().

◆ reverseLookup() [2/3]

template<class SET>
bool SetIndexingPolicy< SET >::reverseLookup ( const SET & data,
ElementParameter element,
index_type & same )
inlinestatic

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/AssociativeIndexingPolicies.h.

106 {
107 // compiler checks we can compare elements
110 if ( data.end() != data.find( element ) )
111 {
112 same = element;
113 return true;
114 }
115 else
116 {
117#ifndef NDEBUG
118 std::cerr << __FILE__ << ':' << __LINE__ << ": "
119 << "SetIndexingPolicy::reverseLookup ERROR: element not found" << std::endl;
120#endif
121 return false;
122 }
123 }

◆ reverseLookup() [3/3]

template<class SET>
bool SetIndexingPolicy< SET >::reverseLookup ( const SET & data,
ElementParameter element,
index_type & same )
inlinestatic

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/AssociativeIndexingPolicies.h.

106 {
107 // compiler checks we can compare elements
110 if ( data.end() != data.find( element ) )
111 {
112 same = element;
113 return true;
114 }
115 else
116 {
117#ifndef NDEBUG
118 std::cerr << __FILE__ << ':' << __LINE__ << ": "
119 << "SetIndexingPolicy::reverseLookup ERROR: element not found" << std::endl;
120#endif
121 return false;
122 }
123 }

◆ setIndex() [1/6]

template<class SET>
bool SetIndexingPolicy< SET >::setIndex ( const SET & data,
ElementParameter element )
inlineprotected

◆ setIndex() [2/6]

template<class SET>
bool SetIndexingPolicy< SET >::setIndex ( const SET & data,
ElementParameter element )
inlineprotected

◆ setIndex() [3/6]

template<class SET>
bool SetIndexingPolicy< SET >::setIndex ( const SET & data,
ElementParameter element )
inlineprotected

◆ setIndex() [4/6]

template<class SET>
void SetIndexingPolicy< SET >::setIndex ( index_parm_type key)
inlineprotected

Definition at line 132 of file Event/GeneratorObject/include/DataModel/tools/AssociativeIndexingPolicies.h.

132{ m_key = key; } // FIXME why this isn't inherited?

◆ setIndex() [5/6]

template<class SET>
void SetIndexingPolicy< SET >::setIndex ( index_parm_type key)
inlineprotected

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/AssociativeIndexingPolicies.h.

132{ m_key = key; } // FIXME why this isn't inherited?

◆ setIndex() [6/6]

template<class SET>
void SetIndexingPolicy< SET >::setIndex ( index_parm_type key)
inlineprotected

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/AssociativeIndexingPolicies.h.

132{ m_key = key; } // FIXME why this isn't inherited?

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