OpenFOAM/containers: Standardized assignment docs

This commit is contained in:
Henry Weller
2016-08-12 10:00:48 +01:00
parent ef720003c3
commit f846706229
6 changed files with 11 additions and 11 deletions

View File

@ -115,7 +115,7 @@ public:
//- Return const access to an element
inline const T& operator[](const label) const;
//- Assignment from UList of addressed elements
//- Assignment to UList of addressed elements
inline void operator=(const UList<T>&);
//- Assignment of all entries to the given value

View File

@ -217,16 +217,16 @@ public:
//- Assignment of all addressed entries to the given value
inline void operator=(const T&);
//- Assignment from DynamicList
//- Assignment to DynamicList
inline void operator=
(
const DynamicList<T, SizeInc, SizeMult, SizeDiv>&
);
//- Assignment from UList
//- Assignment to UList
inline void operator=(const UList<T>&);
//- Assignment from UIndirectList
//- Assignment to UIndirectList
inline void operator=(const UIndirectList<T>&);

View File

@ -121,7 +121,7 @@ public:
//- Assignment of all entries to the given value
inline void operator=(const T&);
//- Assignment from UList operator. Takes linear time.
//- Assignment to UList operator. Takes linear time.
inline void operator=(const UList<T>&);
//- Assignment operator. Takes linear time.

View File

@ -113,10 +113,10 @@ public:
//- Return const access to an element
inline const T& operator[](const label) const;
//- Assignment from UList of addressed elements
//- Assignment to UList of addressed elements
inline void operator=(const UList<T>&);
//- Assignment from UIndirectList of addressed elements
//- Assignment to UIndirectList of addressed elements
inline void operator=(const UIndirectList<T>&);
//- Assignment of all entries to the given value

View File

@ -230,13 +230,13 @@ public:
//- Assignment of all addressed entries to the given value
inline void operator=(const T&);
//- Assignment from DynamicField
//- Assignment to DynamicField
inline void operator=
(
const DynamicField<T, SizeInc, SizeMult, SizeDiv>&
);
//- Assignment from UList
//- Assignment to UList
inline void operator=(const UList<T>&);
};

View File

@ -187,13 +187,13 @@ public:
return (switch_ & 0x1);
}
//- Assignment from enumerated value
//- Assignment to enumerated value
void operator=(const switchType sw)
{
switch_ = sw;
}
//- Assignment from bool
//- Assignment to bool
void operator=(const bool b)
{
switch_ = (b ? Switch::TRUE : Switch::FALSE);