mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Private Types | Private Attributes
m::ConditionPropertyMap< Property, Ordered > Struct Template Reference

#include <Condition.hpp>

Collaboration diagram for m::ConditionPropertyMap< Property, Ordered >:
[legend]

Data Structures

struct  IdentifierHash
 

Public Member Functions

void add (Schema::Identifier id, Property P)
 
void merge (ConditionPropertyMap &other)
 
auto find (const Schema::Identifier &id) const
 
void project_and_rename (const std::vector< std::pair< Schema::Identifier, Schema::Identifier > > &old2new)
 
auto begin ()
 
auto end ()
 
auto begin () const
 
auto end () const
 
auto cbegin () const
 
auto cend () const
 
bool empty () const
 
bool operator== (const ConditionPropertyMap &other) const
 

Private Types

using map_t = std::conditional_t< Ordered, std::vector< std::pair< Schema::Identifier, Property > >, std::unordered_map< Schema::Identifier, Property, IdentifierHash > >
 

Private Attributes

map_t attrs
 

Detailed Description

template<typename Property, bool Ordered>
struct m::ConditionPropertyMap< Property, Ordered >

Definition at line 18 of file Condition.hpp.

Member Typedef Documentation

◆ map_t

template<typename Property , bool Ordered>
using m::ConditionPropertyMap< Property, Ordered >::map_t = std::conditional_t<Ordered, std::vector<std::pair<Schema::Identifier, Property> >, std::unordered_map<Schema::Identifier, Property, IdentifierHash> >
private

Definition at line 30 of file Condition.hpp.

Member Function Documentation

◆ add()

template<typename Property , bool Ordered>
void m::ConditionPropertyMap< Property, Ordered >::add ( Schema::Identifier  id,
Property  P 
)
inline

◆ begin() [1/2]

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::begin ( )
inline

◆ begin() [2/2]

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::begin ( ) const
inline

Definition at line 87 of file Condition.hpp.

References m::ConditionPropertyMap< Property, Ordered >::attrs.

◆ cbegin()

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::cbegin ( ) const
inline

◆ cend()

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::cend ( ) const
inline

◆ empty()

template<typename Property , bool Ordered>
bool m::ConditionPropertyMap< Property, Ordered >::empty ( ) const
inline

◆ end() [1/2]

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::end ( )
inline

◆ end() [2/2]

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::end ( ) const
inline

Definition at line 88 of file Condition.hpp.

References m::ConditionPropertyMap< Property, Ordered >::attrs.

◆ find()

template<typename Property , bool Ordered>
auto m::ConditionPropertyMap< Property, Ordered >::find ( const Schema::Identifier id) const
inline

◆ merge()

template<typename Property , bool Ordered>
void m::ConditionPropertyMap< Property, Ordered >::merge ( ConditionPropertyMap< Property, Ordered > &  other)
inline

◆ operator==()

template<typename Property , bool Ordered>
bool m::ConditionPropertyMap< Property, Ordered >::operator== ( const ConditionPropertyMap< Property, Ordered > &  other) const
inline

Definition at line 94 of file Condition.hpp.

References m::ConditionPropertyMap< Property, Ordered >::attrs.

◆ project_and_rename()

template<typename Property , bool Ordered>
void m::ConditionPropertyMap< Property, Ordered >::project_and_rename ( const std::vector< std::pair< Schema::Identifier, Schema::Identifier > > &  old2new)
inline

Field Documentation

◆ attrs

template<typename Property , bool Ordered>
map_t m::ConditionPropertyMap< Property, Ordered >::attrs
private

The documentation for this struct was generated from the following file: