Adobe.com
Contents Suites Classes Class Index Member Index

AIBasicUtilities.h

Go to the documentation of this file.
00001 /*
00002 *        Name:  AIBasicUtilities.h
00003 *   $Revision: 1 $
00004 *      Author:   
00005 *
00006 * ADOBE SYSTEMS INCORPORATED
00007 * Copyright 2008 Adobe Systems Incorporated
00008 * All rights reserved.
00009 *
00010 * NOTICE:  Adobe permits you to use, modify, and distribute this file 
00011 * in accordance with the terms of the Adobe license agreement 
00012 * accompanying it. If you have received this file from a source other 
00013 * than Adobe, then your use, modification, or distribution of it 
00014 * requires the prior written permission of Adobe.
00015 *
00016 */
00017 
00018 #ifndef __AIBasicUtilities__
00019 #define __AIBasicUtilities__
00020 
00021 namespace ai
00022 {
00023         template<typename T>
00024         inline const T& Min ( const T& obj1, const T& obj2 )
00025         {
00026                 return obj1 < obj2 ? obj1 : obj2;
00027         }
00028 
00029         template<typename T>
00030         inline const T& Max ( const T& obj1, const T& obj2 )
00031         {
00032                 return obj1 > obj2 ? obj1 : obj2;
00033         }
00034 }
00035 
00036 #endif //__AIBasicUtilities__


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks