#include <CollectionBase/CollectionIndex.h>
An implementation of the ICollectionIndex interface for retrieving a description of an index on one or more columns of a collection.
Definition at line 19 of file CollectionIndex.h.
◆ CollectionIndex() [1/3]
pool::CollectionIndex::CollectionIndex |
( |
| ) |
|
|
inline |
◆ CollectionIndex() [2/3]
pool::CollectionIndex::CollectionIndex |
( |
const std::string & |
indexName, |
|
|
const std::vector< std::string > & |
columnNames, |
|
|
bool |
isUnique = false |
|
) |
| |
|
inline |
Constructor that takes the index properties as input.
- Parameters
-
indexName | Name of index. |
columnNames | Names of all columns on which index is created. |
isUnique | Flag indicating whether index is unique. |
Definition at line 35 of file CollectionIndex.h.
◆ CollectionIndex() [3/3]
◆ ~CollectionIndex()
pool::CollectionIndex::~CollectionIndex |
( |
| ) |
|
|
inline |
◆ columnNames() [1/2]
virtual std::vector<std::string>& pool::CollectionIndex::columnNames |
( |
| ) |
|
|
inlinevirtual |
Returns the names of all columns on which the index is created, with possibility for direct modification.
Definition at line 95 of file CollectionIndex.h.
◆ columnNames() [2/2]
virtual const std::vector<std::string>& pool::CollectionIndex::columnNames |
( |
| ) |
const |
|
inlinevirtual |
◆ isUnique()
virtual bool pool::CollectionIndex::isUnique |
( |
| ) |
const |
|
inlinevirtual |
◆ name()
virtual const std::string& pool::CollectionIndex::name |
( |
| ) |
const |
|
inlinevirtual |
◆ operator!=()
Inequality operator.
Definition at line 79 of file CollectionIndex.h.
81 return ( ! ( *
this == rhs ) );
◆ operator=()
◆ operator==()
◆ setIsUnique()
virtual void pool::CollectionIndex::setIsUnique |
( |
bool |
isUnique | ) |
|
|
inlinevirtual |
Sets the uniqueness of the index.
- Parameters
-
isUnique | Flag indicating whether index is unique. |
Definition at line 102 of file CollectionIndex.h.
◆ setName()
virtual void pool::CollectionIndex::setName |
( |
const std::string & |
name | ) |
|
|
inlinevirtual |
◆ m_columnNames
std::vector< std::string > pool::CollectionIndex::m_columnNames |
|
private |
◆ m_isUnique
bool pool::CollectionIndex::m_isUnique |
|
private |
◆ m_name
std::string pool::CollectionIndex::m_name |
|
private |
The documentation for this class was generated from the following file: