Package hedge :: Package cuda :: Module cgen :: Class Struct
[frames] | no frames]

Class Struct

source code

object --+        
         |        
 Generable --+    
             |    
    Declarator --+
                 |
                Struct

Instance Methods
 
__init__(self, tpname, fields, declname=None, debug=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_decl_pair(self) source code
 
make(self, **kwargs) source code
 
struct_format(self) source code
 
__len__(self) source code

Inherited from Declarator: generate, inline

Inherited from Generable: __str__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties

Inherited from object: __class__

Method Details

__init__(self, tpname, fields, declname=None, debug=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

struct_format(self)

source code 
Decorators:
  • @memoize_method

__len__(self)
(Length operator)

source code 
Decorators:
  • @memoize_method