버전
menu_open
link

include/AK/Tools/Common/AkListBareLight.h

Go to the documentation of this file.
00001 
00002 //
00003 // Copyright (c) 2006 Audiokinetic Inc. / All Rights Reserved
00004 //
00006 
00007 // AkListBareLight.h
00008 
00009 #ifndef _AKLISTBARELIGHT_H
00010 #define _AKLISTBARELIGHT_H
00011 
00012 #include <AK/Tools/Common/AkListBare.h>
00013 
00014 // this one lets you define the structure
00015 // only requirement is that T must have member pNextLightItem,
00016 // or use the template getter.
00017 // client is responsible for allocation/deallocation of T.
00018 
00019 // WATCH OUT !
00020 // - remember that removeall/term can't delete the elements for you.
00021 // - be sure to destroy elements AFTER removing them from the list, as remove will
00022 // access members of the element.
00023 // WARNING : Each AkListBareLight item can be used in only one AkListBareLight at 
00024 //           once since the member pNextLightItem cannot be re-used.
00025 
00027 template <class T> struct AkListBareLightNextItem
00028 {
00030     static AkForceInline T *& Get( T * in_pItem ) 
00031     {
00032         return in_pItem->pNextLightItem;
00033     }
00034 };
00035 
00037 template <class T, template <class> class U_NEXTITEM = AkListBareLightNextItem > class AkListBareLight : public AkListBare< T, U_NEXTITEM, AkCountPolicyNoCount, AkLastPolicyNoLast > {};
00038 
00039 #endif // _AKLISTBARELIGHT_H

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요