PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llcommon/llaccountingcost.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 86 lines | 48 code | 10 blank | 28 comment | 0 complexity | c00d3112b934c886abad11efb28aa259 MD5 | raw file
 1/** 
 2 * @file llaccountingcost.h
 3 * @
 4 *
 5 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2011, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_ACCOUNTINGQUOTA_H
28#define LL_ACCOUNTINGQUOTA_H
29
30struct ParcelQuota
31{
32	ParcelQuota( F32 ownerRenderCost,	 F32 ownerPhysicsCost,	  F32 ownerNetworkCost,	   F32 ownerSimulationCost,
33				 F32 groupRenderCost,	 F32 groupPhysicsCost,	  F32 groupNetworkCost,	   F32 groupSimulationCost,
34				 F32 otherRenderCost,	 F32 otherPhysicsCost,	  F32 otherNetworkCost,	   F32 otherSimulationCost,
35				 F32 tempRenderCost,	 F32 tempPhysicsCost,	  F32 tempNetworkCost,	   F32 tempSimulationCost,
36				 F32 selectedRenderCost, F32 selectedPhysicsCost, F32 selectedNetworkCost, F32 selectedSimulationCost,
37				 F32 parcelCapacity )
38	: mOwnerRenderCost( ownerRenderCost ), mOwnerPhysicsCost( ownerPhysicsCost ) 
39	, mOwnerNetworkCost( ownerNetworkCost ), mOwnerSimulationCost( ownerSimulationCost )
40	, mGroupRenderCost( groupRenderCost ), mGroupPhysicsCost( groupPhysicsCost )
41	, mGroupNetworkCost( groupNetworkCost ), mGroupSimulationCost( groupSimulationCost )
42	, mOtherRenderCost( otherRenderCost ), mOtherPhysicsCost( otherPhysicsCost )
43	, mOtherNetworkCost( otherNetworkCost ), mOtherSimulationCost( otherSimulationCost )
44	, mTempRenderCost( tempRenderCost ), mTempPhysicsCost( tempPhysicsCost ) 
45	, mTempNetworkCost( tempNetworkCost ), mTempSimulationCost( tempSimulationCost )
46	, mSelectedRenderCost( tempRenderCost ), mSelectedPhysicsCost( tempPhysicsCost ) 
47	, mSelectedNetworkCost( tempNetworkCost ), mSelectedSimulationCost( selectedSimulationCost )
48	, mParcelCapacity( parcelCapacity )
49	{
50	}
51
52	ParcelQuota(){}			
53	F32 mOwnerRenderCost, mOwnerPhysicsCost, mOwnerNetworkCost, mOwnerSimulationCost;
54	F32 mGroupRenderCost, mGroupPhysicsCost, mGroupNetworkCost, mGroupSimulationCost;
55	F32 mOtherRenderCost, mOtherPhysicsCost, mOtherNetworkCost, mOtherSimulationCost;
56	F32 mTempRenderCost,  mTempPhysicsCost,  mTempNetworkCost,  mTempSimulationCost;
57	F32 mSelectedRenderCost, mSelectedPhysicsCost, mSelectedNetworkCost, mSelectedSimulationCost;
58	F32 mParcelCapacity;
59};
60
61//SelectionQuota atm does not require a id
62struct SelectionCost
63{
64	SelectionCost( /*LLTransactionID transactionId, */ F32 physicsCost, F32 networkCost, F32 simulationCost )
65	//: mTransactionId( transactionId)
66	: mPhysicsCost( physicsCost )
67	, mNetworkCost( networkCost )
68	, mSimulationCost( simulationCost )
69	{
70	}
71	SelectionCost()
72	: mPhysicsCost( 0.0f )
73	, mNetworkCost( 0.0f )
74	, mSimulationCost( 0.0f )
75	{}
76	
77	F32 mPhysicsCost, mNetworkCost, mSimulationCost;	
78	//LLTransactionID mTransactionId;
79};
80
81typedef enum { Roots = 0 , Prims } eSelectionType;
82
83#endif
84
85
86