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