Class to define the complete type of a variable.
More...
#include <CBotTypResult.h>
|
class | CBotVarClass |
|
class | CBotVarPointer |
|
Class to define the complete type of a variable.
Examples:
CBot::CBotTypResult::CBotTypResult |
( |
int |
type | ) |
|
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 |
CBot::CBotTypResult::CBotTypResult |
( |
int |
type, |
|
|
CBotClass * |
pClass |
|
) |
| |
Constructor for instance of a class.
- Parameters
-
type | type of created result, see CBotType |
pClass | class type |
CBot::CBotTypResult::CBotTypResult |
( |
int |
type, |
|
|
CBotTypResult |
elem |
|
) |
| |
Constructor for arrays.
- Parameters
-
type | type of created result, see CBotType |
elem | type of array elements |
CBot::CBotTypResult::CBotTypResult |
( |
| ) |
|
CBot::CBotTypResult::~CBotTypResult |
( |
| ) |
|
int CBot::CBotTypResult::GetType |
( |
GetTypeMode |
mode = GetTypeMode::NORMAL | ) |
const |
Returns CBotType or CBotError stored in this object.
- Parameters
-
mode | Mode, see ::GetTypeMode enum |
void CBot::CBotTypResult::SetType |
( |
int |
n | ) |
|
CBotClass * CBot::CBotTypResult::GetClass |
( |
| ) |
const |
int CBot::CBotTypResult::GetLimite |
( |
| ) |
const |
void CBot::CBotTypResult::SetLimite |
( |
int |
n | ) |
|
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 |
bool CBot::CBotTypResult::Compare |
( |
const CBotTypResult & |
typ | ) |
const |
Compares whether the types are compatible.
This compares the whole object with another
bool CBot::CBotTypResult::Eq |
( |
int |
type | ) |
const |
Compare type only.
This compares the general "type" part of this object, without checking the additional parameters
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:
- /build/colobot-4LMcse/colobot-0.1.8/src/CBot/CBotTypResult.h
- /build/colobot-4LMcse/colobot-0.1.8/src/CBot/CBotTypResult.cpp