Builds an UnmaskedArray which the values are never, in fact, missing. It exists to satisfy systems that formally require this high-level type without the overhead of generating an array of all True or all False values.  
 More...
#include <LayoutBuilder.h>
 | 
|   | Unmasked () | 
|   | Creates a new Unmasked layout builder.  
  | 
|   | 
| BUILDER &  | content () noexcept | 
|   | Returns the reference to the builder content.  
  | 
|   | 
| const std::string &  | parameters () const noexcept | 
|   | Parameters for the builder form.  
  | 
|   | 
| void  | set_parameters (std::string parameter) noexcept | 
|   | Sets the form parameters.  
  | 
|   | 
| void  | set_id (size_t &id) noexcept | 
|   | Assigns a unique ID to each node.  
  | 
|   | 
| void  | clear () noexcept | 
|   | Clears the builder content.  
  | 
|   | 
| size_t  | length () const noexcept | 
|   | Current length of the content.  
  | 
|   | 
| bool  | is_valid (std::string &error) const noexcept | 
|   | Checks for validity and consistency.  
  | 
|   | 
| void  | buffer_nbytes (std::map< std::string, size_t > &names_nbytes) const noexcept | 
|   | Retrieves the names and sizes (in bytes) of the buffers used in the builder and its contents.  
  | 
|   | 
| void  | to_buffers (std::map< std::string, void * > &buffers) const noexcept | 
|   | Copies and concatenates all the accumulated data in each of the buffers of the builder and its contents to user-defined pointers.  
  | 
|   | 
| void  | to_buffer (void *buffer, const char *name) const noexcept | 
|   | Copies and concatenates the accumulated data in the buffers of the builder content to user-defined pointers if the given node name matches with the node associated with that builder.  
  | 
|   | 
| void  | to_char_buffers (std::map< std::string, uint8_t * > &buffers) const noexcept | 
|   | Copies and concatenates all the accumulated data in the builder to a map of user-allocated buffers.  
  | 
|   | 
| std::string  | form () const noexcept | 
|   | Generates a unique description of the builder and its contents in the form of a JSON-like string.  
  | 
|   | 
template<typename BUILDER>
class awkward::LayoutBuilder::Unmasked< BUILDER >
Builds an UnmaskedArray which the values are never, in fact, missing. It exists to satisfy systems that formally require this high-level type without the overhead of generating an array of all True or all False values. 
This is similar to NumPy's masked arrays with mask=None.
- Template Parameters
 - 
  
    | BUILDER | The type of builder content.  | 
  
   
 
◆ Unmasked()
template<typename BUILDER> 
 
 
◆ buffer_nbytes()
template<typename BUILDER> 
  
  
      
        
          | void buffer_nbytes  | 
          ( | 
          std::map< std::string, size_t > & |           names_nbytes | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Retrieves the names and sizes (in bytes) of the buffers used in the builder and its contents. 
 
 
◆ clear()
template<typename BUILDER> 
 
Clears the builder content. 
 
 
◆ content()
template<typename BUILDER> 
 
Returns the reference to the builder content. 
 
 
◆ form()
template<typename BUILDER> 
  
  
      
        
          | std::string form  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Generates a unique description of the builder and its contents in the form of a JSON-like string. 
 
 
◆ is_valid()
template<typename BUILDER> 
  
  
      
        
          | bool is_valid  | 
          ( | 
          std::string & |           error | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Checks for validity and consistency. 
 
 
◆ length()
template<typename BUILDER> 
 
Current length of the content. 
 
 
◆ parameters()
template<typename BUILDER> 
  
  
      
        
          | const std::string & parameters  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Parameters for the builder form. 
 
 
◆ set_id()
template<typename BUILDER> 
  
  
      
        
          | void set_id  | 
          ( | 
          size_t & |           id | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Assigns a unique ID to each node. 
 
 
◆ set_parameters()
template<typename BUILDER> 
  
  
      
        
          | void set_parameters  | 
          ( | 
          std::string |           parameter | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Sets the form parameters. 
 
 
◆ to_buffer()
template<typename BUILDER> 
  
  
      
        
          | void to_buffer  | 
          ( | 
          void * |           buffer,  | 
         
        
           | 
           | 
          const char * |           name ) const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Copies and concatenates the accumulated data in the buffers of the builder content to user-defined pointers if the given node name matches with the node associated with that builder. 
 
 
◆ to_buffers()
template<typename BUILDER> 
  
  
      
        
          | void to_buffers  | 
          ( | 
          std::map< std::string, void * > & |           buffers | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Copies and concatenates all the accumulated data in each of the buffers of the builder and its contents to user-defined pointers. 
Used to fill the buffers map by allocating it with user-defined pointers using the same names and sizes (in bytes) obtained from buffer_nbytes. 
 
 
◆ to_char_buffers()
template<typename BUILDER> 
  
  
      
        
          | void to_char_buffers  | 
          ( | 
          std::map< std::string, uint8_t * > & |           buffers | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Copies and concatenates all the accumulated data in the builder to a map of user-allocated buffers. 
The map keys and the buffer sizes are obtained from buffer_nbytes 
 
 
The documentation for this class was generated from the following file:
- /home/runner/work/awkward/awkward/awkward-cpp/header-only/layout-builder/awkward/LayoutBuilder.h