fbxpair.h

Go to the documentation of this file.
00001 /****************************************************************************************
00002  
00003    Copyright (C) 2012 Autodesk, Inc.
00004    All rights reserved.
00005  
00006    Use of this software is subject to the terms of the Autodesk license agreement
00007    provided at the time of installation or download, or which otherwise accompanies
00008    this software in either electronic or hard copy form.
00009  
00010 ****************************************************************************************/
00011 
00013 #ifndef _FBXSDK_CORE_BASE_PAIR_H_
00014 #define _FBXSDK_CORE_BASE_PAIR_H_
00015 
00016 #include <fbxsdk/fbxsdk_def.h>
00017 
00018 #include <fbxsdk/fbxsdk_nsbegin.h>
00019 
00023 template <typename S, typename T> class FbxPair
00024 {
00025 public:
00027     inline FbxPair() : mFirst(), mSecond() {}
00028 
00033     inline FbxPair(const S& pFirst, const T& pSecond) : mFirst(pFirst), mSecond(pSecond) {}
00034 
00038     inline FbxPair<S,T>& operator=(const FbxPair<S,T>& pPair)
00039     {
00040         mFirst = pPair.mFirst;
00041         mSecond = pPair.mSecond;
00042 
00043         return *this;
00044     }
00045 
00047     S mFirst;
00049     T mSecond;
00050 };
00051 
00052 #include <fbxsdk/fbxsdk_nsend.h>
00053 
00054 #endif /* _FBXSDK_CORE_BASE_PAIR_H_ */