| 
| template<typename ContainerType >  | 
| static std::string  | containerToString (const ContainerType &container) | 
|   | 
| static const IR::MethodCallExpression *  | generateInternalMethodCall (std::string_view methodName, const std::vector< const IR::Expression * > &argVector, const IR::Type *returnType=IR::Type_Void::get(), const IR::ParameterList *paramList=new IR::ParameterList()) | 
|   | 
| static std::optional< uint32_t >  | getCurrentSeed () | 
|   | 
| static big_int  | getRandBigInt (const big_int &max) | 
|   | 
| 
static big_int  | getRandBigInt (const big_int &min, const big_int &max) | 
|   | This is a big_int version of getRndInt. 
  | 
|   | 
| static const IR::Constant *  | getRandConstantForType (const IR::Type_Bits *type) | 
|   | 
| static const IR::Constant *  | getRandConstantForWidth (int bitWidth) | 
|   | 
| static int64_t  | getRandInt (const std::vector< int64_t > &percent) | 
|   | 
| static int64_t  | getRandInt (int64_t min, int64_t max) | 
|   | 
| static uint64_t  | getRandInt (uint64_t max) | 
|   | 
| static std::string  | getTimeStamp () | 
|   | 
| template<typename Iter >  | 
| static Iter  | pickRandom (Iter start, Iter end) | 
|   | 
| 
static void  | setRandomSeed (int seed) | 
|   | 
| template<typename T >  | 
| static void  | shuffle (T *inp) | 
|   | Shuffles the given iterable.  
  | 
|   | 
General utility functions that are not present in the compiler framework. 
 
template<typename ContainerType > 
  
  
      
        
          | static std::string P4Tools::Utils::containerToString  | 
          ( | 
          const ContainerType & |           container | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Convert a container type (array, set, vector, etc.) into a well-formed [val1, val2, ...] representation. This function is used for debugging output.