Class to define the complete type of a variable.
More...
#include <src/CBot/CBotTypResult.h>
|
class | CBotVarClass |
|
class | CBotVarPointer |
|
Class to define the complete type of a variable.
Examples:
◆ GetTypeMode
◆ CBotTypResult() [1/6]
CBot::CBotTypResult::CBotTypResult |
( |
int |
type | ) |
|
◆ CBotTypResult() [2/6]
CBot::CBotTypResult::CBotTypResult |
( |
int |
type, |
|
|
const std::string & |
name |
|
) |
| |
Constructor for pointer types and intrinsic classes.
This is equivalent to calling:
- Parameters
-
type | type of created result, see CBotType |
name | name of the class |
◆ CBotTypResult() [3/6]
CBot::CBotTypResult::CBotTypResult |
( |
int |
type, |
|
|
CBotClass * |
pClass |
|
) |
| |
Constructor for instance of a class.
- Parameters
-
type | type of created result, see CBotType |
pClass | class type |
◆ CBotTypResult() [4/6]
CBot::CBotTypResult::CBotTypResult |
( |
int |
type, |
|
|
CBotTypResult |
elem |
|
) |
| |
Constructor for arrays.
- Parameters
-
type | type of created result, see CBotType |
elem | type of array elements |
◆ CBotTypResult() [5/6]
◆ CBotTypResult() [6/6]
CBot::CBotTypResult::CBotTypResult |
( |
| ) |
|
◆ ~CBotTypResult()
CBot::CBotTypResult::~CBotTypResult |
( |
| ) |
|
◆ GetType()
int CBot::CBotTypResult::GetType |
( |
GetTypeMode |
mode = GetTypeMode::NORMAL | ) |
const |
Returns CBotType or CBotError stored in this object.
- Parameters
-
mode | Mode, see GetTypeMode enum |
◆ SetType()
void CBot::CBotTypResult::SetType |
( |
int |
n | ) |
|
◆ GetClass()
CBotClass * CBot::CBotTypResult::GetClass |
( |
| ) |
const |
◆ GetLimite()
int CBot::CBotTypResult::GetLimite |
( |
| ) |
const |
◆ SetLimite()
void CBot::CBotTypResult::SetLimite |
( |
int |
n | ) |
|
◆ SetArray()
void CBot::CBotTypResult::SetArray |
( |
int |
max[] | ) |
|
Set size limit of an multidimensional array.
- Parameters
-
max | Array of limit values, the array size has to match the number of dimensions of this array |
◆ GetTypElem()
◆ Compare()
bool CBot::CBotTypResult::Compare |
( |
const CBotTypResult & |
typ | ) |
const |
Compares whether the types are compatible.
This compares the whole object with another
◆ Eq()
bool CBot::CBotTypResult::Eq |
( |
int |
type | ) |
const |
Compare type only.
This compares the general "type" part of this object, without checking the additional parameters
◆ operator=()
◆ ToString()
std::string CBot::CBotTypResult::ToString |
( |
| ) |
|
Get this type name as string.
- Returns
- This type name as string
The documentation for this class was generated from the following files:
- src/CBot/CBotTypResult.h
- src/CBot/CBotTypResult.cpp