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

Public Member Functions | List of all members
CUnitPtr Class Reference

#include <unitptr.h>

Public Member Functions

 CUnitPtr ()
 
 ~CUnitPtr ()
 
 operator CUnit * ()
 
 operator CUnit * () const
 
CUnitoperator* ()
 
CUnitoperator-> () const
 
bool operator== (CUnit *u) const
 
bool operator!= (CUnit *u) const
 
unitptr.cpp - The units ptr.
 CUnitPtr (CUnit *u)
 
 CUnitPtr (const CUnitPtr &u)
 
void Reset ()
 
CUnitPtroperator= (CUnit *u)
 

Detailed Description

Class to ease the ref counting of each CUnit instance.

Constructor & Destructor Documentation

◆ CUnitPtr() [1/3]

CUnitPtr::CUnitPtr ( )
inline

◆ CUnitPtr() [2/3]

CUnitPtr::CUnitPtr ( CUnit u)

◆ CUnitPtr() [3/3]

CUnitPtr::CUnitPtr ( const CUnitPtr u)

◆ ~CUnitPtr()

CUnitPtr::~CUnitPtr ( )
inline

Member Function Documentation

◆ operator CUnit *() [1/2]

CUnitPtr::operator CUnit * ( )
inline

◆ operator CUnit *() [2/2]

CUnitPtr::operator CUnit * ( ) const
inline

◆ operator!=()

bool CUnitPtr::operator!= ( CUnit u) const
inline

◆ operator*()

CUnit& CUnitPtr::operator* ( )
inline

◆ operator->()

CUnit* CUnitPtr::operator-> ( ) const
inline

◆ operator=()

CUnitPtr & CUnitPtr::operator= ( CUnit u)

◆ operator==()

bool CUnitPtr::operator== ( CUnit u) const
inline

◆ Reset()

void CUnitPtr::Reset ( )

The documentation for this class was generated from the following files:
(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.