|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_COLLECTIONINDEX_H
6 #define COLLECTIONBASE_COLLECTIONINDEX_H
81 return ( ! ( *
this == rhs ) );
virtual std::vector< std::string > & columnNames()
Returns the names of all columns on which the index is created, with possibility for direct modificat...
std::vector< std::string > m_columnNames
Names of all columns on which index is created.
~CollectionIndex()
Default destructor.
CollectionIndex(const std::string &indexName, const std::vector< std::string > &columnNames, bool isUnique=false)
Constructor that takes the index properties as input.
virtual const std::vector< std::string > & columnNames() const
Returns the names of all columns on which the index is created.
CollectionIndex & operator=(const CollectionIndex &rhs)
Assignment operator.
bool m_isUnique
Flag indicating whether index is unique.
CollectionIndex(const pool::CollectionIndex &rhs)
Copy constructor.
virtual void setName(const std::string &name)
Sets the name of the index.
bool operator==(const CollectionIndex &rhs) const
Equality operator.
std::string m_name
Name of index.
bool operator!=(const CollectionIndex &rhs) const
Inequality operator.
virtual void setIsUnique(bool isUnique)
Sets the uniqueness of the index.
virtual const std::string & name() const
Returns the name of the index.
CollectionIndex()
Default constructor.
virtual bool isUnique() const
Indicates whether the combination of indexed column values must be different for each row.