mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-30 13:44:57 -05:00
orm unified constructor comments
This commit is contained in:
@@ -195,7 +195,7 @@ namespace Orm::Tiny::Concerns
|
||||
inline operator QVariant() const; // NOLINT(google-explicit-constructor)
|
||||
|
||||
private:
|
||||
/*! AttributeReference's private constructor. */
|
||||
/*! Private constructor. */
|
||||
AttributeReference(Model<Derived, AllRelations...> &model,
|
||||
const QString &attribute); // NOLINT(modernize-pass-by-value)
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Orm::Tiny::Relations
|
||||
const QString &relatedPivotKey = EMPTY, const QString &parentKey = EMPTY, // NOLINT(modernize-pass-by-value)
|
||||
const QString &relatedKey = EMPTY, const QString &relationName = EMPTY); // NOLINT(modernize-pass-by-value)
|
||||
|
||||
/*! BelongsToMany's copy constructor (used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
BelongsToMany(const BelongsToMany &) = default;
|
||||
|
||||
public:
|
||||
@@ -55,12 +55,12 @@ namespace Orm::Tiny::Relations
|
||||
/*! Virtual destructor. */
|
||||
~BelongsToMany() override = default;
|
||||
|
||||
/*! BelongsToMany's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
BelongsToMany(BelongsToMany &&) = delete;
|
||||
|
||||
/*! BelongsToMany's copy assignment operator. */
|
||||
/*! Deleted copy assignment operator. */
|
||||
BelongsToMany &operator=(const BelongsToMany &) = delete;
|
||||
/*! BelongsToMany's move assignment operator. */
|
||||
/*! Deleted move assignment operator. */
|
||||
BelongsToMany &operator=(BelongsToMany &&) = delete;
|
||||
|
||||
/*! Instantiate and initialize a new BelongsToMany instance. */
|
||||
|
||||
@@ -53,8 +53,7 @@ namespace Concerns
|
||||
/*! Protected default constructor. */
|
||||
InteractsWithPivotTable() = default;
|
||||
|
||||
/*! InteractsWithPivotTable's copy constructor
|
||||
(used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
InteractsWithPivotTable(const InteractsWithPivotTable &) = default;
|
||||
|
||||
public:
|
||||
@@ -68,12 +67,12 @@ namespace Concerns
|
||||
/*! Pure virtual destructor. */
|
||||
inline virtual ~InteractsWithPivotTable() = 0;
|
||||
|
||||
/*! InteractsWithPivotTable's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
InteractsWithPivotTable(InteractsWithPivotTable &&) = delete;
|
||||
|
||||
/*! InteractsWithPivotTable's copy assignment operator. */
|
||||
/*! Deleted copy assignment operator. */
|
||||
InteractsWithPivotTable &operator=(const InteractsWithPivotTable &) = delete;
|
||||
/*! InteractsWithPivotTable's move assignment operator. */
|
||||
/*! Deleted move assignment operator. */
|
||||
InteractsWithPivotTable &operator=(InteractsWithPivotTable &&) = delete;
|
||||
|
||||
/*! Set the columns on the pivot table to retrieve. */
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Relations
|
||||
Relation(std::unique_ptr<Related> &&related, Model &parent,
|
||||
const QString &relatedKey = EMPTY);
|
||||
|
||||
/*! Relation's copy constructor (used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
Relation(const Relation &) = default;
|
||||
|
||||
public:
|
||||
@@ -58,12 +58,12 @@ namespace Relations
|
||||
/*! Pure virtual destructor. */
|
||||
inline ~Relation() override = 0;
|
||||
|
||||
/*! Relation's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
Relation(Relation &&) = delete;
|
||||
|
||||
/*! Relation's copy assignment operator. */
|
||||
/*! Deleted copy assignment operator. */
|
||||
Relation &operator=(const Relation &) = delete;
|
||||
/*! Relation's move assignment operator. */
|
||||
/*! Deleted move assignment operator. */
|
||||
Relation &operator=(Relation &&) = delete;
|
||||
|
||||
/* Relation related operations */
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Tiny::Relations
|
||||
/*! Protected default constructor. */
|
||||
RelationProxies() = default;
|
||||
|
||||
/*! RelationProxies's copy constructor (used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
RelationProxies(const RelationProxies &) = default;
|
||||
|
||||
public:
|
||||
@@ -48,11 +48,12 @@ namespace Tiny::Relations
|
||||
/*! Pure virtual destructor. */
|
||||
inline virtual ~RelationProxies() = 0;
|
||||
|
||||
/*! RelationProxies's copy assignment operator. */
|
||||
RelationProxies &operator=(const RelationProxies &) = delete;
|
||||
/*! RelationProxies's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
RelationProxies(RelationProxies &&) = delete;
|
||||
/*! RelationProxies's move assignment operator. */
|
||||
|
||||
/*! Deleted copy assignment operator. */
|
||||
RelationProxies &operator=(const RelationProxies &) = delete;
|
||||
/*! Deleted move assignment operator. */
|
||||
RelationProxies &operator=(RelationProxies &&) = delete;
|
||||
|
||||
/* Retrieving results */
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Orm::Tiny::Relations
|
||||
class IsRelation
|
||||
{
|
||||
protected:
|
||||
/*! IsRelation's copy constructor (used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
IsRelation(const IsRelation &) = default;
|
||||
|
||||
public:
|
||||
@@ -27,12 +27,12 @@ namespace Orm::Tiny::Relations
|
||||
/*! Pure virtual destructor. */
|
||||
inline virtual ~IsRelation() = 0;
|
||||
|
||||
/*! IsRelation's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
IsRelation(IsRelation &&) = delete;
|
||||
|
||||
/*! IsRelation's copy assignment operator. */
|
||||
/*! Deleted copy assignment operator. */
|
||||
IsRelation &operator=(const IsRelation &) = delete;
|
||||
/*! IsRelation's move assignment operator. */
|
||||
/*! Deleted move assignment operator. */
|
||||
IsRelation &operator=(IsRelation &&) = delete;
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Orm::Tiny::Relations
|
||||
class IsManyRelation
|
||||
{
|
||||
protected:
|
||||
/*! IsManyRelation's copy constructor (used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
IsManyRelation(const IsManyRelation &) = default;
|
||||
|
||||
public:
|
||||
@@ -65,12 +65,12 @@ namespace Orm::Tiny::Relations
|
||||
/*! Pure virtual destructor. */
|
||||
inline virtual ~IsManyRelation() = 0;
|
||||
|
||||
/*! IsManyRelation's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
IsManyRelation(IsManyRelation &&) = delete;
|
||||
|
||||
/*! IsManyRelation's copy assignment operator. */
|
||||
/*! Deleted copy assignment operator. */
|
||||
IsManyRelation &operator=(const IsManyRelation &) = delete;
|
||||
/*! IsManyRelation's move assignment operator. */
|
||||
/*! Deleted move assignment operator. */
|
||||
IsManyRelation &operator=(IsManyRelation &&) = delete;
|
||||
};
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace Orm::Tiny::Relations
|
||||
class IsPivotRelation
|
||||
{
|
||||
protected:
|
||||
/*! IsPivotRelation's copy constructor (used by BelongsToMany::clone()). */
|
||||
/*! Protected copy constructor (used by BelongsToMany::clone()). */
|
||||
IsPivotRelation(const IsPivotRelation &) = default;
|
||||
|
||||
public:
|
||||
@@ -89,12 +89,12 @@ namespace Orm::Tiny::Relations
|
||||
/*! Pure virtual destructor. */
|
||||
inline virtual ~IsPivotRelation() = 0;
|
||||
|
||||
/*! IsPivotRelation's move constructor. */
|
||||
/*! Deleted move constructor. */
|
||||
IsPivotRelation(IsPivotRelation &&) = delete;
|
||||
|
||||
/*! IsPivotRelation's copy assignment operator. */
|
||||
/*! Deleted copy assignment operator. */
|
||||
IsPivotRelation &operator=(const IsPivotRelation &) = delete;
|
||||
/*! IsPivotRelation's move assignment operator. */
|
||||
/*! Deleted move assignment operator. */
|
||||
IsPivotRelation &operator=(IsPivotRelation &&) = delete;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user