Cunion¶

- class ccg.Cunion.CUnion(union_def)¶
Bases:
ccg.Ctypes.CGenericType,ccg.Ctypes.CItemDefinable- Parameters
union_def (CUnionDef) –
- definition(style=<ccg.style.Style object>, from_space=None, doc=False)¶
- property bit_size: int¶
- check_value(value)¶
Checks that a value is correct for the type
- Parameters
value (Any) – value to check
- Returns
boolean indicating if value fits type (True) or not
- Return type
bool
- declaration(style=<ccg.style.Style object>, semicolon=True, doc=True, from_space=None, without_arguments=False)¶
- declare()¶
- Return type
- define()¶
- Return type
- property full_space_list: List[ccg.Cnamespace.CSpace]¶
- space_def(from_space=None)¶
- Parameters
from_space (Optional[ccg.Cnamespace.CSpace]) –
- Return type
str
- type(name)¶
- Parameters
name (str) –
- Return type
- typedef(doc=None)¶
- Parameters
doc (Optional[Doc]) –
- Return type

- class ccg.Cunion.CUnionDef(name=None, members=None, doc=None)¶
Bases:
ccg.Ctypes.CGenericType,ccg.Ctypes.CItemDefinable- Parameters
name (Optional[str]) –
members (List[ccg.Cvariable.CVariable]) –
doc (Optional[Doc]) –
- property union: ccg.Cunion.CUnion¶
- property bit_size: int¶
- check_value(value)¶
Checks that a value is correct for the type
- Parameters
value (Any) – value to check
- Returns
boolean indicating if value fits type (True) or not
- Return type
bool
- declare()¶
- Return type
- define()¶
- Return type
- definition(style=<ccg.style.Style object>, from_space=None, doc=False)¶
- property full_space_list: List[ccg.Cnamespace.CSpace]¶
- space_def(from_space=None)¶
- Parameters
from_space (Optional[ccg.Cnamespace.CSpace]) –
- Return type
str
- type(name)¶
- Parameters
name (str) –
- Return type
- typedef(doc=None)¶
- Parameters
doc (Optional[Doc]) –
- Return type
- typedef_render(style=<ccg.style.Style object>, from_space=None, doc=None)¶