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

Classes | Public Member Functions | Public Attributes | List of all members
CUnitTypeVar::CKeys< SIZE > Struct Template Reference

#include <unittype.h>

Classes

struct  DataKey
 

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
 

Constructor & Destructor Documentation

◆ CKeys()

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

Member Function Documentation

◆ AddKey()

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

◆ Init()

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

◆ operator[]() [1/2]

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
varnameName of the variable.
Returns
Index of the variable, -1 if not found.

◆ operator[]() [2/2]

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

Member Data Documentation

◆ buildin

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

◆ TotalKeys

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

◆ user

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

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.