$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

CUnitTypeVar::CKeys< SIZE > Struct Template Reference

#include <unittype.h>

List of all members.


Public Member Functions

 CKeys ()
void Init ()
const char * operator[] (int index)
int operator[] (const char *const key)
int AddKey (const char *const key)

Public Attributes

DataKey buildin [SIZE]
std::map< std::string, int > user
unsigned int TotalKeys

Classes

struct  DataKey

template<const unsigned int SIZE>
struct CUnitTypeVar::CKeys< SIZE >


Constructor & Destructor Documentation

template<const unsigned int SIZE>
CUnitTypeVar::CKeys< SIZE >::CKeys (  )  [inline]


Member Function Documentation

template<const unsigned int SIZE>
void CUnitTypeVar::CKeys< SIZE >::Init (  )  [inline]

template<const unsigned int SIZE>
const char* CUnitTypeVar::CKeys< SIZE >::operator[] ( int  index  )  [inline]

template<const unsigned int SIZE>
int CUnitTypeVar::CKeys< SIZE >::operator[] ( const char *const   key  )  [inline]

Return the index of the external storage array/vector.

Parameters:
varname Name of the variable.
Returns:
Index of the variable, -1 if not found.

template<const unsigned int SIZE>
int CUnitTypeVar::CKeys< SIZE >::AddKey ( const char *const   key  )  [inline]


Member Data Documentation

template<const unsigned int SIZE>
DataKey CUnitTypeVar::CKeys< SIZE >::buildin[SIZE]

template<const unsigned int SIZE>
std::map<std::string, int> CUnitTypeVar::CKeys< SIZE >::user

template<const unsigned int SIZE>
unsigned int CUnitTypeVar::CKeys< SIZE >::TotalKeys


The documentation for this struct was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.