authenticationservices/authenticationserver/inc/authserver/authexpression.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 24 Nov 2009 09:06:03 +0200
changeset 19 ece3df019add
permissions -rw-r--r--
Revision: 200948 Kit: 200948

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* @publishedAll
* @released
*
*/


#ifndef AUTHEXPRESSION_INL
#define AUTHEXPRESSION_INL

#include "authserver/authexpression.h"

namespace AuthServer
{


// -------- TAuthExpressionWrapper --------


inline TAuthExpressionWrapper::operator CAuthExpression*()
/**
	Conversion operator recasts this object as a
	pointer to the contained authorisation expression.
 */
	{
	return iPtr;
	}


#ifdef AUTH_EXPR_BINARY_OPS


inline TAuthExpressionWrapper operator&(TAuthExpressionWrapper aLeft, TAuthExpressionWrapper aRight)
/**
	This overloaded operator is a wrapper around a call to AuthAnd.
	See AuthAnd for a full description.	
	
	@param	aLeft			Left subexpression.
	@param	aRight			Right subexpression.
	@return					Wrapper around new complex AND expression,
							which is NULL if could not allocate.
	@see AuthAnd
 */
	{
	return AuthAnd(aLeft, aRight);
	}


inline TAuthExpressionWrapper operator|(TAuthExpressionWrapper aLeft, TAuthExpressionWrapper aRight)
/**
	This overloaded operator is a wrapper around a call to AuthOr
	See AuthOr for a full description.	
	
	@param	aLeft			Left subexpression.
	@param	aRight			Right subexpression.
	@return					Wrapper around new complex OR expression,
							which is NULL if could not allocate.
	@see AuthOr
 */
	{
	return AuthOr(aLeft, aRight);
	}


#endif	// #ifdef AUTH_EXPR_BINARY_OPS


}	// namespace AuthServer


#endif	// AUTHEXPRESSION_INL