STYLE: provide labelPair typedef (a common type) within Pair.H itself

This commit is contained in:
Mark Olesen 2019-05-28 14:49:53 +02:00 committed by Andrew Heather
parent 26a6533053
commit f88708797f
2 changed files with 7 additions and 8 deletions

View File

@ -50,6 +50,13 @@ See also
namespace Foam namespace Foam
{ {
// Forward declarations
template<class T> class Pair;
// Common pair types
typedef Pair<label> labelPair; //!< A pair of labels
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class Pair Declaration Class Pair Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -163,7 +170,6 @@ public:
return seed; return seed;
} }
}; };
}; };

View File

@ -23,12 +23,6 @@ License
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Typedef
Foam::labelPair
Description
A pair of labels.
Typedef Typedef
Foam::labelPairPair Foam::labelPairPair
@ -66,7 +60,6 @@ Description
namespace Foam namespace Foam
{ {
typedef Pair<label> labelPair;
typedef Pair<labelPair> labelPairPair; typedef Pair<labelPair> labelPairPair;
typedef List<labelPair> labelPairList; typedef List<labelPair> labelPairList;
typedef UList<labelPair> labelPairUList; typedef UList<labelPair> labelPairUList;