emergent 8.2.2 UnitSpec_SPtr Class Reference
emergent 8.2.2   Home · Wiki Docs For: UnitSpec_SPtr · Emergent Help Browser 

UnitSpec_SPtr Class Reference

See for more info: Wiki Docs For: UnitSpec_SPtr

 #include "UnitSpec.h"

defined at: /mnt/ssd/grey/local/include/Emergent/UnitSpec.h :82-82

Inherits From: SpecPtr, SpecPtr_impl, taOBase, taBase

Inherited By: UnitSpec_SPtr*, UnitSpec_SPtr&, const UnitSpec_SPtr

Index: SubTypes, Members, Methods, Static Members, Static Methods, Expert Members, Expert Methods

Sub Types


SubType Documentation


Regular (preferred) Member and Method Documentation

Members

Member Category: _NoCategory

Methods

Method Category: UserData

Method Category: _NoCategory


Member Documentation

Member Category: _NoCategory

SpecPtr_UnitSpec_::spec : taSmartRefT

the actual spec itself

SpecPtr_impl::type : TypeDef*

The type of the spec to use


Method Documentation

Method Category: UserData

void taOBase::RemoveAllUserData ( )

get rid of our user data list entirely -- this is done automatically when saving something that has no user data items, but you can also force it with this method -- deletes the whole list

Show Source Code

Method Category: _NoCategory

bool SpecPtr_impl::CheckObjTypeForSpec ( TypeDef* obj_td = __null )

check for proper type of object (obj_td) that is using this spec (if obj_td is null, it is set to owner type -- can be diff for various other cases) -- just a check -- no message or anything (message is in CheckSpec

Show Source Code

void SpecPtr_impl::CheckSpec ( TypeDef* obj_td = __null )

check the spec for !NULL and type match, and for proper type of object (obj_td) that is using this spec (if obj_td is null, it is set to owner type -- can be diff for various other cases) -- fix if out of whack -- this is what used to be called in the UpdateAfterEdit and is now called in the network CheckSpecs prior to build

Show Source Code

taBase* taOBase::GetOwner ( )

Show Source Code

BaseSpec* SpecPtr_UnitSpec_::GetSpec ( )

get the spec pointer

Show Source Code

BaseSpec_Group* SpecPtr_impl::GetSpecGroup ( )

get the group where specs go

Show Source Code

void SpecPtr_impl::GetSpecOfType ( bool verbose = false )

get a spec of type type in GetSpecGroup group -- if existing one is not found, make a new one -- verbose = report about it

Show Source Code

TypeDef* UnitSpec_SPtr::GetTypeDef ( )

Show Source Code

UnitSpec* SpecPtr_UnitSpec_::NewChild ( )

Show Source Code

UnitSpec* SpecPtr_UnitSpec_::SPtr ( )

use this call to access the spec pointer value in all client calls -- fast!

Show Source Code

void SpecPtr_impl::SetBaseType ( TypeDef* td )

for overloaded classes

Show Source Code

void SpecPtr_UnitSpec_::SetDefaultSpec ( taBase* ownr )

Show Source Code

bool SpecPtr_impl::SetSpec ( BaseSpec* es )

default set spec call -- does UAE

Show Source Code

bool SpecPtr_UnitSpec_::SetSpec_impl ( BaseSpec* es, bool update_if_set )

set the spec pointer -- if update_if_set then UAE called on owner if a new spec is set -- don't do this for SetDefaultSpec

Show Source Code

taSigLink** taOBase::addr_sig_link ( )

Show Source Code

Static Member and Method Documentation

Static Members

Static Methods


Static Method Documentation


Expert Member and Method Documentation

Expert Members

Expert Member Category: _NoCategory

Expert Member Category: taBase

Expert Methods

Expert Method Category: UserData


Expert Member Documentation

Expert Member Category: _NoCategory

SpecPtr_impl::base_type : TypeDef*

base type for type field

Expert Member Category: taBase

taOBase::owner : taBase*

pointer to owner

taOBase::user_data_ : UserDataItem_List*

storage for user data (created if needed) DO NOT ACCESS this list directly -- use the GetUserData / SetUserData etc interface!


Expert Method Documentation

Expert Method Category: UserData

UserDataItem_List* taOBase::GetUserDataList ( bool force = false )

gets the userdatalist for this class

Show Source Code


Copyright © 2017Regents of the University of Colorado, Carnegie Mellon University, Princeton University.
emergent 8.2.2