original_docstring: Build capabilities array (ctypes array of CPqosCapability objects).
docstring: Build capabilities array (ctypes array of CPqosCapability objects).
docstring_tokens: Build capabilities array ( ctypes array of CPqosCapability objects ) .
code: def build_capability_array(self):
          "Build capabilities array (ctypes array of CPqosCapability objects)."
  
          capabilities = []
  
          if self.mon:
              mon_u = CPqosCapabilityUnion(mon=ctypes.pointer(self.mon))
              mon_cap = CPqosCapability(type=CPqosCapability.PQOS_CAP_TYPE_MON,
                                        u=mon_u)
              capabilities.append(mon_cap)
  
          if self.l3ca:
              l3ca_u = CPqosCapabilityUnion(l3ca=ctypes.pointer(self.l3ca))
              l3ca_cap = CPqosCapability(type=CPqosCapability.PQOS_CAP_TYPE_L3CA,
                                         u=l3ca_u)
              capabilities.append(l3ca_cap)
  
          if self.l2ca:
              l2ca_u = CPqosCapabilityUnion(l2ca=ctypes.pointer(self.l2ca))
              l2ca_cap = CPqosCapability(type=CPqosCapability.PQOS_CAP_TYPE_L2CA,
                                         u=l2ca_u)
              capabilities.append(l2ca_cap)
  
          if self.mba:
              mba_u = CPqosCapabilityUnion(mba=ctypes.pointer(self.mba))
              mba_cap = CPqosCapability(type=CPqosCapability.PQOS_CAP_TYPE_MBA,
                                        u=mba_u)
              capabilities.append(mba_cap)
  
          return ctypes_build_array(capabilities)
code_tokens: def build_capability_array ( self ) : capabilities = [ ] if self . mon : mon_u = CPqosCapabilityUnion ( mon = ctypes . pointer ( self . mon ) ) mon_cap = CPqosCapability ( type = CPqosCapability . PQOS_CAP_TYPE_MON , u = mon_u ) capabilities . append ( mon_cap ) if self . l3ca : l3ca_u = CPqosCapabilityUnion ( l3ca = ctypes . pointer ( self . l3ca ) ) l3ca_cap = CPqosCapability ( type = CPqosCapability . PQOS_CAP_TYPE_L3CA , u = l3ca_u ) capabilities . append ( l3ca_cap ) if self . l2ca : l2ca_u = CPqosCapabilityUnion ( l2ca = ctypes . pointer ( self . l2ca ) ) l2ca_cap = CPqosCapability ( type = CPqosCapability . PQOS_CAP_TYPE_L2CA , u = l2ca_u ) capabilities . append ( l2ca_cap ) if self . mba : mba_u = CPqosCapabilityUnion ( mba = ctypes . pointer ( self . mba ) ) mba_cap = CPqosCapability ( type = CPqosCapability . PQOS_CAP_TYPE_MBA , u = mba_u ) capabilities . append ( mba_cap ) return ctypes_build_array ( capabilities )
short_docstring: Build capabilities array (ctypes array of CPqosCapability objects).
short_docstring_tokens: Build capabilities array ( ctypes array of CPqosCapability objects ) .
comment: "Build capabilities array (ctypes array of CPqosCapability objects)."