go-hep.org/x/hep@v0.38.1/groot/rmeta/estltype_string.go (about)

     1  // Code generated by "stringer -type ESTLType consts.go"; DO NOT EDIT.
     2  
     3  package rmeta
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[NotSTL-0]
    12  	_ = x[STLvector-1]
    13  	_ = x[STLlist-2]
    14  	_ = x[STLdeque-3]
    15  	_ = x[STLmap-4]
    16  	_ = x[STLmultimap-5]
    17  	_ = x[STLset-6]
    18  	_ = x[STLmultiset-7]
    19  	_ = x[STLbitset-8]
    20  	_ = x[STLforwardlist-9]
    21  	_ = x[STLunorderedset-10]
    22  	_ = x[STLunorderedmultiset-11]
    23  	_ = x[STLunorderedmap-12]
    24  	_ = x[STLunorderedmultimap-13]
    25  	_ = x[STLend-14]
    26  	_ = x[STLany-300]
    27  	_ = x[STLstdstring-365]
    28  }
    29  
    30  const (
    31  	_ESTLType_name_0 = "NotSTLSTLvectorSTLlistSTLdequeSTLmapSTLmultimapSTLsetSTLmultisetSTLbitsetSTLforwardlistSTLunorderedsetSTLunorderedmultisetSTLunorderedmapSTLunorderedmultimapSTLend"
    32  	_ESTLType_name_1 = "STLany"
    33  	_ESTLType_name_2 = "STLstdstring"
    34  )
    35  
    36  var (
    37  	_ESTLType_index_0 = [...]uint8{0, 6, 15, 22, 30, 36, 47, 53, 64, 73, 87, 102, 122, 137, 157, 163}
    38  )
    39  
    40  func (i ESTLType) String() string {
    41  	switch {
    42  	case 0 <= i && i <= 14:
    43  		return _ESTLType_name_0[_ESTLType_index_0[i]:_ESTLType_index_0[i+1]]
    44  	case i == 300:
    45  		return _ESTLType_name_1
    46  	case i == 365:
    47  		return _ESTLType_name_2
    48  	default:
    49  		return "ESTLType(" + strconv.FormatInt(int64(i), 10) + ")"
    50  	}
    51  }