27 #include "../../datatype/Property.h"
50 m_properties(rhs.m_properties)
70 std::size_t size = m_properties.size();
72 for(std::size_t i = 0; i < size; ++i)
73 if(m_properties[i] == p)
81 std::size_t size = m_properties.size();
83 for(std::size_t i = 0; i < size; ++i)
84 if(m_properties[i] == p)
UniqueKey & operator=(const UniqueKey &rhs)
Assignment operator.
A class that models the description of a dataset.
Constraint & operator=(const Constraint &rhs)
Assignment operator not allowed.
bool has(const te::dt::Property *p) const
It verifies if Property is associated to the unique key.
Constraint * clone()
It returns a clone of the object.
It models a property definition.
void replace(te::dt::Property *p, te::dt::Property *pp)
It describes a unique key (uk) constraint.
It describes a unique key (uk) constraint.
void add(Constraint *c)
It adds a new constraint.
Index * m_index
A pointer to an associated index.
A class that models the description of a dataset.
std::vector< te::dt::Property * > m_properties
The properties that are part of the unique key constraint.
UniqueKey(DataSetType *dt=0, unsigned int id=0)
Constructor.